Six Stars

How do I add a parameter value that has already a quote in it?

Hi Talend Community

 

I need the add the following string as a variable in talend : Token token="729f70f8-67dd-86b9-0296-23d3a387a19e"

Would the below be correct to insert in a Talend variable value field?:

"Token token=\"729f70f8-67dd-86b9-0296-23d3a387a19e\""

?

 

7 REPLIES
Four Stars

Re: How do I add a parameter value that has already a quote in it?

Yes, this should do the trick ! Doesn't work ?
Six Stars

Re: How do I add a parameter value that has already a quote in it?

No it does not I get a 403 error on Auth

Ten Stars

Re: How do I add a parameter value that has already a quote in it?

Is it possible the entire string is being wrapped in quotes on the way out? i.e. the value sent may be:
"Token token="729f70f8-67dd-86b9-0296-23d3a387a19e""
instead of
Token token="729f70f8-67dd-86b9-0296-23d3a387a19e"
Six Stars

Re: How do I add a parameter value that has already a quote in it?

Ho do I see the output string? how do I place the variable that it only sends Token token="729f70f8-67dd-86b9-0296-23d3a387a19e" from Talend

Six Stars

Re: How do I add a parameter value that has already a quote in it?

Ho do I see the output string? how do I place the variable that it only sends Token token="729f70f8-67dd-86b9-0296-23d3a387a19e" from Talend

Tags (1)
Ten Stars

Re: How do I add a parameter value that has already a quote in it?

We don't know what components you're using. Please share more information about your job.
Six Stars

Re: How do I add a parameter value that has already a quote in it?

The Job

trestjob.PNG

The config for tRestClient_1:

Header.PNGRESTclient.PNG