I was able to save my flow (no syntax issue) with an initialize variable step, type is array. The purpose of the array is to hold characters that I want to strip from a value in a further step inside of an Apply to Each step.
I was following the guidance on this page: Remove unwanted characters from a string in Power Automate (tachytelic.net)
When I go to run the flow, I get an error stating the following:
The variable 'RemoveCharsArray' of type 'Array' cannot be initialized or updated with value of type 'String'. The variable 'RemoveCharsArray' only supports values of types 'Array'.
The value for the RemoveCharsArray is the following:
[" ","\","/","%","&","*","+","=","?","{","}","|","<",">","(",")",";",":",",","[","]","~","`","é","â","ä","à ","Ã¥","ç","ê","ë","è","ï","î","ì","Ä","Ã…","É","æ","Æ","ô","ö","ò","û","ù","ÿ","Ö","Ü","¢","£","Â¥","â‚§","Æ’","á","Ã","ó","ú","ñ","Ñ","Char(34)"]
As you might be able to tell, I am wanting the array to contain these characters, which will end up being removed from an input of a previous step.
The characters I am wanting to remove are the following:
space
backslash \
percent %
ampersand &
asterisk *
plus +
slash /
equality sign =
question mark ?
left curly bracket {
right curly bracket }
veritcal bar |
less than <
greater than >
left parenthesis (
right parenthesis )
semicolon ;
colon :
comma ,
left square bracket [
right square bracket ]
double quote " (Escaped by Char34)
tilde ~
accent `
at sign @
period .
diacritical characters éâäà åçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáÃóúñÑ