After you have installed the Approvals package in your org, you must configure Approvals, Approvals Custom Config, and Approval Object to send clauses for approval. For more information, see Managing Clause Approvals.

You must first configure the formula fields business object picklist to make the Clause Name field available during approval process configuration. You must then create approval rules to package approval routing criteria together and add assignees. Now that the approval rule has assignees, you can create an approval process and reference the approval rule to route the approval.

To set up formula fields 

  1. Click All tabs and select Formula Fields (Approvals).
  2. Click New and enter the following details:

    1. Field Name: Enter Clause Name.
    2. Type: Select Relationship.
    3. Business Object: Select Clause Approval.
    4. Formula: Enter Apttus__ClauseId__r.Name.
    5. Description: Enter information to state the purpose of the formula field.
  3. Click Save.
    The new field is added to the Formula Field (Approvals) list and can be included in an approval process.

To create approval rules

  1. Click All tabs and select Approval Rules.
  2. Click New and select Clause Approval.
  3. Click Next.
  4. In the Configure Rule section, enter the following details:

    1. Rule Name: Enter a rule name.
    2. Sequence: Enter the sequence number in which the rule must be evaluated.
    3. Rule Type: Select Condition.
    4. Description: Enter a description for the rule.
  5. Select Active so the rule can be used with approval processes.
  6. Click Save to go to the Approval Rule details page
    or
    Click Save & New to add another rule.
    The rule is added to the list on the Approval Rules page.

To set the assignees

  1. From the Approval Rules page, select the rule that you have created.
  2. Click Manage Entries.
  3. Enter the assignee details:
    1. Sequence: If you are going to use this rule with a Subprocess in an Approval Step, you can select to add another assignee, otherwise do not add more.
    2. Type: Select User, Role, Queue, Related User, Custom User, Custom Role, or Custom Queue. or Auto Approval.
    3. Value: Enter a valid Salesforce value for the assignee, based on the Type selected.
    4. Depends On: If you have multiple assignees for the rule entry, enter the number corresponding to the assignee that you need to make the current assignee dependent.
    5. Send Email: An email is sent to the assignee, informing them they must make an approval decision.
    6. Description: Enter a description for the assignee.
  4. Click  to add another rule entry.
    or
    Click
    Save to go to the Approval Rule Detail page.
    The rule entries are now in use by the approval rule.

To set up a rule-based approval process

  1. From the Manage Approval Processes for dropdown, select Clause Approval and click Create New Approval Process.
  2. Select Rule Driven Process.
  3. Enter a Process Name and provide a Description for the approval process.
  4. Click Next.
  5. Specify entry criteria which when satisfied, triggers the approval process and click Next.
  6. Specify Consolidation Settings and click Next.
  7. Select notification email templates and click Next.

To create approval steps

