Questions tagged [approval]

Approval Process is an automated process and an organization can use to approve records in Salesforce.

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Advanced Approval Email Alert

I have setup the SteelBrick Advanced Approvals in my org for CPQ Quote object. For Approval Recipients, I have selected Record Owner; Record Created By; Initial Submitter. But the Approval Email ...
0
votes
0answers
18 views

How to create an approval process on Quote Line Item [closed]

I need to create a approval process on Quote Line Items, (Whenever the discount is more than 20%) it should go for approval. I have designed a criteria and activated it, but it is not working.
1
vote
1answer
19 views

Adding OR condition in ApprovalProcess entry criteria

I am new to Salesforce framework. Recently I am working on modifying an existing approval process which is as follows: <entryCriteria> <criteriaItems> <field>My_Object....
1
vote
1answer
18 views

Access Approval Step comments from trigger

I have a custom object that has approval process on it. When I'm submitting something for approval I provide some comments, and when I'm approving/rejecting, I'm also providing some comments. I wanted ...
0
votes
1answer
49 views

dont know why '\n' is not working for next line

I am using '/n' in below way public String appComment{get;set;} for(Processinstancehistory p:listp) { appComment=appComment +'\n'+ p.Comments+'\n'; } I am getting result in one line . I need every ...
0
votes
1answer
29 views

How to use Approval Request link in reminder email?

