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

Posted on Posted in Logic Apps

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