Skip to main content
Gainsight Inc.

Call External API Action Type

Gainsight NXT

 

This article explains how admin can use the Call External API action type in Rules Engine. 

Overview

The Call External API Action type in Rules Engine lets admins establish a connection between Gainsight and external systems with a request action from the external system via an API. 

Gainsight recommends reading the configuration of the Rules Details, Data Setup, and Schedule steps before reading this article. For more information, refer to the Create New Rule section of the Rules Engine Horizon Experience Overview article.

Prerequisites

External Actions and Custom Connectors must be configured to the External Actions page.

Once you set up a connection to an external application, you can create actions on the External Actions page. 

 For more information, refer to the Configure Custom Connectors and  Configure External Actions sections of the Configure External Action from Gainsight article. 

Configure Call External API Action

To configure  the Call External API Action type:

  1. In the Action Setup step, Hover on the dataset. The Add Action icon appears.
  2. Click the Add Action icon.The Add Criteria slide-out panel appears.
  3. (Optional) Click Add Criteria to set conditions for the dataset. The action items are executed only if the conditions are satisfied.
  4.  (Optional) Click Continue.The Add Action slide-out panel.
  5. In the Add Criteria slide-out panel, provide the following details:
    1. Criteria Name: Enter the name.
    2. Field: From the Field dropdown list, select a field.
    3. Input Type: From the Input Type dropdown list, select an input.
    4. Operator: From the Operator dropdown list, select an operator.
    5. Value: Enter a numeric value.
    6. Plus icon: Click the plus icon to add another field.
    7. Cross icon: Click cross icon to delete a field.
    8. Advanced Logic: Enter the advanced logic here.
  6. Click Continue to navigate to the  Add Action step.

Add Criteria.jpg

  1. From the Create Action dropdown list, select the Call External API action type. The Call External API configuration slide-out panel appears.
  2. In the Call External API configuration slide-out panel, provide the following details:
  • From the Connector dropdown list, select a connector.
  • From the External Action dropdown list, select an external action.
  • (Optional) Enter the description for the rule action.
  • URL: Admin can view the URL in view mode.
  • Field Mapping: From the Source Fields dropdown list , select a source field to map External Action fields to Source fields.
  • (Optional) From the Source Fields dropdown list, click Add Custom Static Value to enter a custom value.
  • (Optional) Click Create Connection to create a new connection.
  • Click Save Actions. The Call External API Action is saved successfully.

Create Action 

To create an action:

  • (Optional) Click Create Action to create a new action. The Create Action slide-out panel appears.
    • From the Connectors dropdown list, select a Connector.
    • Enter the Action Name.
    • From the Method dropdown list, select the method.
    • Enter the URL.
    • Expand the Payload and select the required option.
    • Expand the Header Information and enter the Content Type, application/json.
    • The Fields section gets auto populated once the payload, url and headers section are filled.
    • Expand the Advanced Configuration Information and enter the max retries limit.
    • Click Save.

Clone Call External API Action

 Click Clone icon. The action item gets cloned. 

Clone API.jpg

Delete

Click Delete icon. The action item gets deleted.

delete API.jpg

  • Was this article helpful?