There must be an approval process.

  1. From the Approval Process page, click New Approval Step in the Approval Steps section. 
    - or -
    At the end of creating a process definition, select Yes, I'd like to create an approval step now and click Go.
  2. Enter a Step Name, Step Label and Description for the step.
  3. Specify the appropriate Step Type and click Next.
  4. Select the Entry Criteria for the step and click Next. See Creating Expressions for details on setting the criteria.
  5. Specify the conditions for setting up Auto-Reapproval. When these conditions are satisfied, the current step will be automatically re-approved.
  6. Select Step Dependencies, if necessary, by highlighting steps in Unselected Items and click  to add them to the Selected Items. Reorder the steps as required and click NextStep dependency is based on their order in Selected Items.
  7. Select Step Auto Complete if you want this step to automatically be approved when it is assigned to the approver. For autocomplete to work as expected, ensure that the step you set Set Auto Complete for is independent of another step. You can set up any or all standard steps in an Approval Process for auto-completion. Entry Criteria is still enforced for the selection of the step but will be marked as auto-completed if flagged. Approval Comments are not enforced even if the comments are flagged as mandatory. Fact that the Step is auto-completed is captured in the audit trail.
  8. Select the process approvers, by selecting from Assigned Approver > Assignee Type.

    Option

    Description

    Approval MatrixUse this to dynamically assign an approval request to a user who has the given approval level in the approval matrix for the user submitting the request. For example, approver authority may change based on the discount being offered on a sales contract. So different levels of approvers can be assigned based on approval authority for a given item.
    Custom Queue

    This points to a field that contains a queue name in any custom object with a filter to narrow it down to a single row. This can be specified in two ways:

    • Select the custom field in the custom object you want to use for the custom filter expression and manually enter a constant value it will be compared to.
    • Select the custom field in the custom object, but select Bind Value, which enables you to select a field in the associated business object to compare to.
    Custom RoleThis is a field that contains a role name in any custom object with a filter to narrow it down to a single row. The behavior is the same as Custom Queue.
    Custom UserThis is a user lookup reference field in any custom object with a filter to narrow it down to a single row. The behavior is the same as Custom Queue.
    QueueUse this to dynamically assign an approval request to a queue. If email notifications are set for the queue, notifications will be sent to all members of the queue, otherwise, a single notification will be sent to the queue email.
    Related UserThis is a user lookup reference field in the associated business object (i.e. Agreement or Opportunity).
    RoleA role can be based on your company's hierarchy and can have one or more users assigned to it.
    RuleUse this assignee type when you want to dynamically assign an approval request based on an approval rule. If you select this option, the approval request is sent only to the first user that satisfies the filter criteria in the Approval Rule. If you have multiple approvers in a sequence, only the first approver is selected and assigned.
    UserUse this assignee type when you want to dynamically assign an approval request to a user.
  9. Select Send Email to notify the assignee by email that they must approve or reject the object record and select Notify Only to only inform the assignee by email that the approval process has reached this step, without any actions to take.
  10. Select Skip Unresolved Assignee to optionally skip an unresolved approver from the list of sequential approvers.
  11. Choose Step Auto Escalate if you want to escalate the current step if no action is taken on the approval request within a specified period. Enter the number of days in Step Expected Days To Complete and the number of hours in Step Expected Hours To Complete by which you want to escalate the approval request.
  12. Select a mandatory Assignee Type where you can escalate the approval request to a User, Role, or any of the assignee types mentioned in Step 8. Click Next.
  13. Create Reminders for approval requests that send a reminder notification to the assignee at the specified duration unit and intervals. For example, you can remind the assignee to take action on the request 7 days after it was assigned, and then again a week later. To activate reminders, select Step Reminders Active
    Reminders are sent to the original assignee only. Reminders are not sent if you reassign or escalate the approval request. 

    As a prerequisite, you must schedule reminder jobs in the respective environment to run a reminder flow. Run these jobs in the development console as per requirement. The default time interval between each job is 15 minutes.

    Example jobs:

    system.schedule('Approvals Reminder Job 1', '0 00 * ? * * 2019', new Apttus_Approval.ReminderJob());
    system.schedule('Approvals Reminder Job 2', '0 15 * ? * * 2019', new Apttus_Approval.ReminderJob());
    system.schedule('Approvals Reminder Job 3', '0 30 * ? * * 2019', new Apttus_Approval.ReminderJob());
    system.schedule('Approvals Reminder Job 4', '0 45 * ? * * 2019', new Apttus_Approval.ReminderJob());

  14. If you have enabled submission comments at the process level, at each step, you must enable submission comments.
  15. Select the Header and Display Fields which will appear at each approval step, by highlighting steps in Unselected Items and click  to add them to the Selected Items. Reorder the steps as required and click NextStep dependency is based on their order in Selected Items. For example, the selected Display fields appear on the Approvals page if you have configured Approvals for CPQ.
  16. Select CC (carbon copy) assignees who are copied on email notifications for all approval requests assigned for each Approval Step. The CC assignees are set up regardless of the approval step type. This works for standard, sub-process, and child processes. CC can be a Named User. A CC assignee is only copied on email notifications, they cannot approve a request by replying to the email. Their reply email is bounced back. In case of a consolidation, CCs from all requests are concatenated.
  17. Click Save.

The step is added to the Approval Steps section for the Approval Process. You can now Activate the approval process.

To create Search Filters (Approvals)

  1. Click All tabs and select Search Filter (Approvals).
  2. Click New.
  3. From the Business Object dropdown, select Clause Approval.
  4. Click Next to display the Configure Filter page.
  5. From Filter Type, select Entry Criteria.
  6. Enter a required Filter Name and Sequence. The sequence is used to determine the order in which the search filters will check if approvals are required.
  7. Enter the filter criteria, which is used to determine if the clause requires approval.
  8. Click Save.

The Search Filter is now active.