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


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 ??


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




TAke one BOOL variable set it first it NO.


when you calling 1st query set 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.