I am trying to send reminder emails to users if they have an approval process pending for a few days. I want the reminder email to contain the approval request link (merge field {!ApprovalRequest....
1
vote
1answer
80 views

Not able to edit Approved Emails in marketing cloud

I have recently started working on SFMC and my org uses approval process for emails. I was assigned to change the HTML email contents for active journeys, but those emails are not editable and say ...
0
votes
0answers
13 views

Quote Approval Error

I am facing the Error while I am submitting Quote for approval: Error: This approval request requires the next approver to be determined by the Discount Approver 1 field. This value is empty. Please ...
0
votes
0answers
54 views

How to set actual approver in apex code?

I've created an email service that has the following class: global class ChangeRequestApprovalEmailListener implements Messaging.InboundEmailHandler{ global Messaging.InboundEmailResult ...
0
votes
1answer
18 views

Reject Reason and Task Assigned

Wondering if you could help me with an issue I'm having. I need to create a picklist value that states what department the rejected agreement will go back to (if it is infact rejected). Once the ...
0
votes
1answer
47 views

Approval Process Instance Step Name

Is there a way to pull which approval step the process instance is currently ? For example, approval process has multiple approval steps. I want to check which step the approval is currently at.
1
vote
0answers
54 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
1answer
68 views

Approvals : how to Withdraw an email automatically Approved before the activation of the Approval process

We created an Approval process. So all the emails already created on Content Builder before the activation of the Approval process are Approved by default. However, how can we do to EDIT an email ...
0
votes
2answers
37 views

profile setting to have access to the recall button

I have been restructuring Profiles and I have just run into an issue. I switched one of my users and now she does not have the "recall" action on the approval history view. She is an approver and ...
1
vote
1answer
80 views

Approval process not assgining to correct approver , Approval process not working as expexted!

if Discount 0 to <=5 area manager if Discount 5> to <=10 sales manager if Discount 10> CEO i have two fields on the user object area manager & sales manager(i will assigin this two ...
1
vote
0answers
108 views

Test Class for Approval Process - Problem with ProcessInstanceWorkItem

I'm starting with code and test classes. I have a class that reject an approval process for an account. I start this class by a process builder. This is the code: public class ...
0
votes
0answers
23 views

How can assign I Approval Requests to a queue when the original approver is away from office / on leave?

Two parts to this question: How can I notify the system when a Manager (Approver) is on leave? Once the system knows a Manager is on leave, how can Approval requests sent to that Manager be routed to ...
0
votes
0answers
13 views

Dynamic Approval routing to a list of Users

I'd like to know how to submit a record for approval to a list of Users in a particular Role. Since this is not doable in Standard Approval Process, I thought Dynamic Approval routing would help. But ...
0
votes
0answers
32 views

Visualforce approval email - how to include content document from opportunity as link or attachment

i have a visualforce approval email i would like to either attach or link to the content files included in the opportunity being approved. Ideally i am after selecting one specific file (which i can ...
0
votes
0answers
16 views

how to submit an Approved record to same approval process?

I have a Approved record and i want to give edit access to the Record creator so that he can do some modification and resubmit the record for approval.
0
votes
2answers
31 views

When an approver is dynamically chosen on the base of a related field is possible to reassign the approval step through apex?

Suppose to have an approval process where the approver of a step is a related user designated through a custom field. If the value of the custom field is changed, all the records in this approval step ...
0
votes
1answer
10 views

approval process action 1

If we create a customer name and checkbox true then it must assign to two users to get approval ( any two user) but after first user approved then it automatically send to second user for approval how ...
0
votes
0answers
197 views

Apex Error on CPQ Advanced Approval with with Dynamic Approver

I have created an Approval Rule in CPQ Advanced Approvals with a custom lookup to the Manager ID of the Salesperson on a Quote (Theater_Manager_ID__c) as the Approval Field. When I submit a quote to ...
0
votes
0answers
560 views

NO_APPLICABLE_PROCESS, No applicable approval process was found, yet the criteria is met, no code change in years

Having an odd issue in our prod org recently. Code and approval items haven't changed, yet for some reason after our last monthly release we've been getting the no_applicable_process error here. The ...
0
votes
0answers
22 views

Get Approver Ids or Names in approval process [duplicate]

Is there any way to get the list of all approvers across all steps configured in the approval process? I looked the ProcessDefinition and ProcessNode but they don't have the approver information.
0
votes
0answers
229 views

Auto approve record when it is submitted for approval

I try to approve next step of approval process automatically, when submit for approval button is pressed. So, when the button is pressed, it updates two fields on record and then trigger is run. I try ...
0
votes
1answer
309 views

Approvals - Let the submitter choose the approver manually

Does anyone know if there is a way of restricting which users show in the drop down list if you select this option? We have a client who has 70 users, but only 12 of those are approvers. I would ...
1
vote
1answer
25 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 ...
0
votes
0answers
22 views

Add error displays message as well as updates record in Salesforce lightning

I have the following piece of code in my case before trigger. approvalStatements.get(pi.TargetObjectId).addError( 'Operation Cancelled: Please provide a reason ' + ...
0
votes
1answer
64 views

Prevent certain profiles from approving accounts

I have a requirement to prevent certain user profiles from approving accounts. Wrote below trigger which is partially working. However getting below error when a user in Standard User profile tries to ...
1
vote
0answers
203 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/ ...
0
votes
0answers
72 views

Submit record for Approval By Using Apex for Multistep Approval Process

It is possible to set dynamic appover to approval process invoke by apex // Create an approval request for the Opportunity Approval.ProcessSubmitRequest req1 = new Approval....
2
votes
1answer
147 views

Bulkify Apex Approval.ProcessSubmitRequest

I have an apex class that submits opportunities for approval if they are over a certain threshold. This works great when processing small batches, but when trying to submit larger batches it fails ...
1
vote
1answer
114 views

Question regarding Steps with multiple approvers within an Approval Process?

Is it possible to allow users to manually choose two different approvers for a Step ? Or is it possible to have one of the approvers automatically chosen and the other manually chosen ? From what I ...
0
votes
1answer
33 views

Prevent approving own emails in SFMC

I have created a two-step approvals team which has two users, John (Submitter) and Jim(Approver). Jim is able to create and submit emails for approval to this team and approve himself. How can this be ...
1
vote
0answers
32 views

Capture Approval Email reply with Apex

In an Approval Process, with email approval activated, when an approver replied by email, is it possible to capture that email and do additional processing with Apex? What I want is to forward the ...
0
votes
1answer
513 views

Hide/Disable Reassign button in Approval History

Is there a way to Hide/Disable reassign button in Approval History related list. In my scenario, I am assigning the approval request to different queues, Now Users of that particular queue are using ...
0
votes
1answer
378 views

Get a name of an Approver in Approval Assignment Email

BACKGROUND I have an approval process configured for Opportunities: I defined the Approval Assignment Email Template as follows: I am using 3 users in my org for this case: User Admin - (Profile: ...
0
votes
2answers
81 views

How do you create an approval process programatically

This guide instructs how to configure an approval process through Salesforce.. https://help.salesforce.com/articleView?id=approvals_creating_approval_processes.htm&type=5 however I don't see ...
2
votes
1answer
1k views

How to reassign an approval request in apex

I want to reassign a queue assigned to an approval request using apex. How can i achieve this, I have tried updating processInstanceWorkItem object but it was throwing insufficient access error
2
votes
1answer
294 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 ...
0
votes
2answers
129 views

How to get the alert on screen for “Submit for approval” when the criteria are met

I have created an approval process on Quote object, the criteria is whenever a backdated policy will get created it should go through the approval process. The process working fine, when the user ...
1
vote
1answer
31 views

Approve an email before sending

In our business, we want when our L1 agents send email as a reply to a case they should go through approval of their managers. So when they create a reply they put customer email address in to, write ...
0
votes
1answer
405 views

Approval Process Issue: Reassign and Approve/Reject Links are displaying for the submitter. Any thoughts please?

My question could be a duplicate of another question that has been asked long back but without a concrete suggestion/solution. Submitted user is also getting Reassign | Approve/Reject button on ...
0
votes
1answer
223 views

Approval Process: Word used to approve or reject not understood

One of my users is receiving this message when approving something from the Record page: "Your workflow approval message was not processed. The word used to approve or reject the item was not ...
1
vote
1answer
177 views

How can I pull the manager's manager?

I have a request to build an approval process on a custom object and the request should be routed to the "Director" (ie, the record owner's manager's manager), and it appears the way to accomplish ...
1
vote
0answers
557 views

how to appear Chatter posts for approval requests in lightning

I have created an approval process that allows users to approve the records from chatter. Before Designing an approval process, I have enabled feed tracking for the object where I have designed the ...
1
vote
0answers
100 views

How to Override Approve/Reject in Salesforce Lightning

Is there any we can override Approve/Reject in Salesforce Lightning so that it should not show standard approval page.
0
votes
0answers
32 views

Approval process optimization

Currently I have 2 approval processes on a custom object. I have 5 checkboxes which when true will be auto submitted for approval by a process builder. Current situation: Approval#1 is triggered ...
6
votes
1answer
4k views

SOQL to pull out Approval History records

Can someone let me know of SOQL that can pull out all these fields from Approval History ? Action, Date, Status, Assigned To, Actual Approver, Comments, Overall Status So far I found out that we can ...