Happy Business Starts Here

Re: How to change " to \" in Zuora workflow

Highlighted
Valued Scholar

How to change " to \" in Zuora workflow

Hi,

In Zuora workflow, I would like to create a new SF account its account name's EA "FORMATION & APPRENTISSAGE PROFESSIONNELS".

 

I called the SF API and it had a 400 ERROR:image.png

image.png

I know it's because of the " character.

Recommendation 1: I tried to use escape then the SF account can be created but it has a strange name by escape format so I can't use escape:

EA "FORMATION & APPRENTISSAGE PROFESSIONNELS"

 

Recommendation 2: Change " to \" then it works, I tried to call by Postman:

{
"Name": "EA \"FORMATION & APPRENTISSAGE PROFESSIONNELS\"",
...
}

But in Zuora workflow, I can't use replace function to do it:

image.png

 

How can I do for my issue?

Thanks

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Zuora Staff

Re: How to change " to \" in Zuora workflow

Hi, 

Please try with the below approach.  

You have to pass both "value and replace value" in single quotes ('Single Quote') instead of double-quotes("Double Quote").  

{{Data.Account[0].Name | replace: '"', '\"'}}

Output

Output.png
Thanks,

Prem

Thanks and Regards,
Prem Anandh

View solution in original post

Highlighted
Valued Scholar

Re: How to change " to \" in Zuora workflow

Thank 

View solution in original post

2 REPLIES 2
Highlighted
Zuora Staff

Re: How to change " to \" in Zuora workflow

Hi, 

Please try with the below approach.  

You have to pass both "value and replace value" in single quotes ('Single Quote') instead of double-quotes("Double Quote").  

{{Data.Account[0].Name | replace: '"', '\"'}}

Output

Output.png
Thanks,

Prem

Thanks and Regards,
Prem Anandh

View solution in original post

Highlighted
Valued Scholar

Re: How to change " to \" in Zuora workflow

Thank 

View solution in original post