function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DamitharkDamithark 

Posting Data to Salesforce from IOS

 Hi,

I'm very new to salesforce development and I'm stuck with this problem for the last few weeks. I'm using ZKS Classes and I have integrated everything and I'm able to retrieve data through queries. Now I want to send data to salesforce. I used this code to achieve it,

AppDelegate * appdelegate = [[UIApplication sharedApplication] delegate];
ZKSObject *contact = [ZKSObject withType:@"Job_Occurrence__c"];
[contact setFieldValue:@"Food" field:@"Category__c"];
[contact setFieldValue:tfSampleMaking.text field:@"Sample_Marking__c"];
[contact setFieldValue:strJCode field:@"Job_Code__c"];
[contact setFieldValue:@"Test" field:@"Sample_Type__c"];
NSArray *results = [appdelegate.sforce create:[NSArray arrayWithObject:contact]];
ZKSaveResult *sr = [results objectAtIndex:0];
if ([sr success]) {
      NSLog(@"new Job id %@", [sr id]);
}
else {
      NSLog(@"error creating Job %@ %@", [sr statusCode], [sr message]);
}

This seems to give me a success message with an ID. Problem is that I can't see the data in salesforce.

My question is,

 

Where can I find that specific data on salesforce web site? (I don't know how to check that specific entry that I saved using the ID that I get from salesforce).


Thank you.

Best Answer chosen by Admin (Salesforce Developers) 
jhersh1jhersh1

Just go to the ID it returns. i.e., if you're on na1, go to https://na1.salesforce.com/{id}