Hi Community.
Situation:
- App built with powerapps
- Contains a few toggle buttons
- Workflow triggers when new item (sharepoint list) is created, then sends an email
Everything works fine, however, I want to change the text from "true" to "yes" and from "false" to "no". How can I do this in flow?
Many thanks in advance
Solved! Go to Solution.
Hi @xKazuya,
Could you please show a screenshot of your flow's configuration?
Do you want to change the text value from "true" to "yes" and "false" to "no"?
or change the boolean value from true to "yes" string and false to "no" string?
I think the if function could achieve your needs, I have made a test on my side and please take a try with the following workaround:
Add a "Variable" -> "Initialize variable" action, Name set to TextValue, Type set to String, Value set to empty. The TextValue variable represents the text you want to change.
Add a "Compose" action, Input set to following formula:
if(equals(variables('TextValue'),'true'),'yes','no')
If the Text value that you want o change is "true", the above "Compose" action would return "yes", if the Text value that you want o change is "false", the above "Compose" action would return "no".
Add a "Variable" -> "Initialize variable" action, Name set to TextValue, Type set to Boolean, Value set to empty. The TextValue variable represents the text you want to change.
Add a "Compose" action, Input set to following formula:
if(equals(variables('TextValue'),true),'yes','no')
If the Text value that you want o change is true (boolean value), the above "Compose" action would return "yes", if the Text value that you want o change is false (boolean value), the above "Compose" action would return "no".
More details about the if function in Microsoft Flow, please check the following article:
More details about using expression in flow actions, please check the following article:
Use expression in flow actions
Best regards,
Kris
Hi @xKazuya,
Could you please show a screenshot of your flow's configuration?
Do you want to change the text value from "true" to "yes" and "false" to "no"?
or change the boolean value from true to "yes" string and false to "no" string?
I think the if function could achieve your needs, I have made a test on my side and please take a try with the following workaround:
Add a "Variable" -> "Initialize variable" action, Name set to TextValue, Type set to String, Value set to empty. The TextValue variable represents the text you want to change.
Add a "Compose" action, Input set to following formula:
if(equals(variables('TextValue'),'true'),'yes','no')
If the Text value that you want o change is "true", the above "Compose" action would return "yes", if the Text value that you want o change is "false", the above "Compose" action would return "no".
Add a "Variable" -> "Initialize variable" action, Name set to TextValue, Type set to Boolean, Value set to empty. The TextValue variable represents the text you want to change.
Add a "Compose" action, Input set to following formula:
if(equals(variables('TextValue'),true),'yes','no')
If the Text value that you want o change is true (boolean value), the above "Compose" action would return "yes", if the Text value that you want o change is false (boolean value), the above "Compose" action would return "no".
More details about the if function in Microsoft Flow, please check the following article:
More details about using expression in flow actions, please check the following article:
Use expression in flow actions
Best regards,
Kris
Many thanks for your help, that did the job for me. 🙂
User | Count |
---|---|
36 | |
30 | |
19 | |
18 | |
11 |
User | Count |
---|---|
34 | |
24 | |
16 | |
15 | |
13 |