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
victor92victor92 

2 RESTREQUESTS

I have sent 2 querys in the same viewController. So I will be getting to the "- (void)request:(SFRestRequest *)request didLoadResponse:(id)jsonResponse" twice. So how can I distinguish 2 requests ??

jhersh1jhersh1

I'd highly recommend you check out the new block methods in the SDK, which solves this problem very neatly :)

mobillemobille

Hi

 

TAke one BOOL variable set it first it NO.

 

when you calling 1st query set YES..in your didrecieve response check whether if it YES .IF it is YES take the respone in ur dictionary and assign NO to BOOL.after second query in did receive respnse check for NO if it is no handle respnse.