How to implement and send array of data to a body of an external api in bubble

this is the body of that api which is used for the nodejs

[
{
“displayId”: ObjectId
}
]

how can i do this and send array of data liket this

my each product have a paramter _id whihc holds the id of the product , but here how can i send the array. i tried to store the value in the page state but how can it be stored exact in the required manner

Simply do a Do a search to get all of your product and on it use format_as_text this will give you a box with two inputs one is for each thing and the other is for delimeter.

inside the thing put your product id as below:

{
“displayId”: this product _id
}

and on delimeter put a comma ,

Note: Your are sending a list of id as object. so wrap your entire Do a seacrh: Format as text with [] like below

[Do a seacrh: Format as text]

this is what it look like on the parameter you sending it will be a list of text and each text is exacly an object wiht one parameter as displayID with a ID


Bro i am using external api for , there is no data inside bubble database
how can i apply this

basically i using a checkbox thing which ads the current product whihc got checked and it will delete it
but in the format which i have told how can i achive that

what do you exactly want bro. when you be free ping here or on linkedin , and i can walk you through if i was online.

here another example of the body whihc is also array in this format
[
{
“displayId”: string
“body”: {
“displayFrom”: Date
“displayTo”: Date
}
}
]

thi si my linkedin https://www.linkedin.com/in/saurabh-anand-77337a252/