Admin Mack
Admin Mack

Reputation: 1

Force an Azure Logic App to recognise a text string as a token and replace it with the token's value at run time

Details of the Azure Logic App:

Is there any way to make the logic app recognise these string values as tokens and replace the string value with the value of the token?

For example

I've tried adding steps in the app to convert the json object to a string and then back into an object, in the hope that this would force the Logic App to recognise the text triggerBody()?['variable1'] as a token and replace it with the token's value, but that's not working.

Any guidance would be greatly appreciated!

Upvotes: 0

Views: 423

Answers (1)

PramodValavala
PramodValavala

Reputation: 6647

Unfortunately, this isn't possible. The tokens are replaced just once. The alternatives are

  1. Use the replace function to do this. Though this will not work dynamically and should be OK with a small list of known variables.
  2. You could use the inline function to replace tokens with values. Note that this requires an integration account.

Originally answered on Microsoft Q&A

Upvotes: 0

Related Questions