superfell / zkSforce

Cocoa library for calling the Salesforce.com Web Services API
https://pocketsoap.com/osx/zksforce/
MIT License
76 stars 27 forks source link

AssignmentRule #16

Closed clydepashley closed 10 years ago

clydepashley commented 10 years ago

Hi, I'm working on a project which uses the zkSforce library and need to set an AssignmentRule and EmailHeaders so that new cases get directed to the right places. Is this possible?, and if so, any help on how it done would be appreciated.

Cheers, Clyde

superfell commented 10 years ago

You can use the ZKAssignmentRuleHeader class to control assignment rules, e.g.

ZKAssignmentRuleHeader *h = [[[ZKAssignmentRuleHeader alloc] init] autorelease]; h.useDefaultRule = TRUE; // or h.assignmentRuleId = @"A 15 char assignment rule Id"; client.assignmentRuleHeader = h; [client create:someRecords]; where client is an instance of ZKSforceClient.

ZKEmailHeader works in a similar fashion (all the soap headers are like this)