Skip to content

Instantly share code, notes, and snippets.

@palaniraja
Created December 22, 2011 12:14
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/1510105 to your computer and use it in GitHub Desktop.
Save palaniraja/1510105 to your computer and use it in GitHub Desktop.
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