• Donna Lutchman 6
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
I have a process defined in the Process Builder with 3 conditions on a custom Object.

Condition1: If the Status is 'AUTO_APPROVED', 
                    Action1: call a APEX program.
Condition2: If the Status is 'SUBMITTED', 
                    Action1: call the APEX program
                    Action2: Submit an Approval process. [Once approved the Status will get updated to 'APPROVED']
Condition3: If the Status is 'APPROVED',
                    Action1: call another APEX program.

I have selected the below option in process builder:
Recursion - Allow process to evaluate a record multiple times in a single transaction?  --> This is set to 'Yes'


Process:
1. User sets the Status to 'SUBMITTED'. It triggers the Condition2 and Approval process is submitted.
2. Once Approved, the status is changed to 'APPROVED'.

I am expecting another process to trigger and the evaluate Condition3 to be true and another APEX program gets called.
But this is not happening. Is it an expected behaviour ? 

If Yes, what is the other alternative ?
If so, then what is the use of the check box 'Recursion - Allow process to evaluate a record multiple times in a single transaction?'


IF No, what am I missing ?

 

Cheers
AJ
 

Hi all,

 

I was wondering if it was possible to calculate the total change in Close Date somehow from the field history. I know I could do it for future opportunities by invoking some kind of workflow that fires upon Opportunity creation, but I'd like to be able to subtract the first Close Date entered for the Opportunity from the current Close Date to give a total Close Date change for historic data (Opportunities created before I thought to create this workflow). Bear in mind, the Close Date may have changed three or four times, so the "previous" or "old" Close Date is of no use -- it needs to be the first one entered for that Opportunity.

 

Ideally, I'd like the answer to be displayed in months, if possible, and by months I mean actual months (i.e. a move from 31/07/12 to 01/09/12 is two months, even though it's only 31 days).

 

Thanks in advance for any help you can give.