0

I am new to Salesforce integration.I have a web application and want to post user data to SalesForce account.The examples available for this purpose required SalesForce login when try to get Authorization Code using oAuth.This is not possible because when User post data on Application he don't have access to SalesForce account.Is there any way that I get permanent Authorization code.

3
  • 1
    If client does not have access to salesforce account where will you post the data? Could you frame your question with clear description Commented Aug 20, 2020 at 12:26
  • I have rephrase the question Commented Aug 20, 2020 at 14:19
  • Use oAuth with JWT as the referenced answer mentions, plenty of examples.
    – identigral
    Commented Aug 20, 2020 at 18:21

1 Answer 1

1

No, you cannot get a permanent access token into Salesforce, and no, you cannot authenticate to Salesforce without a user account.*

Some applications do use a generic Integration User account in a Salesforce org, but you must have an account. The details and best practices depend on the architecture and use case of our application.

To establish a persistent connection into Salesforce, your application should execute an OAuth flow that provides a refresh token, such as the Web Server flow. Your application can use the refresh token to acquire new access tokens indefinitely, or until access is revoked.

* It is possible to use webhook-style authentication on Salesforce but requires on-platform development and has complex security implications that require expertise in the Salesforce security model.

4
  • Can you help me with any tutorial link for webhook-style authentication on Salesforce Commented Aug 20, 2020 at 14:41
  • 1
    You'll find examples if you search SFSE. As I said, you have to build functionality on Salesforce in Apex to do that, meaning you must be working with a Salesforce developer.
    – David Reed
    Commented Aug 20, 2020 at 14:42
  • Thanks David..Can you tell me from where I can check all the Field name that can be used in creating Account and Opportunity Commented Aug 20, 2020 at 19:34
  • Please open a separate question if you have a new issue. But you will find what you need if you search for "<sObject name> Field Reference".
    – David Reed
    Commented Aug 20, 2020 at 19:36

Not the answer you're looking for? Browse other questions tagged .