The first version should work...I tested on my end. Please see screengrab and code snippet I used
{
"properties": {
"multi_line": "if i send it back...what about this?\nif we make it multiline?\ndoes it work"
}
}
This is using the crm/v3/objects/contacts/:contactid with the patch method
Join us on March 27th at 12 PM for the Digital Essentials Lab, an interactive session designed to redefine your digital strategy!
Engage with expert Jourdan Guyton to gain actionable insights, participate in live Q&A, and learn strategies to boost your business success. Don't miss this opportunity to connect and grow—reserve your spot today!
The first version should work...I tested on my end. Please see screengrab and code snippet I used
{
"properties": {
"multi_line": "if i send it back...what about this?\nif we make it multiline?\ndoes it work"
}
}
This is using the crm/v3/objects/contacts/:contactid with the patch method
Join us on March 27th at 12 PM for the Digital Essentials Lab, an interactive session designed to redefine your digital strategy!
Engage with expert Jourdan Guyton to gain actionable insights, participate in live Q&A, and learn strategies to boost your business success. Don't miss this opportunity to connect and grow—reserve your spot today!
You also need to escape the backslash with this /\n/ or use replace(/\\n/g, "\\n") .Also you can do the string escaping online for any other type of string that you need to pass through json.
Hope this helps!
If we were able to answer your query, kindly help the community by marking it as a solution.
replace(/\\n/g, "\\n") Doesn't that just replace "\\n" with "\\n" ? or, with the escaped slach, \n with \n?
you write I need to escape the backslash with /\n/ I'm not following. Are you saying that "/" escapes the back slash or.. that paired slashes act like quotes in hubspot fields?
Thanks a lot! I'll experiment with your pointers and see if it works.