You need to sign in to do that
Don't have an account?
raginireddy thoutireddy
How to create Accounts and contacts in salesforce from web page using REST API
Hello,
I have a scenario where if a customer fills out the information on a web page then it should create an Account and contact in salesforce. I have been researching into this and the options have found are
1) Create Web-to-lead and then write a trigger to convert them to Accounts and Contacts.
2) Using REST API create accounts in salesforce.
Our Organization looks to go with the second option. I am not sure how to do it exactly. Can anyone please direct me to achieve this?
I have a scenario where if a customer fills out the information on a web page then it should create an Account and contact in salesforce. I have been researching into this and the options have found are
1) Create Web-to-lead and then write a trigger to convert them to Accounts and Contacts.
2) Using REST API create accounts in salesforce.
Our Organization looks to go with the second option. I am not sure how to do it exactly. Can anyone please direct me to achieve this?
Go through this sample code to implement lead conversion through REST API Call.
You can achieve this by this by creating an Apex class for REST call.
Sample code is below for your reference. And you can use this call by This test will give you around 93% of coverage. Hope this helps.
Kindly mark this as solved if the reply was helpful so that it gets removed from the unanswered queue which results in helping others who are facing a similar issue.
Thanks,
Nagendra
I am sorry if this looks silly but where do I need to map my web page url to get the details and create accounts in salesforce.