Links

The Links object is a JSON-formatted object containing URLs that can be helpful when integrating your canvas app. For example, use the enterpriseUrl to make calls into Salesforce using the enterprise WSDL.

The links that are listed here are the most commonly used links. They can be helpful when you’re building the REST endpoints for your canvas app. For a complete list of links and related functionality, see the Lightning Platform REST API Developer’s Guide and the Connect REST API Developer Guide.

Note

FieldDescription
chatterFeedItemsUrlURL to return Chatter feed items for the context organization. This link will still work for integrations created prior to API version 68.0, because the link only points to functionality within API versions 31.0 and earlier.
chatterFeedsUrlURL to return Chatter feeds for the context organization. This link will still work for integrations created prior to API version 68.0, because the link only points to functionality within API versions 31.0 and earlier.
chatterGroupsUrlURL to return Chatter groups for the context organization.
chatterUsersUrlURL that returns Chatter users for the context organization.
enterpriseUrlURL to make API calls back to Salesforce using the enterprise WSDL.
loginUrlURL of the login server for the instance the context user is logged into. Used internally.
metadataUrlURL to make calls to the Metadata API.
partnerUrlURL to make API calls back to Salesforce using the partner WSDL.
queryUrlURL to issue a SOQL query.
recentItemsUrlURL to access recent items.
restUrlURL to return a list of REST API resources.
searchUrlURL to issue a SOSL search.
sobjectUrlURL that retrieves metadata or data from Salesforce objects.
userUrlURL for the context user.

The following code snippet shows an example of the Links object.

1"links":
2{
3    "chatterFeedItemsUrl":"/services/data/v31.0/chatter/feed-items", 
4    "chatterFeedsUrl":"/services/data/v31.0/chatter/feeds", 
5    "chatterGroupsUrl":"/services/data/v68.0/chatter/groups", 
6    "chatterUsersUrl":"/services/data/v68.0/chatter/users", 
7    "enterpriseUrl":"/services/Soap/c/68.0/00Dx00000001hxy", 
8    "loginUrl":"https://login.salesforce.com",
9    "metadataUrl":"/services/Soap/m/68.0/00Dx00000001hxy", 
10    "partnerUrl":"/services/Soap/u/68.0/00Dx00000001hxy", 
11    "queryUrl":"/services/data/v68.0/query/", 
12    "recentItemsUrl":"/services/data/v68.0/recent/", 
13    "restUrl":"/services/data/v68.0/", 
14    "searchUrl":"/services/data/v68.0/search/", 
15    "sobjectUrl":"/services/data/v68.0/sobjects/", 
16    "userUrl":"/005x0000001SyyEAAS" 
17}

Available Links and OAuth Scopes 

Links that the canvas app can use depend on what OAuth scopes are selected when you create the connected app.

ScopeDescription
Access your basic information
  • userUrl
  • loginUrl
Access and manage your data
  • enterpriseUrl
  • metadataUrl
  • partnerUrl
  • queryUrl
  • recentItemsUrl
  • restUrl
  • searchUrl
  • sobjectUrl
Access and manage your Chatter data
  • chatterFeedItemsUrl
  • chatterFeedsUrl
  • chatterGroupsUrl
  • chatterUsersUrl
Full accessAll links

See Also