The CreatorCon Call for Content is officially open! Get started here.

Popup message on closed incomplete of task on RITM

Pratiksha KC
Tera Guru

When one of Catalog Tasks related to RITM is Closed Incomplete, the state and stage on RITM should be automatically set to State = Closed Incomplete. Any other related to this RITM Catalog Tasks that are in progress (active) should be set to state = Closed Incomplete. Additionally, I want a pop-up message is displayed. Pop-up for closure to enforce proper usage of close incomplete status.
Pop up message: 'If you close this task as Closed Incomplete the Requested Item will be cancelled. Are you sure you want to cancel the Requested Item? Please note that all associated Catalog Tasks that are in progress will be cancelled as well.' Pop up should be displayed when user select State = Closed Incomplete on Catalog Task.

Soultion should be applied to backend and SOW>

6 REPLIES 6

Hi @Pratiksha KC,

You are doing right and If I understand correctly, you're triggering multiple tasks simultaneously, you can try not to trigger another task, flow from proceeding if any one task is closed as "incomplete".

Here's how you can approach it in Flow Designer for your Use Case:

  • After the "Do in parallel" action, in each "Create Catalog Task" step, enable the "Wait" checkbox. This ensures the flow waits for the task status to change before moving forward.

  • Once the task is closed ("Closed Incomplete"), use an "Update Record" action as needed—this is fine.

  • After that, add an "If" condition that checks:

    • Catalog Task → State is "Closed Incomplete"

  • If the condition is met, use the "End Flow" action to stop the flow immediately.
    (Note: This will "Closed Complete" all other tasks.)

Repeat these steps for each task in the flow.


If my response solves your query, please marked helpful by selecting Accept as Solution and Helpful. 
Regards,
Prerna


UPPADAM
Tera Contributor

Hi @Pratiksha KC 

Flow Designer won’t support user prompt popups directly (popups are client-side). So this will need a hybrid approach:

1. Client Script (Popup Confirmation)
Already shared earlier. This remains the same.

2. Flow Triggered on Catalog Task Update
You can create a separate flow (do not modify the original fulfillment flow).

New Flow: Catalog Task Closure Handler
Field Value
Trigger Updated on table sc_task
Condition State changes to Closed Incomplete (state = 4)

Flow Actions:
Get RITM from sc_task

Use Get Record → Table: sc_req_item, filter sys_id = current.request_item
Update RITM to Closed Incomplete
Update Record

Table: sc_req_item
Record: from Step 1
Set:
State = Closed Incomplete
Stage = closed

Find and Update Other Active Tasks

Look Up Records on sc_task:
request_item = current.request_item
sys_id != current.sys_id
active = true

For Each Catalog Task (from step 3)
Update Record → Set state = Closed Incomplete, active = false

Hopefully this will Helpful to you.

Please Mark : Correct if this solves your query and also mark: Helpful if you find my response worthy based on the impact.

Regards,
Mahesh Babu Uppada