Limitations
- This action creates a new Task record each time it runs. Re-running with similar inputs creates duplicate call logs unless you add your own checks.
- As with other Salesforce actions, the exact parameter set and behavior can change over time. Confirm how this action behaves in your own environment before you depend on it for large-scale or fully automated call log creation.
Prerequisites
- Your Salesforce org must be connected as a data source in Glean, and an admin must enable the Salesforce action pack and complete Salesforce Actions Setup including OAuth configuration.
- Users must authenticate for Salesforce actions on first use and have permission to create Task records and edit relevant fields.
- For multiple Salesforce orgs, the Salesforce action pack must be configured to use the correct instance.
Supported parameters
| Parameter | Description |
|---|---|
| Call date | Date/time stored on the call log to represent when the call took place. |
| Call disposition | Outcome or status label for the call, using values configured in your Salesforce instance, for example, connected, no answer, left voicemail. |
| Call duration seconds | Duration of the call in seconds |
| Call type | Type of call made. Examples: “Inbound” “Outbound” “Internal” |
| Subject | Short subject line for the call log; used as the Task subject in Salesforce. |
| Comments | Free‑form notes about the conversation, including context, key points, and follow‑ups. |
| What ID | ID of the related record (Account, Opportunity, Case, etc.) associated with the call. |
| Who ID | ID of the Contact or Lead associated with the call. |
Usage example
You just completed a discovery call with a prospective customer and need to log the call details in Salesforce with key discussion points and next steps. Instruction to an agent: “Log a call for the Opportunity XYZ Corp Q1 Deal with subject Discovery Call, call type Outbound, duration 30 minutes, disposition Connected - Interested, and include notes: discussed their pain points with current solution, interested in our enterprise tier, scheduling technical demo for next week.” Resulting behavior:- Calls a Salesforce search action to find the Opportunity matching “XYZ Corp Q1 Deal”.
- Retrieves the Opportunity ID (for example, “006xx000001234567”) and related Contact ID.
-
Calls Create call log with:
-
Subjectset to “Discovery Call”. -
Call dateset to current date and time. -
Call typeset to “Outbound”. -
Call duration secondsset to 1800 (30 minutes). -
Call dispositionset to “Connected - Interested”. -
What IDset to “006xx000001234567” (the Opportunity ID). -
Who IDset to the Contact ID associated with the Opportunity. -
Commentsset to “Discussed their pain points with current solution. Interested in our enterprise tier with advanced features. Scheduling technical demo for next week with their engineering team.”
-
- Creates a new Task record in Salesforce representing the call.
- Returns the Task ID (for example, “00Txx000001234567”).
- The call log appears in the Salesforce Opportunity’s activity history.
- Team members can view the call details and follow up appropriately.
Troubleshooting
Action fails with an authorization or OAuth error
Action fails with an authorization or OAuth error
Salesforce returns a field or permission error when creating the call log
Salesforce returns a field or permission error when creating the call log
- Possible cause: The Salesforce user does not have access to one or more fields used by the action, or required fields in Salesforce are missing from the payload.
- Fix: Work with a Salesforce admin to check task field-level security and required fields for the relevant record type. Adjust the profile or permission of the user, set or update the agent prompt so it only fills fields the user can write.
The action does not appear in the Agent Builder
The action does not appear in the Agent Builder
- Possible cause: The Salesforce actions pack is not added, or the specific action is not published to be used by agents.
- Fix: In the Glean admin console, confirm that the Salesforce actions pack is enabled and that the Log call action is included and published. Then reopen the Agent Builder and search for the action by name.
FAQs
Where do I see the logged call in Salesforce?
Where do I see the logged call in Salesforce?
The action creates a Task record for the call. You can use the returned Task ID or navigate in Salesforce to the related Account, Contact, Lead, or Opportunity to view the associated activity in the activity history.
What Salesforce record types can I associate the call log with?
What Salesforce record types can I associate the call log with?
You can associate call logs with any Salesforce record type that supports Task associations using the What ID parameter, including Accounts, Opportunities, and Cases. Use the Who ID parameter to link to a Contact or Lead.