I would like map values in several attributes, for example
0 : Critical
1 : High
2 : Medium
3 : Low
From the trigger, I receive this JSON structure
and in the flow, I would to transform in
How I can do this with Flow?
Thanks / Philippe
You may try to use workflow definition language to replace a string with a given string.
Please check the documentation at here:https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language
For a simple test, I use the following function in a Compose action:if(equals(triggerBody()['text'],'0'),replace(triggerBody()['text'],'0','Critical'),'')
Hope this could be a reference for you.
Best regards, Mabel Mao
Check out the new Power Platform Community Connections gallery!
Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.