- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Scenario:
- I created a custom table extending Task.
- Added a new State choice called “Awaiting Approval”.
- Built a Flow Designer flow with the following logic:
- Trigger: Record updated → State changes to Awaiting Approval
- Action: Ask for Approval
- If Approved → Update State to Closed Complete
- If Rejected → Update State to Closed Incomplete
Issue:
- When I create a new record and change the state to Awaiting Approval, the approval record is created.
- However, the approval immediately changes to “No longer required” and State is going to closed complete instead of waiting for the approver’s response.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Root cause:
There is a BR Running, "Task Active State Management" which calls script Include: "TaskStateUtil",
In the TaskStateUtil Script Include, there are default inactive (closed) state values defined (for example: 3, 4, 7).
When I created the Awaiting Approval choice, I assigned it the value 3, which is treated by the platform as a closed/inactive state.
Because of this:
- The Task Active State Management business rule detected the state as inactive
- active was automatically set to false
- Since the record became inactive, the approval engine updated approval to “No Longer Required”
Resolution
The fix was to ensure that “Awaiting Approval” is treated as an open/active state:
- Changed the choice value of Awaiting Approval to an open state value (not included in close_states)
Once the state value was no longer considered an inactive/closed state:
- The record remained active
- The approval flow triggered as expected
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
In your Ask for Approval step, what are the rules and due date? And is Abel Tutor (from your example) an active user in your instance?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @nikhil88c ,
Your requirement and configuration seems to be correct,
can you share the flow screenshot??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
