...
Code Block |
---|
trigger "Metadata trigger" { type = "Specific Metadata Value" resolves = "Set String Metafield" value = "#54a0ff;creative" ignore_casing = "true" meta_field = "guid:6fe35f10-c810-497b-af9c-e52c3d583593" listen_to_metadata_changes = "all" } action "Invoke Endpoint" { type = "Invoke Endpoint" endpoint = "https://dgz-integration-broker.azurewebsites.net/api/integrations/asset/invoke?clientId={SECRET_CLIENT_ID}&integrationType=ximilaraiservice&assetId=<assetid>&code={SECRET_CODE}" method = "post" response = "@response" } action "Get Value At Index" { type = "Get Value At Index" needs = "Invoke Endpoint" values = "@response" index = "0" result = "@firstInArray" } action "Query JSON" { type = "Query JSON" needs = "Get Value At Index" Invoke Endpoint" json = "@firstInArray@response" json_path = "$.result.tags[*].name" error_on_not_found_items = "true" result = "@queryResult"" } action "Set String Metafield" { type = "Set String Metafield" needs = "Query JSON" meta_field = "guid:7441267e-4f7c-4dcd-9c42-20273a4ab6af" new_value = "@queryResult" asset_item_ids = "@sourceAssetItemId" } |
...