AgentforcePageContext
struct AgentforcePageContext
Represents the current page context within a Salesforce application.
This structure encapsulates information about the user's current location and context within the application, enabling the Agentforce SDK to provide contextually relevant responses and suggestions.
Property | Type | Description |
---|---|---|
actionName | String? | The current action being performed on the page |
appName | String? | The name of the current Salesforce application |
objectApiName | String | The API name of the current Salesforce object |
pageName | String? | The name of the current page, if applicable |
pageType | String? | The type of page currently being displayed |
recordId | String? | The unique identifier of the current record, if viewing a specific record |
Method | Signature | Description |
---|---|---|
init | init(appName:objectApiName:attributes:) | Creates a new page context with the specified app and object information |