Esempi di codice di Application Integration
Questa pagina contiene esempi di codice per l'integrazione delle applicazioni. Per cercare e filtrare i sample di codice per altri Google Cloud prodotti, consulta il Google Cloud browser di sample.
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.
- Esempio
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.
- Esempio
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.
- Esempio
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.
- Esempio
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.
- Esempio
Merge two JSON arrays
Using the Data Mapping task, merge two JSON arrays, and store the resultant output in a new JSON variable.
- Esempio
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.
- Esempio
E-commerce sample integration
Using this sample integration, get a hands-on experience of the various triggers, tasks, and concepts of Application Integration.
- Esempio
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.
- Esempio
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.
- Esempio
Use the Vertex AI task to embed GenAI in an integration
Using the Vertex AI task, embed GenAI in your integrations.
- Esempio