--- title: "Create Tasks in Rules Engine" slug: "create-tasks-in-rules-engine" updated: 2026-11-27T13:56:53Z published: 2026-11-27T13:56:53Z canonical: "support.gainsight.com/create-tasks-in-rules-engine" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.gainsight.com/llms.txt > Use this file to discover all available pages before exploring further. # Create Tasks in Rules Engine Gainsight NXT 重要 - 画像/情報は四半期ごとのリリースで更新されます! 四半期ごとのリリースにて、最新の機能・情報を反映し、画像を含めた情報は更新されます。 ## Create Tasks with Rules Engine This article provides guidelines on how Admins fetch data from Matrix Data Architecture (MDA) and perform actions using Gainsight’s **Rules** Engine that has the capability to transform fetched data in various ways and execute actions with a single Rule. Users can perform Historical Rule Executions faster using Rules Engine because of the data volume. Before you start exploring how to create tasks using Rules Engine, ensure that you have read the [*Getting Started with Gainsight Rules*](/v1/docs/ja/getting-started-with-rules-engine) article. ## Fetch Data To create a Dataset: 1. Navigate to **Rules Engine > RULES LIST** tab. 2. Click **+RULE**. The **Create Rule** screen is displayed. ![RED1.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/RED1(3).png?sv=2026-02-06&spr=https&st=2026-11-30T20%3A16%3A20Z&se=2026-11-30T21%3A16%3A20Z&sr=b&sp=r&sig=DsoYyTMCcrhy2E4iUufMI%2BAmCnilMoZ3MGwm0lQuloA%3D) 3. Provide the following in the **Create Rule** screen: ![clipboard_e48ad42fc52dade8802c348ddd6d5fa9d.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/clipboard_e48ad42fc52dade8802c348ddd6d5fa9d.png?sv=2026-02-06&spr=https&st=2026-11-30T20%3A16%3A20Z&se=2026-11-30T21%3A16%3A20Z&sr=b&sp=r&sig=huvRBG4gULNrNaBWqEVZW%2BeLxG2Mhalj2SZ3Fgolkus%3D) - Select the Rule for a Company. - Enter a **Rule Name**. - Select a folder for the rule. - Enter **Description** *[Optional]*. 4. Click **NEXT**. You are navigated to the Setup Rule screen. 5. Click **DATASET**. ![clipboard_eda883cf45d9d55b45af38b8af71fe842.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/clipboard_eda883cf45d9d55b45af38b8af71fe842.png?sv=2026-02-06&spr=https&st=2026-11-30T20%3A16%3A20Z&se=2026-11-30T21%3A16%3A20Z&sr=b&sp=r&sig=HtaAW%2F1AYru8CXOf6neGip%2Bd5V3My6xPFDfHcUEfADk%3D) 6. Enter the **Task Name**, **Task Description**, and Output Dataset Name. If you do not provide a value in the **Task Name field**, it is auto-populated as per the format *Fetch from* <*Object Name>;* if you have used the **Account** object, the task name is auto-populated as **Fetch from Account** (if you do not provide a Task name). **Note:** Output Dataset Name auto-populates from Task Name and it can be changed to a different name. It has no dependency on Task Name**.** In this use case, the following details are used: **IMPORTANT:** It is mandatory to have only one output task to execute actions. Ensure to use the Merge task, if there are more than one output task. Matrix Data is the default Data source for all the Rules. ![Task name.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Task_name.png?sv=2026-02-06&spr=https&st=2026-11-30T20%3A16%3A20Z&se=2026-11-30T21%3A16%3A20Z&sr=b&sp=r&sig=92aG1Nyo4o0D3VS8lpJVHhQzsZCuAZIIuRwLafKWwHs%3D) Gainsight NXT in Salesforce CRM Content in this section supports Gainsight NXT accessing through Salesforce Login. To learn more about Gainsight NXT in Salesforce, click [here](/docs/ja/create-tasks-in-rules-engine#). **Click here to expand for more information about creating Rules from Dataset** You can also use the Salesforce connection as a data source. When you select this data source, you can use objects from Salesforce to build the rule. The source name is the same as the Salesforce Connection name. ![Dataset from SFDC.GIF](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Dataset_from_SFDC.GIF?sv=2026-02-06&spr=https&st=2026-11-30T20%3A16%3A20Z&se=2026-11-30T21%3A16%3A20Z&sr=b&sp=r&sig=tXVtPUCkq%2BdU0%2FrKp3ty4XaBMs3U4hgzC%2B7pHrAz87c%3D) In the above image, the Salesforce Connection name is Salesforce. Hence the source name is displayed as Salesforce. - **Task Name:** Fetch from usage data [Maximum 80 characters and should be Alphanumeric; _ and space are supported] - **Task Description:** Usage data fetch [ Maximum 200 characters] - **Output Dataset Name:** Usage Data [Maximum 60 characters and should be Alphanumeric; _ and space are supported]. This gets pre-populated with the task name by default. 7. Select **Usage Data** as the source object from **Matrix Data**. The fields available in the Usage Data data source are displayed in the drop-down list. ![Selecting Usage Data Object.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Selecting_Usage_Data_Object.png?sv=2026-02-06&spr=https&st=2026-11-30T20%3A16%3A20Z&se=2026-11-30T21%3A16%3A20Z&sr=b&sp=r&sig=upmVi7d1PLDUdafAJDmBPmC5F1RcFouXUr79ymQb8rw%3D) 8. Drag and drop the following fields from **Usage Data** in the **Show** section: ![Configuring Show sections.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Configuring_Show_sections.png?sv=2026-02-06&spr=https&st=2026-11-30T20%3A16%3A20Z&se=2026-11-30T21%3A16%3A20Z&sr=b&sp=r&sig=apj74INM6Z63qpxxT35HpZrkiadHKcRTyGRilpOqoH0%3D) 9. Drag and drop fields in the **Filters** section and apply logic as required. Advanced logic **AND** is applied on the selected filters automatically in the **Advanced Logic** section. You can modify the logical operator to OR. Advanced Logic is not case-sensitive in *Setup Rule*. ![Fetch data_7.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Fetch_data_7.png?sv=2026-02-06&spr=https&st=2026-11-30T20%3A16%3A20Z&se=2026-11-30T21%3A16%3A20Z&sr=b&sp=r&sig=M9VeQXNc7gZw72Jbmmj1VU07HU48Qn9xI8yuXuIIJRg%3D) 10. Click **SAVE** to create the task as configured. This task is now available for you to proceed further. You can also click **PREVIEW** to view the task results in a new window. To navigate back to the Tasks list, click **<-** icon. ![Saving and Previewing.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Saving_and_Previewing.png?sv=2026-02-06&spr=https&st=2026-11-30T20%3A16%3A20Z&se=2026-11-30T21%3A16%3A20Z&sr=b&sp=r&sig=NYjy5HILAKtvJmCUthPeXqoSp%2FEet2mEuMKXp4yTSZc%3D) **Note:** If the rich text fields are added in the **Show me** section of a rule task, the **Don’t include HTML tags** checkbox is enabled. Admins can select this option if they want to remove the HTML tags from Rules Engine. ![Rich Text.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Rich_Text(1).png?sv=2026-02-06&spr=https&st=2026-11-30T20%3A16%3A20Z&se=2026-11-30T21%3A16%3A20Z&sr=b&sp=r&sig=EmL2sLwwbJhH3EWyqzZZyFELpzBS2YaL%2Buj%2FlSuQ8B4%3D) **IMPORTANT:** Admins can select the **Notes Plain-Text** field to export the notes field without HTML tags when importing data from the **Activity Timeline** object. ![Feedback.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Feedback(1).png?sv=2026-02-06&spr=https&st=2026-11-30T20%3A16%3A20Z&se=2026-11-30T21%3A16%3A20Z&sr=b&sp=r&sig=yWyXk%2FfAJSdwiEEP4C%2FbYkn6dOElbwc0htRSE9oP%2BV4%3D) The following are the limitations in task creation: | **Task** | **Number** | **Comments** | | --- | --- | --- | | Max # of tasks allowed | 15 | | | Max # of Show fields in each task | 50 | In Pivot task, we can pivot on a field using 200 cases | | Max # of Group by fields in transformation tasks | 10 | | | Max # of filters allowed in each task | 26 | This limit is in filters of every task. | | Max # of results displayed in Preview Results | 100 | | ## Fetch Data from Gainsight PX Custom Events Admins can now fetch custom event data including Account/User and Global context attributes for custom events from Gainsight PX custom events and perform any actions in Rules Engine. In the Setup Rule screen, admins can select the PX Connection and Product Name, for which all the configured events are displayed for selection. Like any other source/object, admins can add show fields/filters based on the selected event properties and also perform merge/transform tasks. To fetch PX usage data, admins must configure the PX Connector in the Gainsight CS application. For more information, refer to the [*Gainsight PX Connector*](https://gainsight-ja.mindtouch.us/Gainsight_NXT_%E6%97%A5%E6%9C%AC/%E3%82%B3%E3%83%8D%E3%82%AF%E3%82%BF/Connectors_Version_-_Archived/04Usage_Data_Connectors/Gainsight_PX_Connector) article. **Limitations:** Following are some of the limitations in using PX usage data: - The Date field is mandatory and it must be bounded such that you need to have a start date and end date. - Only the data from the past 180 days is considered. - Event level data is not supported. Gainsight always aggregates EventID to Count (EventID) when dropped in the Show section. - Only 100K records are fetched per rule. ![PX.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/PX(3).png?sv=2026-02-06&spr=https&st=2026-11-30T20%3A16%3A20Z&se=2026-11-30T21%3A16%3A20Z&sr=b&sp=r&sig=0DiwLBVZdHQzFHhh1Dm%2Bop%2BiDBjAx4sQ4E0Xx83hl70%3D) ## Fetch Data from S3 Bucket Gainsight allows you to import data from the Amazon S3 bucket. An S3 dataset task is specifically designed to configure and fetch data from the Amazon S3 bucket. The source files can be stored in the Gainsight bucket or any of your custom buckets. For more information on how to create S3 Dataset tasks, refer to the [*S3 Dataset in Rules Engine*](/v1/docs/ja/s3-dataset-task-in-rules-engine) article. ## Transform Data You can also perform Transformation Tasks in Rules Engine. Transformation tasks supported in Rules Engine include Merge, Transformation, and Pivot. Group by **Date** and **DateTime** includes various functions at Day, Week, Month, Quarter, and Year. You can add **Date** field in the **GroupBy** section in any of the Transformation tasks (Aggregate/Pivot). For more information about how you can transform data into a polished, actionable dataset in Rules Engine using the Merge, Pivot, and Transformation options, refer to the following articles. - [*Merge Tasks in Rules Engine*](/v1/docs/ja/merge-tasks-using-rules-engine) - [*Pivot Tasks in Rules Engine*](/v1/docs/ja/pivot-tasks-in-rules-engine) - [*Transformation Tasks in Rules Engine*](/v1/docs/ja/transformation-tasks-in-rules-engine)