Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
update sf obj/rec in salesforce
ZKSObject *sfobj = [[ZKSObject alloc] initWithType:@"Your_custom_object__c"] ;
[sfobj setType:@"Your_custom_object__c"];
[sfobj setFieldValue:@"a0FM0000000XrKcMAK" field:@"Id"];
[sfobj setFieldValue:@"PAL-008" field:@"Service_code__c"];
[sfobj setFieldValue:@"Room heating system" field:@"Name"]; //update the field value required
[sfobj setFieldValue:@"Maintenance" field:@"Service_Status__c"];
[sfobj setFieldValue:@"a07M0000000FV5VIAW" field:@"child_of_another_custom_object__c"];
[[FDCServerSwitchboard switchboard] update:[NSArray arrayWithObject:sfobj] target:self selector:@selector(updatedObjectResult:error:context:) context:nil];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment