String expressions are on the lower left menu in the designer. https://learn.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#string-functions
How to extract part of http url in logic app
Yahya Shareef
1
Reputation point
Hi i need to extract last part of the below url in my logic app which is (d3aba6d3-0bf6-492f-e053-3a55050ab2ee) how can i do this.
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2 answers
Sort by: Most helpful
-
Andrew Blumhardt 10,071 Reputation points Microsoft Employee2021-12-22T15:56:41.453+00:00 -
MayankBargali-MSFT 70,986 Reputation points Moderator2021-12-23T05:25:47.09+00:00 @Yahya Shareef You can use the below expression to get your desired output. Splitting your input value
/which I have stored in URL variable of type string and getting the last index of the array to get your desired output. As Andrew has shared the reference document for the different functions that you can use in the logic app.Navigate to dynamic content (on any of the actions where you want to use) --> Expression
last(split(variables('URL'),'/'))