Describe the problem/error/question
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.
Please share your workflow
https://jonathanliu.app.n8n.cloud/workflow/ob6Eh0bNbK1phEdY/145d99
## Information on your n8n setup
n8n cloud, desktop app
Hey @Jonathan_Liu ,
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"] }}
concept sounds nice.
how to implement via n8n salesforce? i dont know where to add Access Token: {{ $json.access_token }}
new n8n salesforce tool
select cred
connect my account opens up the salesforce sign in page. which is not what i want.
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.