Created
December 22, 2011 12:10
-
-
Save palaniraja/1510096 to your computer and use it in GitHub Desktop.
update sf obj/rec in salesforce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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