Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 4 Current »

This guide will walk you through the steps to create an Agent Action in Salesforce, link it to a method within PosiPay, and use that Agent Action for an agent.


Prerequisites

  1. Salesforce Setup Access: Ensure you have administrative privileges to configure Agent Actions.

  2. Managed Apex Class: Confirm that the Apex class with the required method is available in your org.

  3. Omni-Channel Setup: Verify Omni-Channel is enabled and properly configured in your Salesforce org.


Steps

Step 1: Review the Apex Class

  1. Go to Setup and navigate to Apex Classes.

  2. Search for the managed Apex class you intend to use.

  3. Open the class and review its methods to identify the one you want to call. Ensure the method is marked as @AuraEnabled to allow interaction.

Note: If you cannot view the method’s implementation, refer to the managed package documentation or contact the provider for details


Step 2: Create an Agent Action

  1. Navigate to Setup and search for Agent Actions in the Quick Find box.

  2. Click New Action.

  3. Fill in the following fields:

    • Action Name: Provide a descriptive name for your action (e.g., Fetch Account Details).

    • API Name: The system-generated name for the action.

    • Action Type: Select Apex Method.

    • Apex Class: Select the managed Apex class from the dropdown.

    • Apex Method: Choose the appropriate method from the selected class.

  4. (Optional) Add input parameters if the method requires them.

  5. Click Save.


Step 3: Configure the Omni-Channel Utility Bar

  1. Navigate to App Manager in Setup.

  2. Edit the Lightning App used by your agents.

  3. In the Utility Bar section, ensure the Omni-Channel Utility is added.

  4. Save and activate the app.


Step 4: Assign the Agent Action to Agents

  1. Navigate to Omni-Channel in Setup.

  2. Open Agent Configurations.

  3. Select the configuration assigned to the target agents.

  4. Under Agent Actions, add the newly created action.

  5. Save the configuration.


Step 5: Testing the Agent Action

  1. Log in as an agent.

  2. Open the Omni-Channel utility in the Lightning Console.

  3. Select a record and execute the Agent Action.

  4. Verify that the Apex method runs successfully and returns the expected result.


Troubleshooting

  • Method Not Appearing: Ensure the method in the Apex class is marked @AuraEnabled and is exposed to your org.

  • Permission Errors: Check that agents have the required permissions to execute the Apex class and associated method.

  • Unexpected Results: Validate the input parameters and debug the method using debug logs.


By following these steps, you can now use Agentforce to monitor your reconciled or unreconciled gateway settlements.

  • No labels