Skip to content

Commit

Permalink
Merge pull request #1267 from ashitsalesforce/master
Browse files Browse the repository at this point in the history
support territory assignment rules in bulk v2 upload ops
  • Loading branch information
ashitsalesforce authored Sep 16, 2024
2 parents e436a55 + 56ba2aa commit 3cb8aa8
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,13 @@ public JobInfo createJob(JobInfo job) throws AsyncApiException {
if (operation.equals(OperationEnum.upsert)) {
requestBodyMap.put("externalIdFieldName", job.getExternalIdFieldName());
}
if (operation.equals(OperationEnum.upsert)
|| operation.equals(OperationEnum.insert)
|| operation.equals(OperationEnum.update)) {
if (job.getAssignmentRuleId() != null && !job.getAssignmentRuleId().isBlank()) {
requestBodyMap.put("assignmentRuleId", job.getAssignmentRuleId());
}
}
}
return doSendJobRequestToServer(urlString,
headers,
Expand Down

0 comments on commit 3cb8aa8

Please sign in to comment.