We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [approval-process]

An approval process is configured on an object to specify all of the steps, users, actions, and relationships among them involved in approving or rejecting a record of that object. Approval processes can become very complex and tools such as the Process Visualizer can be used to aide in understanding them.

195 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
2answers
1k views

The approval process references the workflow action FieldUpdate Some_Field_Update, which doesn't exist for the Some_Custom_Object__c object

While trying to deploy an approval process with the Salesforce Migration Tool, I get the following error: The approval process references the workflow action FieldUpdate Some_Field_Update, which ...
4
votes
1answer
663 views

Delegated approver not able to approve

I have a delegated approver who has Modify All access to an object, the object has OWD of Public Read/Write but when the approver tries to approve, I get an error saying Insufficient Privileges. Am I ...
4
votes
1answer
4k views

Approval Process Error: Too many retries of batch save in the presence of Apex triggers with failures: Number of retries: 2

I have an Process Builder process that submits a records into a Approval Process. It only seems to work without error if I have no entry criteria. If I have any criteria added to the Process Builder ...
3
votes
0answers
25 views

Filter Items for Approval by Object Type

I'm trying to query for Approval Items which are outstanding for the running user to approve, filtering these approvals by the object type they are related to. I've attempted to use the following ...
3
votes
0answers
125 views

How to update Process Instance Step

I have an record with the object,The Record has already entered into the approval process with the step, After some days I have cloned the same approval process and recreated with the different type ...
3
votes
0answers
215 views

Automate Approval Step to be approved, not skipped

We're currently tracking internal requests in Salesforce via Cases. For a certain kind of request, we want to run it by the managers of 3 teams to see if what's being requested would be applicable to ...
3
votes
0answers
529 views

Submit & Recall Approval Request Button Missing On Custom Related List

I have custom Visualforce Page which included the approval process as related list. <apex:relatedList list="ProcessSteps"/> I can't see Submit & Recall Approval Request button even I'm a ...
3
votes
1answer
478 views

Cannot set Assigned Approver as ‘Queue:Queue_Name’ in Approval Steps of Approval Process using Metadata API

If the queue does not contains parent Object as supported Object but doesnot contains childObject as supported Object user can set Queue as approver for a approval process created on child Object. But ...
3
votes
0answers
672 views

Assigning queue as an approver

I have an requirement. I am having a custom object and a text field on this object to store a queue id. There can be many queues in the system. Now what I want is that whenever a particular record of ...
3
votes
2answers
1k views

Approval Process error : MANAGER_NOT_DEFINED

I have an approval process in place for object K__c. In this approval process Next Automated Approver Determined By : Manager of Record Submitter Now I want to set the Approver to a particular user ...
2
votes
0answers
408 views

Making approval comments mandatory - different behavior Classic vs Lightning

I am trying to make Approval Comments mandatory for the Approver while Approving. I was using the following apex trigger, approval process steps and workflow field update as per the following blog ...
2
votes
1answer
250 views

Validation rule on approval process

I have an approval process on Case object. Once an approver clicks on Approve button, I have configured a field update approval action, which triggers a Case trigger. This trigger carries out some ...
2
votes
0answers
71 views

How does an approval step's criteria handle nulls?

I have a custom User field, a nullable integer. As expected, I see the following behavior: $User.Custom__c <> 0 // FALSE $User.Custom__c = 0 // FALSE Apex works the same way, and this ...
2
votes
0answers
814 views

Submit record for default approval process via Apex

I am currently trying to approve a record via Apex. I have been following this example shown here https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_process_example.htm ...
2
votes
1answer
574 views

How to clear ProcessInstanceNode records?

I was checking my org's data usage and I found that Process Instance Node consumes most of the space in my org(38%). Is there any way if we can delete process instance node records without disturbing ...
2
votes
0answers
602 views

INVALID_CROSS_REFERENCE_KEY Error in Approval Process

Following error is popped up when trying to approve the approval step by code.I can sense this error is because of wrong work item id but I am unable to do so. Approval Process error: System....
2
votes
0answers
323 views

