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
junejune 

xcode ios salesforce -extract account id from accounts table

Hello!!!

i am trying to put a new account in sales force . but the query is not working fine:'

i am trying to extract id from the acconts table of sales force:

 

SFRestRequest *request = [[SFRestAPI sharedInstancerequestForQuery:@"SELECT AccountId FROM Account LIMIT 5"];    

        [[SFRestAPI sharedInstancesend:request delegate:self];

 

SuperfellSuperfell

There is no accountId field on account, its just Id, change your query to select Id from Account limit 5

J2theCJ2theC

When you get query errors using the SDK, make sure you do an object Describe call first to make sure you are querying correct fields and it also gives you an understanding on the field structure.