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.

Filter by
Sorted by
Tagged with
1
vote
0answers
196 views

Approval Process

I have a requirement in approval process that I want dynamic approvers in UNANIMOUS approval based on some values. Suppose if condtion is "A" then I want UNANIMOUS approval of any 3 users and if ...
7
votes
3answers
12k views

Unlock a record which is locked by approval process

I don't see a way to unlock a record that is locked by approval process.IsLocked flag is not accessible through api.Is there any way to do this.
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
3
votes
1answer
731 views

Criteria and Formula expression behaving differently in Approval Process

I am facing a strange problem regarding Approval Process - If i use Entry Criteria based condition like below - (Pricing Assistant: Pricing Assistant StatusNOT EQUAL TOApproved) AND (Pricing ...
4
votes
2answers
12k views

NO_APPLICABLE_PROCESS :No applicable process found!

// Insert an account Account a = new Account(Name='Test', annualRevenue=100.0); insert a; // Create an approval request for the account Approval.ProcessSubmitRequest req1 = ...
2
votes
2answers
2k views

Delegated approver email notification

I have created an approval process on a custom object. I have also selected "Enable Email Approval Response" checkbox under "Workflow and Approval Process" settings. Everything works fine and approver ...
2
votes
0answers
270 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 ...
3
votes
2answers
2k views

Is it possbile to remove approval history based on criteria?

I have an approval process on a custom object. Once the record has been approved, Status will be changed to Approved and record locked. If the user changes Amount field, the Status will be changed to ...
5
votes
1answer
1k views

Why can some tables be accessed in a subquery, but not in a regular query

I am going through code that does approvals and I see the following query: Select Id, TargetObjectId, Status, ( Select Id, ProcessInstanceId, ActorId, Actor.Name, StepStatus, Comments ...
2
votes
1answer
542 views

modifying a record in the middle of an approval process

I need to modify a field for a record that is being approved. I unlocked the record, and made the change... now I need to re-lock the record. How do I re-lock it? I don't see a button on the top of ...
2
votes
1answer
4k views

Unanimous approval

I have a custom object on which I am having a user lookup field "App1". On the other hand, I am having an approval process where I have mapped "App1" field as an approver and I have also selected ...
2
votes
1answer
675 views

Delete Approval Process

I have a quick question here. How can identify the records that are related to a Approval Process. I fetched all the records of Process Instance but there I got Target Object ID. I have three ...
3
votes
0answers
673 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

Deleting approval process steps which is activated once

I have one approval process. i have activated it once and deactivated it again. now i want to delete some steps from approval process, but it is not showing any option to delete, but before i have ...
4
votes
2answers
599 views

Is there any way to have queue members reply to the email to approve an approval request?

I would like all members of a queue to be able to approve a request via replying to the email notification - is this possible? Am I missing something? Thanks
4
votes
1answer
6k views

Error when automatically submitting an approval process using code in APEX class - NO_APPLICABLE_PROCESS, No applicable approval process found

I have a trigger which automatically starts an approval process if an Opportunity has its stage updated to 'Closed Won'. if (o.StageName=='Closed Won') { Approval.ProcessSubmitRequest req = new ...
3
votes
1answer
836 views

Approval Process on Salesforce using RESTful API

I was reading this idea were it says: Happy to announce that Metadata API and Change Sets for Approval Processes will indeed be released in Summer '13. I was trying: XXX.salesforce.com/...
1
vote
1answer
4k views

Submit Approval to multiple approvers REQUIRED_FIELD_MISSING, missing required field: []

Submitting an Opportunity into an approval when the Opportunity Stage is updated. When setNextApproverIds is passed a List with a single ID in the list then the code works, when the list contains ...
3
votes
1answer
154 views

How do I make an approval process only be able to run once?

I have several approval processes running on an object. Depending on the condition, the process may have like 8 steps, OR it may just reach final status after one step (no one actually approves ...
3
votes
2answers
505 views

Case Approval - Time Limit, Then Send Email Reminder?

I am not finding any reference to this being a possibility (outside programming a Trigger, I assume). Is it possible in SF to have an Approval process "time out" (they don't approve it disapprove it ...
5
votes
3answers
4k views

Approval Process with Attachment & Email Response

Background: We have a custom Opportunity Object with a related Content List (documents like Solution Plans pertaining to an opportunity is uploaded into the Content via the related list). Few of the ...
4
votes
1answer
9k views

Creating a multi-approver approval process

Does anyone know of a way of creating a multi-step approval process? I.e. When one approver approves it, case is sent to the next approver ( approver 2) then when approver 2 approves it, it goes to ...
2
votes
1answer
2k views

Related User Should Submit for Approval

I have a custom object Child__c in a master-detail relationship with Account. The account has a single owner but I want different users to create and submit Child__c objects for approval. SalesForce ...
1
vote
1answer
102 views

Owner of the Case should not be the Approver

I have a scenario where a Case owner who is part of the Approval Queue is able to approve the Case. I want to prevent that from Happening and i am having tough time to Validate that. It seems we ...
3
votes
2answers
3k views

How to automatically approve after a period of time

I've created a custom object with an approval process. The client wants objects that await approval to approve themselves 24 hours (or actually 1 work day) after they are submitted for approval. What ...
22
votes
1answer
6k views

Apex approval process that requires unanimous approval from multiple approvers

Once every few months this requirement appears as part of a project. Here is some sample code: trigger AfterUpdate on Contact (After update) { for(Contact newContact: Trigger.new){ ...
5
votes
3answers
2k views

Who else can reply to an approval request beside the designated approver?

For the standard Salesforce approval processes, who else can approve a request besides the designated approver?
1
vote
1answer
2k views

Can i remove Recall option in Approval process?

I want to remove Recall option provided on salesforce native page and want to use my own custom button for that in Approval process.
4
votes
2answers
2k views

Manually select approver

I have created an Approval Process. In the approval step creation, at step 3, the approver has to be selected but I am not getting the option to let the user manually select the approver. The only ...
3
votes
2answers
2k views

Programmatically Stopping Approval Process Email

I have a need to generate an approval request and then immediately approve it via Apex. This is being done purely for record keeping and to properly show that a user approved a record. For instance, ...
0
votes
1answer
2k views

Visualforce page in step in approval process

Is it possible to create a Visualforce page for the page where an approver actually approves or rejects an approval request? To clarify; I've created an order object and orders have to be approved. So ...
5
votes
1answer
2k views

Can Salesforce Platform License Users Approve via Email?

Looking for confirmation on whether users with the 'Salesforce Platform' license can approve via email. In the past, I've worked with customers where this worked, but getting an error in one customer'...
5
votes
1answer
5k views

Approval Process: What status' indicate the record is Submitted for Approval

I am trying to detect whether a record is currently in an approval process. This is similar to this question but a different approach. I want to use the status of the youngest ProcessInstance to ...
7
votes
1answer
3k views

How do I recall an sObject from an approval process using apex?

While the apex developer documentation provides sample code on submitting an sObject to an approval provess with apex there is no documentation on how to recall an item from the approval process. Is ...
0
votes
2answers
467 views

Approval Emails sent from salesforce

Is there a way to get the log of all the Approval emails sent from Salesforce. I tried to get the log of all the emails sent out by requesting for email log, but for some reason feel like the data is ...
18
votes
2answers
4k views

Are triggers able to modify records locked by an approval process?

A lookup field in a custom object needs to be updated after the record is submitted for approval and locked. Is the trigger able to achieve this, even if the record is locked?
2
votes
2answers
4k views

How to customize the error message thrown by approval process?

I have requirement where an user should not be able to submit a master record for approval until all the related child records are approved. Submit for approval button on approval history related ...
1
vote
1answer
2k views

How can I give all users access to all records/objects without giving all users permission to approve an approval-process step not assigned to them?

I have always given users View All and Modify All permissions because it was crucial that every employee could see all data in our org. However, we have begun using Approval Processes as sort of multi-...
1
vote
3answers
3k views

Single Object Approval Processes run separately

I want to have a number of different approval processes run off Opportunities for things like discount approval, credit check and a compliance check. Is there a way I can set these up as separate ...
3
votes
1answer
7k views

Update approver's comment as field update

I have a unique requirement. I have a field called Approver Comments on a custom object. I have also created an approval process on the object. Now when approver approves then I want to capture ...
7
votes
3answers
3k views

Prevent child records to be created when parent records is submitted for approval

I have a requirement that user can't add child records once the parent records is submitted for approval. In the approval process, parent record gets locked but I also want to prevent child records to ...
2
votes
1answer
879 views

Approval history on Customer Portal page

I want to show Approval History related list to customer portal user. How can I do that?
3
votes
2answers
2k views

Is there a viable workaround to allow reporting on the history of a child in a master-detail relationship?

I am already using a workaround to allow reporting on approval process steps (field updates to the record, track the history of the field), except that now I can't report on the field history that is ...
1
vote
2answers
2k views

Approval process email template limits one per action?

I'm looking for a way to have a unique template for each step on approval and rejection emails. But it appears that, only one template per action is allowed for all the steps. just one approval ...
6
votes
2answers
4k views

Is it possible to prevent a user from 'Approving' a step in an approval process if a certain field is blank?

Basically, I want to have validation rules run when a step in an approval process is approved. I would like the rule to take into account which step triggered the rule, so that each step can have ...
1
vote
2answers
2k views

Can I set certain choices on a picklist as unavailable to users, but available to approval process field updates?

Basically, I want the user to be able to select 'Preparing for Submission' or 'Ready to Submit', but I only want the approval process to be able to select 'Step 1', 'Step 2', 'Step 3', 'Approved'. Is ...
9
votes
1answer
2k views

Submit records for approval in bulk without hitting DML Statement limit

I've got code to create and submit for approval a custom object. I'm running into the DML statement limit. As far as I can see each record I submit for approval takes up a DML statement, but there's ...
9
votes
3answers
7k views

Why Can't I Assign an Approval Step to a Queue for a Custom Object Approval Process?

I know that when running an approval process on Case, you have the option to assign an approval step to a Queue, however, I am now creating an approval process for a custom object, and I don't see the ...
1
vote
1answer
3k views

Display “Submit for Approval” button in the Approval History related list based on condition

I have two custom objects with master detail relationship. My requirement is that the parent should be submitted for approval only after all its child records are submitted for approval. For this, ...
4
votes
1answer
1k views

Test case fails in eclipse, same test case succeeds in webinterface. Click-through also succeeds

We have a rather elaborate setup where we have partner portal users approve/reject account-records using a visualforce page. We've got a test case doing this whole flow and it succeeds when you run ...