LF analog "createBatch" for JS script

Hi!
I’m trying to write an automation that updates or adds new records received via http.

I am using a loop and await fibery.createEntity.

But it takes a long time to add records one by one. and after 60 seconds the script stops without completion.

How can I add many records at once?

graphQL has “createBatch”, is there an analog for JS scripts?

You can use the executeSingleCommand function in an script, and then everything is available via the normal API, including batch commands:

{
           "command": "fibery.command/batch",
           "args": {
             "commands": [
               {
...

See api.fibery.io for api info

2 Likes