Hello!
I have a solution in powerapps what I would like to copy to power automate environment:
Powerapps:
Text("12",000) ->basically this extend my text into three digit (example: 42->042)
How can I solve this in power automate?
Thankyou
Solved! Go to Solution.
You could use an expression like this:
concat
(
if(equals(length(outputs('Text')),2), concat('0', outputs('Text')), ''),
if(equals(length(outputs('Text')),1), concat('00', outputs('Text')), ''),
if(greater(length(outputs('Text')),2), outputs('Text'), '')
)
You would need to replace outputs('Text') with dynamic values from your flow.
You could use an expression like this:
concat
(
if(equals(length(outputs('Text')),2), concat('0', outputs('Text')), ''),
if(equals(length(outputs('Text')),1), concat('00', outputs('Text')), ''),
if(greater(length(outputs('Text')),2), outputs('Text'), '')
)
You would need to replace outputs('Text') with dynamic values from your flow.
Thank you for your quic answer @Paulie78 . It is works! I am going to highlight as solution but meanwhile I found an another one what is a little bit "simpler". This connector is able to do that also.
Good shout, I don't know why I missed the simple solution!
User | Count |
---|---|
27 | |
14 | |
12 | |
10 | |
9 |
User | Count |
---|---|
51 | |
29 | |
28 | |
24 | |
22 |