Change Actual Approver value of an approval process from apex

I have Visualforce page hosted on the force.com site. The user (or an approver) can approve/reject the request of certain custom object records using this page. The page shows him a comment box and ...
2
votes
0answers
57 views

QUOTE APPROVAL PROCESS ERROR _ ClassCastException

I found the follow error when a user tries to approve a quote using Salesforce1 app and sending an approval email (quote approval email is correct and approval process is well configured in sfdc org): ...
2
votes
0answers
899 views

invoke approval process using custom button

On Case object, i have 3 approval processes (AP1, AP2, AP3). I want to create corresponding 3 custom buttons to invoke respective approval processes. I know how to do it via javascript button. But i ...
2
votes
0answers
114 views

multiple approval process and required to enter all of them

my scenario is that i need 2 approval manager to approve my record based on different criteria/reasons. i created 2 approval process Order:1 - approval process entry criteria: - reason 1 check box = ...
2
votes
1answer
352 views

Deploy Approval Process using Mavensmate

I'm trying to deploy an approval process to another production org using Mavenmate deploy to server. My problem is that the approval process I'm trying to deploy has an assigned user in the approval ...
2
votes
0answers
252 views

Skip/bypass approval process

I want to skip/bypass an approval process by using some other VF page/apex class/trigger, is it possible ? what kind of framework should I think of ? Basically I want the record to be editable, even ...
2
votes
2answers
3k views

field validation on approve or reject for approval process

I am creating an Approval Process. Its a simple process with 2 approval steps I have a requirement where an assigned approver (user) must populate one or more fields on a record before they approve or ...
2
votes
0answers
537 views

Can I Submit to Multiple Approval Steps in Parallel?

I want to set up an approval process with 4 steps. Each step has a different criteria and a different approval queue. Currently, when I Submit for Approval, it only steps Step 1. When Step 1 is ...
2
votes
0answers
166 views

How to change the return URL in Approval Process?

A Manager can access all his Approval Items to be approved from his Home Page. In Approval Request, If a Manager is approving/rejecting his subordinates' record, he is redirected to the record he is ...
2
votes
0answers
244 views

Is it possible to have an Approval process dependent on a related list record?

I have an opportunity with a custom object "product__c" related list. I want to be able to send the opportunity for approval only if a record of "product__c" is added that has a certain field value, e....
2
votes
0answers
112 views

Error message while trying to launch approval from apex plugin from Visual Workflow - NO_APPLICABLE_PROCESS

I've seen others with similar problems, but not a lot of solutions. I have created an approval process that has no filters on entering or restrictions, and am calling it like so from an apex plugin ...
2
votes
0answers
2k views

Editing child records when master is locked in master-detail relationship

When creating a custom master detail relation with oppty object I get to see the sharing setting, which is not available with standard out of box master-detail relation like quote and oppty. Does ...
2
votes
1answer
153 views

Time limit exceeded exception while updating Approval Process entry criteria

I am getting Time limit exceeded exception while updating Approval Process entry criteria. Is there any other way to change the entry criteria or workaround of this exception. Thanks in advance
2
votes
0answers
265 views

single sign on org and approval emails

The more and more I deal with SSO I am finding it requiring special care for existing OOB functionality. When we send out an approval email we send the link of the oppty record to the user and ask ...
1
vote
0answers
38 views

Auto approve the step if the submitter is the approver

