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
substring(concat('0000000',variables('MyNumber')),length(string(variables('MyNumber'))),7)