Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,542 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
In Azure Logic Apps I am trying to get Teams ID after creating it from the HTTP request. I then used Compose (headers) to see the results.
The outputs will look as follows :
{
"Location": "/teams('AAA-BBB-CCC-DDD')/operations('AAAA-BB-CCC-DDD')",
"Strict-Transport-Security": "max-age=31536000",
"request-id": "CCC-CCCC-CCC-CCCC",
"client-request-id": "CCCC-CCCC-CCCC",
"x-ms-ags-diagnostic": "{\"ServerInfo\":{\"DataCenter\":\"UK South\",\"Slice\":\"E\",\"Ring\":\"5\",\"ScaleUnit\":\"004\",\"RoleInstance\":\"LO1PEPF0000323A\"}}",
"Date": "Sat, 1 Jul 2024 16:20:34 GMT",
"Content-Location": "/teams('AAA-BBB-CCC-DDD')",
"Content-Length": "0"
}
What I am trying to achieve is to extract the Teams ID from the outputs so I can use it in "set-variable", TeamsID will be different for each run so I need to set it up as dynamic.
Add below to a Set Variable function to split the results.
@{split(split(body('Your_Logic_App_HTTP_Request')?['Location'], '/')?[1], '''')?[1]}