Approval for Custom Tables

Mohamed4
Tera Contributor

I have created a custom Flow and it is NOT extended from Task and i want to add the approval from Flow Designer.

I created an approval field similar to the one on sysapproval_approver, but i cannot select the approval in Flow Designer.

if anyone has a solution on how it will be achieved, that would be appreciated.

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Hi

in ServiceNow you can only use the approval engine for task extended tables.

In case your custom table does not extend the task table, then you cannot use approvals. And adding any similar field to your custom table will not work.

Kind regards
Maik

View solution in original post

3 REPLIES 3

Maik Skoddow
Tera Patron
Tera Patron

Hi

in ServiceNow you can only use the approval engine for task extended tables.

In case your custom table does not extend the task table, then you cannot use approvals. And adding any similar field to your custom table will not work.

Kind regards
Maik


@Maik Skoddow wrote:

in ServiceNow you can only use the approval engine for task extended tables.

In case your custom table does not extend the task table, then you cannot use approvals. And adding any similar field to your custom table will not work.

 

That's wrong, or at least contradicts to ServiceNow online documentation which states:

 

Configuring a Record for Approval

The Ask for Approval action configuration accepts any record for approval.

Flow Designer automatically populates the Table field from the record to approve.

Records that require approval must have a field to indicate approval status and a field to track the approval history. The Ask for Approval action configuration has two optional fields for approval tracking.

  • Approval Field: Specify the approval status field from the Table for the record to approve.
  • Journal Field: Specify the approval history field from the Table for the record to approve.

For the Task table and tables that extend Task, an Approval Field (Approval) and Journal Field (Approval history) already exist. The Ask for Approval action configuration defaults to using the Approval and Approval history fields.

For tables that do not extend Task, create an approval field with data type Choice and a journal field with data type Journal to track approval details for a record.



Praneeth8
Tera Contributor

You can add approvals to any custom tables even if it is not extending Task table. you just need to use the "Ask for Approval" Action in Flow designer and add the triggered record in this action. The only difference is if your custom Table extends Task table which populate the "Approval For" Field with target record on Approval record. if it is not Extends the Task table then "Approving (Document ID)" field will display instead of "Approval For" Field.