Skip to content

Commit 3019b4f

Browse files
committed
Update readme
1 parent 3dcd3b5 commit 3019b4f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/jsButton/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
## These scripts assume you've a named credential named 'salesforce' created for your instance. The detailed steps for doing so are below:
1+
### Note:
22

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

Comments
 (0)