Skip to main content

SAP Sales Order Inquiry by Sales Order Number or Customer PO number

Overview

This feature allows users to retrieve SAP Sales Document Item statuses within Agentforce chat using Custom Lightning Types(CLT) UI for clarity and structure.

Most importantly, each response includes a direct link to open the full Sales Document in Surface — your integrated SAP document viewer — allowing users to instantly deep dive into SAP order details with a single click.

agentforce+surface

Post-Installation Configuration for SAP Sales Document Items status integrated with Surface app

After installation, follow these steps to configure the enosix @arnold AI Agent for Salesforce app:

Grant User Access


  • Navigate to Setup > Users > Permission Sets.
  • Assign the enosix Agentforce User permission set to users or profiles.

Configure Named Credentials


  • Navigate to Named Credentials in Salesforce.
  • Update URL for enosixSAPLink using valid Link Api Proxy instance.
    • Navigate to External Credential enosixLinkExtCred Principal.
    • Update Username and Password to access SAP system.
  • Make sure your Surface named credentials is using the same SAP system connection.

Enable Agentforce and Create Topics


Configure Topic "Sales Order item status by Order Number"

  1. From Setup navigate to Agentforce Agents and toggle on both to enable Agentforce and Agentforce(Default)
  2. Access Agentforce(Default) agent via builder and create new topic by adding overview "What do you want this topic to do": "Retrieves SAP Sales Order Items status when user specifies Sales Order number". Click Next.
  3. All the fields will be populated based on the provided overview, add couple additional instructions (in the instance of of configuring 2 topics where one looks up for SAP Sales Order by PO number and the other by Sale Order number).
    • Instruction: "If the user provides only a document number without indicating whether it is a Purchase Order or a Sales Order, prompt them to specify the document type."
    • Instruction: "If the user mentions only the word "Order" with a document number but doesn't specify whether it's a Purchase or Sales Order, prompt them to clarify the order type."
    • Add the following user inputs into the Example User Input field:
      • "Can I get shipping info for SO 80000?"
      • "Do we have any tracking for order 80003?"
      • "Give me the latest update on order 80003."
      • "Is Sales Order 80005 fully shipped yet?"
      • "Please show the details for SO 80002"
      • "Provide the invoice status for Sales Order 80006."
      • "Sales Orders 80000, 80005, 80002 - update them all."
      • "What’s the delivery status of Sales Order number 80000?"
  4. Click Next.
  5. Add New Action:
    • Select APEX from drop down,
    • Select Invocable Method from 2nd drop down
    • Select Sales Order Status.
  6. Click Next.
  7. Uncheck loading text
  8. Check Show in conversation under the Output section
  9. For Output Rendering select Ensxapi__salesOrderStatusResponse from drop down.
  10. Click Finish.

Configure Topic "Sales Order item status by Purchase Order Number"

Follow the same steps above with the following exceptions:

  • For the Example User Input, anywhere sales order number is referenced replace that with purchase order number instead.
  • When selecting the action, select Sales Order Status by PO instead of Sales Order Status
  • Activate agent