Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
delete / undelete obj from sf
NSString *id2Del = @"a0BM0000001uUrY";
[[FDCServerSwitchboard switchboard] delete:[NSArray arrayWithObject:id2Del] target:self selector:@selector(deleteObjectResult:error:context:) context:nil];
//To undelete the deleted obj. only if available as per Salesforce norms
[[FDCServerSwitchboard switchboard] unDelete:[NSArray arrayWithObject:id2Del] target:self selector:@selector(deleteObjectResult:error:context:) context:nil];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment