You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/appstore/use-content/platform-supported-content/modules/snowflake/mendix-data-loader.md
+26-16Lines changed: 26 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,33 +98,43 @@ To view all ingestion jobs associated with a specific data source in Snowflake,
98
98
SELECT*FROMcore.ingestion_jobWHERE DATASOURCE_ID ='1234abcd'ORDER BY CREATED_DATE_TIME DESC;
99
99
```
100
100
101
-
## Programmatically Trigger an Ingestion From a Mendix App
101
+
## Programmatically Triggering an Ingestion Job From a Mendix App
102
102
103
-
Programmatically triggering an ingestion job can meet data ingestion requirements where a scheduled task may not. This includes cases such as waiting for a last submission to be submitted to a Mendix app before data ingestion occurs. Another example case is to start data ingestion when the load on the Mendix app is the lowest.
103
+
Programmatically triggering an ingestion job can meet data ingestion requirements where a scheduled task may not, for example in the following use cases:
104
+
105
+
* Waiting for a last submission to be submitted to a Mendix app before data ingestion occurs.
106
+
* Starting data ingestion when the load on the Mendix app is the lowest.
104
107
105
108
### Prerequisites
106
-
- A fully configured data source in the Mendix Data Loader
107
-
- A Mendix app equipped with the Snowflake REST SQL connector
108
-
- An authenticated user that is allowed to trigger stored procedures
109
109
110
-
To trigger an ingestion job programmatically, use the `ExecuteStatement` operation available in the Snowflake REST SQL connector. The statement to be executed has the following syntax.
110
+
* A fully configured data source in the Mendix Data Loader
111
+
* A Mendix app equipped with the Snowflake REST SQL connector
112
+
* An authenticated user that is allowed to trigger stored procedures
113
+
114
+
### Triggering the Ingestion
115
+
116
+
To trigger an ingestion job programmatically, use the `ExecuteStatement` operation available in the Snowflake REST SQL connector.
117
+
118
+
1. Obtain the Snowflake data source ID by performing the following steps:
119
+
120
+
1. In the Snowflake environment, open the Mendix Data Loader by clicking **Data Products** > **Apps** > **Mendix Data Loader**.
121
+
2. Open the application by clicking the `MENDIX_DATA_LOADER` tab.
122
+
3. Click **View** by the configured data source.
123
+
4. Copy the value for the `ID` key.
124
+
125
+
2. In the Snowflake REST SQL connector, use the `ExecuteStatement` operation to execute the following statement:
0 commit comments