Five 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\""

?

 

  • Big Data
  • Data Integration
  • ESB
  • Exchange components
  • Sandbox
  • SDI
  • Talend Integration Cloud
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 ?
Five 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

Nine 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"
Five 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

Five 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)
Nine 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.
Five 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