Hi,
Here’s the problem statement. There are two types of Data Types : Post, Comment. Post can have multiple comments. So, Post has a field which stores the list of comments. Now I want to call an API through API connector and send the comments in json.
Json body contains a field ‘comments’ and the value is an array of comment objects. I can do it in this way: In api connector, in the json body, I did “comments”: . This way i can fill it dynamically using actions.
In Actions, I did this:
[Arbitrary Text]: Post’s Comments:format as text
{
“user”: This comment’s user,
“comment”: This comment’s comment
}
Now my problem is, how do I index these comments? I want to add “id”: 1 and so on for every object. How do I do it in backend workflows?