You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
##These scripts assume you've a named credential named 'salesforce' created for your instance. The detailed steps for doing so are below:
1
+
### Note:
2
2
3
-
* Create an Auth Provider of type 'Salesforce'. You can either create your own Connected App or use the following consumer key and secret. The scopes should include `api` and `refresh_token`
4
-
* Create a named credential using the Auth Provider above and name it `salesforce`. The authentication type should be `OAuth`. For better security, I suggest you used `Per User` authentication so only authorized users can use the Salesforce APIs through the button
3
+
Before using `sfapi`, take the following steps
4
+
5
+
- Add your lightning domain (ends with `lightning.force.com`) to the `CORS` list under `Setup`.
6
+
- Add your classic domain to `CSP Trusted Sites` list under `Setup`.
0 commit comments