应用集成代码示例
本页面包含应用集成的代码示例。 如需搜索和过滤其他 Google Cloud 产品的代码示例,请参阅 Google Cloud 示例浏览器。
Update JSON array at a specified index
Using the Data Mapping task, update the value of a JSON array at a specified index using an input variable. Store the output in a new JSON variable.
- 示例
Invoke a sub-integration to send an email
Using the For Each Loop task, invoke a sub-integration that takes input from the main integration to send email notifications.
- 示例
Filter values in a JSON array
Using the Data Mapping task, filter the elements of a JSON array based on boolean criteria, and store the filtered output in a new JSON variable.
- 示例
Make a REST call to a public API
Using the Call REST Endpoint task, make a call to a public API, and save the response in a JSON variable.
- 示例
Concat a string variable to a string array
Using the Data Mapping task, iterate through the elements of a string array and apply transformation functions to concat a string value to all the array elements.
- 示例
Merge two JSON arrays
Using the Data Mapping task, merge two JSON arrays, and store the resultant output in a new JSON variable.
- 示例
Remove a property of a JSON object
Using the Data Mapping task, remove a JSON property as specified in an input variable. Store the output in a new JSON variable.
- 示例
E-commerce sample integration
Using this sample integration, get a hands-on experience of the various triggers, tasks, and concepts of Application Integration.
- 示例
Convert a string to uppercase
Using the Data Mapping task, iterate through the elements of a string array and apply transformation functions to convert each string value to uppercase.
- 示例
Resolve a JSON reference
Using the Data Mapping task, resolve a JSON reference in a template JSON that contains a variable reference. Store the output in a new JSON variable.
- 示例
Use the Vertex AI task to embed GenAI in an integration
Using the Vertex AI task, embed GenAI in your integrations.
- 示例