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
{{ message }}
This repository was archived by the owner on Jan 27, 2024. It is now read-only.
for working with Salesforce REST API and JavaScript Fetch API
6
-
directly from your component's JavaScript without you needing to
6
+
directly from your aura component's JavaScript without you needing to
7
7
write Apex or configure Named Credentials. Just install and use.
8
8
9
-
# Pre-Requisites
9
+
## 📝 Table of Contents
10
+
11
+
*[Prerequisites](#-prerequisites)
12
+
*[Getting Started](#-getting-started)
13
+
*[Example Usage](#-example-usage)
14
+
*[Troubleshooting](#-troubleshooting)
15
+
*[Authors](#️-authors)
16
+
*[Acknowledgements](#-acknowledgements)
17
+
*[License](#-license)
18
+
19
+
## 🚨 Prerequisites
10
20
11
21
1. Enable Lightning Experience
12
22
2. Enable My Domain
@@ -15,15 +25,32 @@ write Apex or configure Named Credentials. Just install and use.
15
25
You can find step-by-step instructions with screen shots in the [Mass Action Scheduler Pre-Requisites](https://github.com/douglascayers-org/sfdx-mass-action-scheduler/wiki/Pre-Requisites-Instructions) wiki page,
16
26
which is my primary app that uses this component.
17
27
18
-
19
-
# Getting Started
28
+
## 👋 Getting Started
20
29
21
30
1. Deploy this project to your org (you only need what's in `force-app` folder).
@@ -85,9 +111,9 @@ Find the `<c:lc_api>` by its `aura:id` then call one of the request methods:
85
111
})
86
112
```
87
113
88
-
# Troubleshooting
114
+
## 🧐 Troubleshooting
89
115
90
-
## "Access Denied" or "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://yourinstance.visualforce.com' is therefore not allowed access."
116
+
###"Access Denied" or "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://yourinstance.visualforce.com' is therefore not allowed access."
91
117
92
118
Your request was blocked due to [Cross-Origin Resource Sharing (CORS) policy](https://help.salesforce.com/articleView?id=extend_code_cors.htm&type=5).
93
119
@@ -99,24 +125,25 @@ Because the two domains do not match, then CORS policy prevents the request.
99
125
100
126
2. Add the origin URL mentioned in your error message (e.g. `https://yourinstance.visualforce.com`) to the list of whitelisted domains.
101
127
102
-
103
-
# Credits
128
+
## ✍️ Authors
104
129
105
130
[Doug Ayers](https://douglascayers.com) develops and maintains the project.
106
131
132
+
See also the list of [contributors](https://github.com/douglascayers/sfdx-lightning-api-component/graphs/contributors) who participated in this project.
133
+
134
+
## 🎉 Acknowledgements
135
+
107
136
[Penpal](https://github.com/Aaronius/penpal)
108
137
for a secure, promise-based library for communicating between windows and iframes.
109
138
110
139
[jsforce](https://jsforce.github.io/)
111
140
for an elegant, promise-based library for working with Salesforce REST API.
112
141
113
-
114
-
# Other Utilities
142
+
## 🎈 Other Utilities
115
143
116
144
You should check out [sfdc-lax](https://github.com/ruslan-kurchenko/sfdc-lax) by Ruslan Kurchenko,
117
145
a promise-based service component that makes calling Apex actions or using Lightning Data Service a breeze.
118
146
119
-
120
-
# License
147
+
## 👀 License
121
148
122
149
The source code is licensed under the [BSD 3-Clause License](LICENSE)
0 commit comments