Questions tagged [approval-history]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
16 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 ...
-2
votes
1answer
20 views

I actually want Submitted date and Approved date for every step in the Approval Process

I am getting the Submitted Date from ProcessInstanceStep.CreatedDate but not being able to get the approved date for each step. CompletedDate date is giving the date for overall completion of the ...
0
votes
2answers
27 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
0answers
29 views

Attempting To Query All ProcessInstanceSteps For a Record

I'm having problems in that I do not seem to be getting all of the ProcessInstanceSteps for a multi step Approval Process. I first do a query of ProcessInstance based on the current record's ID (...
1
vote
1answer
49 views

Case of no response on approvals

What flow would it be if user does not respond on approval/rejection request. I am creating a flow of approvals and rejections. What will happen to the flow when at some particular level user does not ...
1
vote
1answer
189 views

Actual Approver value populates before taking approval action

When a record is submitted for approval. Let's say this approval request is assigned to 3 users. The 'Actual Approver' column in Approval History is populated with the 3 assigned user's name before ...
0
votes
1answer
316 views

Trying to get the approval step name into my approval email and pdf

I have a Visualforce Email Template that displays the approval history for an order. It uses a Visualforce component and apex class. This is the code in the email template <p><b>Approval ...
1
vote
0answers
259 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
289 views

Test Class for Process Instance History

I have a class containing the below part of code in it for the Approval Process. I have no clue on how to cover this in my Test Class. for (ProcessInstanceHistory ps: qs.ProcessSteps) { if (ps....
5
votes
1answer
606 views

Approval process within a VF page in lightning experience does not work

I have a VisualForce page working fine in SF Classic that contains the approval process related list with this code: <apex:relatedList list="ProcessSteps" pageSize="3" /> When I switch to ...
4
votes
2answers
616 views

Ordering approval process history items by CreatedDate DESC doesn't give the correct order of execution

It seems to be a quirk of ordering SOQL queries by CreatedDate that, if the records were created in the same second, the order returned by the SOQL query doesn't reflect the order of execution, as ...
2
votes
0answers
303 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 ...
0
votes
1answer
321 views

Is it possible to auto submit the approval once the filter citeria is met?

We have a new approval process with filter criteria set as opportunity discount greater than or equal to 2.0,Only then the submitter is allowed to submit the approval.Is it possible to auto submit the ...
2
votes
3answers
3k views

'Unlock' button in Salesforce Approval process?

Can someone please tell me the significance of 'Lock/Unlock' button in Approval process. I was just trying to create an Approval process on a Custom object as part of testing and did a very basic ...
0
votes
1answer
219 views

How to add Actual Approver in Approval History in Report?

Can someone please tell me how can i add Actual Approver in Approval History Report ? Thanks in Advance..