Questions tagged [string.format]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
77 views

Parse JSON response

I create a record in one system and that creates the similar record in another and returns the corresponding ID from the destination system which I would to stamp in my source. Deserialized the ...
0
votes
0answers
55 views

Apex Error (Image to PDF conversion) : BLOB is not a valid UTF-8 string

So i have this task where i have to convert the image uploaded in Notes and Attachment object to PDF. For that i created a trigger(before insert) on Attachment object and used the below mentioned code,...
2
votes
2answers
280 views

AMPScript/GTL function to check if variable is string or a numeric

Need to check a type of variable in ampscript, in order to use FormatNumber function(that can only work with integer variables). I tried the Handlebars function {{isString()}}, but can't make it ...
2
votes
1answer
1k views

Escaping single quote character breaks String.format(stringToFormat, formattingArguments) [duplicate]

When I run this code: String.format('Dear {0}, Don\'t forget .... {1} .... {2}', args); Token 0 is replaced, but token 1 and 2 appear as {1} and {2} This is caused by the backslash escaping the ...