# Need script to bulk task closure through IDN workflow by leveraging the sailpoint IDN V3 API

**URL:** <https://developer.sailpoint.com/discuss/t/need-script-to-bulk-task-closure-through-idn-workflow-by-leveraging-the-sailpoint-idn-v3-api/21440>\
**Category:** SHF Discussion and Questions\
**Tags:** sailpoint-identity-security, apis\
**Created:** [November 22, 2023, 8:39am UTC](https://developer.sailpoint.com/discuss/t/need-script-to-bulk-task-closure-through-idn-workflow-by-leveraging-the-sailpoint-idn-v3-api/21440 "2023-11-22T08:39:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SEI\_Sailpoint](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@SEI\_Sailpoint](https://developer.sailpoint.com/discuss/u/SEI_Sailpoint)\
**Post date:** [November 22, 2023, 8:39am UTC](https://developer.sailpoint.com/discuss/t/need-script-to-bulk-task-closure-through-idn-workflow-by-leveraging-the-sailpoint-idn-v3-api/21440/1 "2023-11-22T08:39:29Z")

</div>

Hi All,

I am looking for the workflow to get all the pending tasks and get them completed. Here, I am using scheduled trigger followed by http request action in which I have to leverage the API: [Work Items | SailPoint Developer Community](https://developer.sailpoint.com/idn/api/v3/work-items) to get the all the tasks via API call. Then use a loop to filter the pending tasks from different source owners and then complete the task. Can anyone help the script we need to use for filtering the source owners specific tasks and application specific tasks.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [January 21, 2024, 8:39am UTC](https://developer.sailpoint.com/discuss/t/need-script-to-bulk-task-closure-through-idn-workflow-by-leveraging-the-sailpoint-idn-v3-api/21440/2 "2024-01-21T08:39:54Z")

</div>

Closed on January 21, 2024, 8:39am UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
