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
9. Click **Back** to return to the **Details** page.
68
64
10. Click the **Ingestion Configuration** tab to set up your ingestion destination table.
@@ -102,6 +98,47 @@ To view all ingestion jobs associated with a specific data source in Snowflake,
102
98
SELECT*FROMcore.ingestion_jobWHERE DATASOURCE_ID ='1234abcd'ORDER BY CREATED_DATE_TIME DESC;
103
99
```
104
100
101
+
## Programmatically Triggering an Ingestion Job From a Mendix App {#trigering-jobs}
102
+
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.
107
+
108
+
### Prerequisites
109
+
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](/appstore/connectors/snowflake/snowflake-rest-sql/).
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:
When using OAuth authentication with the Mendix Data Loader, it is crucial to verify the access token received by your Mendix application. This verification process ensures the token's authenticity and integrity, protecting your application from unauthorized access attempts.
Copy file name to clipboardExpand all lines: content/en/docs/appstore/use-content/platform-supported-content/modules/snowflake/snowflake-rest-sql.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,6 +117,10 @@ Your custom microflows should consist of the following:
117
117
118
118
This approach allows you to achieve asynchronous behavior while leveraging the Snowflake REST SQL Connector.
119
119
120
+
#### Programmatic Triggering of Ingestion Jobs
121
+
122
+
The Snowflake REST SQL connector can be used to trigger data ingestion jobs with an SQL statement. For more information, see [Mendix Data Loader: Programmatically Triggering an Ingestion Job From a Mendix App](/appstore/modules/snowflake/mendix-data-loader/#trigering-jobs).
123
+
120
124
## Technical Reference
121
125
122
126
To help you work with the Snowflake REST SQL connector, the following sections of this document list the available entities, enumerations, and activities that you can use in your application.
0 commit comments