I got a requirement to auto approve a step if the approver in that step is the submitter of the Approval Process. But I dont see any Option to set like "Approve and go to Next Step" (Please suggest if ...
1
vote
0answers
32 views

Where does advanced approvals do field updates

In the normal approval process there is an approval action section which we can have field updates. But when I read through the advanced approval process I don't find a place to have this. May I know ...
1
vote
0answers
19 views

is there a way to check if there is an approval process to aply to a record from a visual flow?

I'm doing a visual flow to validate some information before calling an approval process, in some cases the record does not apply to any approval process and I get an error. Is there a way to know if ...
1
vote
1answer
22 views

How do you use an automated approver AND a specific user approver?

Let's assume that Tom has to approve all quotes with a discount over 25%, but all managers below Tom also have to approve the quote before Tom does. That is not a problem, unless Tom has different ...
1
vote
0answers
131 views

Is there any way to provide a custom button to approval process accept/reject page

I want to understand if there is any way I can put a button which will perform a custom logic in the approval - accept/reject page. i.e. in the following page Or I have to create a visual page/ ...
1
vote
0answers
19 views

Is it possible to make different approval processes work simultaneously with the help of sub-cases

I have a requirement where I have to run multiple approval processes on the case level at the same time. Since Salesforce does not provide that option, hence I am thinking to create sub-cases and then ...
1
vote
0answers
21 views

Display error messages when submitting an object for approval

we have some validation rules that disallow an object to have certain status. When we submit the object for approval, the status in changed. So in the background the validation rule is triggered ...
1
vote
0answers
55 views

Data Type Conversion Error on Approval Submission in Flow

I have a flow that runs the following steps: Screen allowing the following user inputs: Total Allowable (Currency) Total Paid (Currency) Has Supporting Documents (Text Dropdown) Reason Code (Text ...
1
vote
0answers
26 views

Updating Record with Approval Step Assignee

I am using an approval process on a change request object. In one of my steps I would like for the Approver of the next step to be chosen by the current Approver. Is there a way to make the Owner of ...
1
vote
1answer
54 views

Set Approval Process Submit Time

I am writing a test for a scheduled bach job that queries Process Instance to grab user info and targetobject info for tasks that are still pending. My query specifies elapsedTimeInDays greater than ...
1
vote
0answers
23 views

Content Builder Approvals Platform Question

Is there a way to enable email notification of when new comments are posted in the approvals platform? Currently, I only receive email notification when new content is submitted. Is there a way to tag ...
1
vote
0answers
108 views

How can I add an approver to a submitted request?

I have a large number of approval requests that have already been submitted. I need to add an additional approver to these requests. So far, I've tried doing this declaratively by adding an approver ...
1
vote
0answers
163 views

Adding member to approval team

I have a user whose approvals for content builder are not coming through. I suspect it is because she is not in a workflow team. When I try to add the user to the workflow team, it doesnt find her in ...
1
vote
0answers
450 views

Why is my Approval Process instance not creating NewWorkItems?

I am trying to create an approval history report and have followed the basic instructions in this post: Create approval history report with object fields? I am now onto getting the information from ...
1
vote
0answers
35 views

Capture Approval Step name

Is there any way I can capture the current approval step name in a field on the associated record or refer to it in an Approval Assignment Visualforce Email template? I would prefer not to use Apex, ...
1
vote
0answers
268 views

How to display Quote line items discount in Items to approve

I have a requirement to display discount in Items to approve, Opportunity -------> Quote --------> Quote Line Item Now, Opportunity have Approval history related list and i need to display Quote ...
1
vote
0answers
253 views

How to change approval request post on record chatter feeds?

I have an Approval Process on Account. Every time I submitted for approval, there will be an approval post on Account's chatter feed like below. My question is, how to change the content of the post ...
1
vote
0answers
1k views

Changing approval process approvers via Apex

I'm trying to change the approvers for an approval process via Apex. Ideally I want to dynamically set 2 unanimous approvers through code, but I can't figure it out. I have the following code: ...
1
vote
0answers
73 views

Send emails to all approvers when a approval is rejected

Is there a way in the approval to only send emails to to approvers when an approval request has been rejected? This should only be sent to the people who are in the approval path and maybe they had ...
1
vote
0answers
163 views

approval request sent multiplied

i write this trigger to auto submission approval request: trigger OpportunitySubmitForOrderListApproval on Opportunity (after update) { for (Integer i = 0; i < Trigger.new.size(); i++) { if (...