i have several users that will use 1 n8n workflow from a chat UI.
i already have their salesforce credentials(ie. access and refresh token). I want to use n8n built in Tool for salesforce.
how do i setup the n8n built in Tool for salesforce oauth2? i plan on passing the tokens via body metadata.
I’ve read Salesforce credentials | n8n Docs , but this doesnt mention for 0auth2, the access token already provided.
i am not planning jwt. it does not make sense for my application.
Welcome to the community.
Have you tried Using Expressions in the Credential?
In the OAuth2 credential setup, you can use expressions to reference workflow data: Access Token: {{ $json.access_token }} or {{ $node["HTTP Request"].json["access_token"] }}Refresh Token: {{ $json.refresh_token }} or {{ $node["HTTP Request"].json["refresh_token"] }}
Instead of generating jwt by yourself, salesforce already handled it by using Oauth2 JWT, see below, it more easy-to-use authentication instead of defining jwt by yourself.