You need to sign in to do that
Don't have an account?

How to fetch data in forcehybrid app using REST api
Hi All,
I have created a hybrid app using forcehybrid. I am able to login to coonected salesforce app.
Now I need to fetch data from salesforce using REST api.
I am not getting any reference in docs for hybrid app.
Can someone help me out here. Any reference or example will be very helpful. Thank you!
I have created a hybrid app using forcehybrid. I am able to login to coonected salesforce app.
Now I need to fetch data from salesforce using REST api.
I am not getting any reference in docs for hybrid app.
Can someone help me out here. Any reference or example will be very helpful. Thank you!
That pages lists the sample apps that use the REST API , e.g. the contactexplorer - that can be found here https://github.com/forcedotcom/SalesforceMobileSDK-Shared/tree/master/samples/contactexplorer.
Check the inline.js that has examples of setting up the session and making calls to pull down contacts.
All Answers
There are examples/samples available for this. Details can be found here (https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/hybrid_samples.htm)
Thank you for the link.
But I do not see where REST api is used. I have made custom REST webservices (url like /services/apexrest/Search) which I want to invoke in mobile app.
Please help me how can I do this.
That pages lists the sample apps that use the REST API , e.g. the contactexplorer - that can be found here https://github.com/forcedotcom/SalesforceMobileSDK-Shared/tree/master/samples/contactexplorer.
Check the inline.js that has examples of setting up the session and making calls to pull down contacts.
https://trailhead.salesforce.com/content/learn/modules/mobile_sdk_hybrid