Exemples de code d'intégration d'applications
Cette page contient des exemples de code pour l'intégration d'applications. Pour rechercher et filtrer des exemples de code pour d'autres produits Google Cloud , consultez l'explorateur d'exemplesGoogle 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.
- Sample
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.
- Sample
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.
- Sample
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.
- Sample
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.
- Sample
Merge two JSON arrays
Using the Data Mapping task, merge two JSON arrays, and store the resultant output in a new JSON variable.
- Sample
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.
- Sample
E-commerce sample integration
Using this sample integration, get a hands-on experience of the various triggers, tasks, and concepts of Application Integration.
- Sample
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.
- Sample
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.
- Sample
Use the Vertex AI task to embed GenAI in an integration
Using the Vertex AI task, embed GenAI in your integrations.
- Sample