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
aparna atmakuriaparna atmakuri 

How to post the data from third party client to salesforce service provider using oauth username and password ?

GovindarajGovindaraj
Hi Aparna,

1. Create a 'connected app' for authentication.

2. Develop custom apex webservice. (sometimes we can go with std api too)
https://trailhead.salesforce.com/en/content/learn/modules/apex_integration_services

3. Make a POST call from external applcation.

Please let us know, if you need any further help.

Thanks,
Govindaraj.S
Ajay K DubediAjay K Dubedi
Hi Aparna,
Here are the steps for the username-password authentication flow.
1. The consumer uses the user’s username and password to request an access token (session ID.)
2. After the request is verified, Salesforce sends a response to the client.

After a consumer has an access token, it can use the access token to access Salesforce data on the user’s behalf.
Please follow this link for more detail, this will give you full knowledge about Salesforce Username and Password OAuth flow.
https://rajvakati.com/2017/10/19/salesforce-username-and-password-oauth-flow/
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks,
Ajay Dubedi
aparna atmakuriaparna atmakuri
Hi Govindaraj.S,

Thanks for your response.

I created connected app and apex webs service using soap but I didn't get how to make post call to the client.
Can you please suggest me any scenario to make POST call.

Thanks,
Aparna
GovindarajGovindaraj
Hi Aparna,

Are you going to use SOAP ?

Any specific reason that SOAP should be used for this integration ?

Thanks,
Govindaraj.S