Skip to content

Instantly share code, notes, and snippets.

@palaniraja
Created December 22, 2011 12:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save palaniraja/1510096 to your computer and use it in GitHub Desktop.
Save palaniraja/1510096 to your computer and use it in GitHub Desktop.
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