add padding in Logic App same as C# String.Format

If you need to add padding and limit it to a certain length in C#

substring(concat('0000000',variables('MyNumber')),length(string(variables('MyNumber'))),7)
Above code will limit it to seven characters length

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>