Appned single quotes('') to the cdt value

Certified Associate Developer
I have a process where I get data from data base, I want all the values in the database to be between single quotes(''). Eg:- cdt:{name:xyz,phone:12345}, I want it to be {name:'xyz',phone:'12345'}. Instead of mapping it filed by field, Is there a way that I pass the cdt and all the values in the CDT get inserted between '' ?

Thanks in Advance,
Nikita.

OriginalPostID-268937

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    @nikitar890 I don't understand how you got such requirement, but if this is the case then create an expression rule and have a rule input of type CDT or Any Type and form a Dynamic CDT where append single quote before and after the data for each property of CDT , so once you get the CDT having single quotes, you can do whatever you requirement is.

    I hope this will help you to proceed further. But still i am in confusion, why do you want such behavio/functionality
Reply
  • 0
    Certified Lead Developer
    @nikitar890 I don't understand how you got such requirement, but if this is the case then create an expression rule and have a rule input of type CDT or Any Type and form a Dynamic CDT where append single quote before and after the data for each property of CDT , so once you get the CDT having single quotes, you can do whatever you requirement is.

    I hope this will help you to proceed further. But still i am in confusion, why do you want such behavio/functionality
Children
No Data