Iterate from a json to delete items in api call

Hi,

In this scenario, I’m getting from the first API call a list of items to delete. I parsed it.


Now i want to delete each items in the next api call. I don’t know how i should do :no_mouth:

Any advice ?

Thanks
Max

Hi @Maxkzn

I understand you need to delete a list of items obtained from your first API call. You can achieve this by mapping the IDs from the JSON structure. Most apps require the ID for deletion, and since your structure contains a collection, it will automatically iterate through the items. So, mapping the ID should be sufficient for your next API call.

Regards,
Msquare Automation - Gold Partner of Make

Free Consultation | Live Implementation

Visit us here | Youtube Channel

Thanks for your answer! So just like that should work?

Hi @Maxkzn
If you can specify which API you are using we can further assist you. If this API call to delete is correct then it will delete all the items one by one.