Assume I have a custom object, I need to create/update records to this custome object. My app. is a hybrid app. that uses javascript/html to access salesforce.com. As I understand, we need to use SOAP API to write to a custom object. A simple sample app. that uses SOAP API to manipulate a simple custom object would be very helpful.
That seems to be a problem to use both REST and SOAP. When we use REST API to login, the app. doesn't have access the password. But this SOAP approach requires the password. That means we will ask users to enter their pasword again.
Is it still impossible to use REST API to manipulate a custom object?
So to insert one record at a time to a custom object, we can use REST API? That would be great if possible. Somehow I read a couple of days ago that only SOAP API can manipuate a custom object.
All Answers
There is no such app as of now. Can you please elaborate about what are you expecting out of this app, so that i would be able to suggest you better.
access salesforce.com.
As I understand, we need to use SOAP API to write to a custom object. A simple sample app. that uses SOAP API
to manipulate a simple custom object would be very helpful.
Thanks,
ted
Yes you can use SOAP API for this purpose. I would suggest you to refer salesforce SOAP API guide, it has explained with code sample:
http://www.salesforce.com/us/developer/docs/api/index.htm
Also have a look at: https://developer.salesforce.com/forums?id=906F00000009CYtIAM
Hope it hepls!
Is the access token the same?
Thanks for the pointers.
ted
You just need to provide username and password in login.txt.
Refer: http://www.salesforce.com/us/developer/docs/api_asynch/Content/asynch_api_quickstart_login.htm
That seems to be a problem to use both REST and SOAP. When we use REST API to login, the app. doesn't have access the password.
But this SOAP approach requires the password. That means we will ask users to enter their pasword again.
Is it still impossible to use REST API to manipulate a custom object?
That would be great if possible. Somehow I read a couple of days ago that only SOAP API can manipuate a custom object.
Refer: http://www.salesforce.com/us/developer/docs/api_rest/
Thanks.
Thanks. REST API does work with custom objects.