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
Copy file name to clipboardExpand all lines: examples/markdown/docs/miscellaneous/Url.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@ global Url(String spec)
97
97
98
98
Creates a new instance of the URL class by parsing the specified spec within the specified context.
99
99
100
-
**Usage**
100
+
**Usage**
101
101
102
102
The new URL is created from the given context URL and the spec argument as described in RFC2396 "Uniform Resource Identifiers : Generic * Syntax" :
103
103
```xml
@@ -176,7 +176,7 @@ The authority portion of the current URL.
176
176
177
177
Returns the URL of an entire request on a Salesforce instance.
178
178
179
-
**Usage**
179
+
**Usage**
180
180
181
181
An example of a URL for an entire request is https://yourInstance.salesforce.com/apex/myVfPage.apexp.
182
182
@@ -196,7 +196,7 @@ The URL of the entire request.
196
196
197
197
Returns the default port number of the protocol associated with the current URL.
198
198
199
-
**Usage**
199
+
**Usage**
200
200
201
201
Returns -1 if the URL scheme or the stream protocol handler for the URL doesn't define a default port number.
202
202
@@ -276,15 +276,15 @@ The host name of the current URL.
276
276
277
277
Returns the canonical URL for your org. For example, https://MyDomainName.my.salesforce.com.
278
278
279
-
**Usage**
279
+
**Usage**
280
280
281
281
Use getOrgDomainUrl() to interact with Salesforce REST and SOAP APIs in Apex code. Get endpoints for User Interface API calls, for creating and customizing picklist value sets and custom fields, and more.
282
282
283
283
`getOrgDomainUrl()` can access the domain URL only for the org in which the Apex code is running.
284
284
285
285
You don't need a RemoteSiteSetting for your org to interact with the Salesforce APIs using domain URLs retrieved with this method.
286
286
287
-
**See Also**
287
+
**See Also**
288
288
289
289
*[Lightning Aura Components Developer Guide: Making API Calls from Apex](https://developer.salesforce.com/docs/atlas.en-us.250.0.lightning.meta/lightning/apex_api_calls.htm)
0 commit comments