Share all details about your problem, including any error messages you may have received.
Team,
We have a requirement to restrict approval for all Remove Requests (via Manage Access) to only the Manager approval. This means that while the Add Requests should follow both “manager” and “owner” for a two-level approval process (approvalSchema: manager,owner), for Remove Requests, the Owner’s approval should be Ignored/Skipped.
We have a variable to define from UI, even though the value sets “true”, we should skip the second level of approval for Remove requests.
Modify additionalApprovalRequired Based on Request Type: You may need to ensure that when it is a “Remove” request, you effectively set the additionalApprovalRequired to false, overriding any default behavior for additional approvals. If it’s an “Add” request, the behavior will follow the two-level approval process.
Conditional Logic in Approval Flow: Use the logic in your code to check if the request is a “Remove” request. If it is, you can modify the approval flow by skipping the owner approval, otherwise, follow the default two-level approval process (Manager → Owner).