How to assign the string values with double quotes

Hi Team,

How to assign the below value’s in the string

string strValues= “{“options”:{“open_tracking”: true, “click_tracking”: true, “transactional”: false},“campaign_id”: “qa:TEST”,“recipients”: [{“address”: { “email”: "test@test.com”, “name”: “test name” },“tags”: [“greeting”,“prehistoric”,“Sample”,“Sample”],“metadata”:{“binding”: “ticket_insight”}}],“content”:{“from”:{ “name”: “GBT Alerts”, “email”: "noreply@alerts.com" },“subject”: “Test”,“html”: “” + htmlbody +""},“return_path”:“bounces*@alerts.com”}"

Regards,
Ranga

Hi @ranganathan8929

Welcome to UiPath community buddy…! Thats a great question to start with…amazing

So, for your question we can do in either ways like
if you have a string like = Hi, i am “Ranga”
you should write like
– "Hi, i am \“Ranga\” " ( with a back slash )or
"Hi , i am " “Ranga” " " ( doubling the quotation )

yours get readable with back slash…
To understand clearly remove the first and last quote as it is usually used to express string…if you remove them you get to know where we have to make changes like
Hi, i am \“Ranga\”
Hi , i am " “Ranga” "

Hope this would help you

Cheers…!

2 Likes

Thanks for your response, Issue has been resolved

2 Likes

Thats great…keep going…

Cheers…!

@ranganathan8929
Buddy kindly close this thread with right comment as solution that could help others searching for solution under your topic…

Cheers…

I have input “apple, mango, pear, banana”
I need output as [“apple”, “mango”, “pear”, “banana”]
How to do this…Please help me out.
Thanks in advance.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.