Store an Array of strings with 'Buildship - Create Document (with ref)' node
I am trying to store the following into a document,
{
"localities": [
"BEVERLY HILLS (NSW)",
"NARWEE (NSW)"
],
"postcode": "2209"
}
however when i run the standard 'Buildship - Create Document (with ref)' node, I get the following entry in my table... see attached screenshot.
how can i get it to store an array of strings and not an object with the index as key?
Solution:Jump to solution
Hi @Abrar, Also sharing the fix here for community members with same issue, thanks for confirming on email about the fix worked.
From the node logic (BuildShip creates a document with DocRef), your workflow, shows that you have modified the logic for the extracted array, which is causing trouble here. Use the AI to edit if required.
To Fix this:...
1 Reply
Solution
Hi @Abrar, Also sharing the fix here for community members with same issue, thanks for confirming on email about the fix worked.
From the node logic (BuildShip creates a document with DocRef), your workflow, shows that you have modified the logic for the extracted array, which is causing trouble here. Use the AI to edit if required.
To Fix this:
You can use the BuildShip Create Document node without DocRef instead, as your data doesn't involve any doc ref.
When importing the data to BuildShip storage, you can then select the type to array, and it should extract the data and it as an array.