I need to display numeric value in transnational email. I'm parsing json with GTL. Some times the payload can have a value like 012345, but in the email the display is 12345. I tried to format with formatNumber() in ampscript but the "0" is still truncated.
Json payload saved in the DE:
[{"FulfillmentDetail":{"TrackingNumber": "012345"} }]
Parsing wwith GTL :
{{.datasource FulfillmentDetail type=nested maxRows = 1}}
{{.data}} { "target" : "OrderLine.FulfillmentDetail" } {{/data}}
{{TrackingNumber}}
{{/datasource}}
Result in Email
12345
Expected :
012345
The alternative solution is to add the value between single quotes. But this would implies tricky dev in the applications that launch the payload. So i'm searching to resolve this during the parse, in GTL/ampScript