I’m using the REST API to export document contents to JSON.
https://developer.lucid.co/rest-api/v1/#get-document-contents
In my use case, I want to find the stick notes that belong to the container. For that purpose I’m using a custom field and the CONTAINED function.
The JSON looks as follows:
{
"id": "vaXcl.RlvRIQ",
"class": "SparkContainerBlock",
"textAreas": [
{
"label": "Text",
"text": "People"
}
],
"customData": [
{
"key": "Contained",
"value": "[Not trained enough, Working overtime]"
}
],
"linkedData": []
}
If we change the sticky note text "Working overtime" to "Working overtime, exhausted and frustrated" then the JSON will look as follows.
{
"id": "vaXcl.RlvRIQ",
"class": "SparkContainerBlock",
"textAreas": [
{
"label": "Text",
"text": "People"
}
],
"customData": [
{
"key": "Contained",
"value": "[Not trained enough, Working overtime, exhausted and frustrated]"
}
],
"linkedData": []
}
As you can see the comma in the text will be recognized as a value separator.
Best answer by alyssa
View original