Timeline for Retrieve current approval process step name from ProcessInstance Steps
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 23, 2022 at 9:14 | comment | added | Benjamin Pirih | Hence this is why I build the map and only retain the latest process instance. The query above will return all processes and not necessarily the active one.. nor will it find the latest process instance for the active process.. I do appreciate your response @Ripon | |
Sep 23, 2022 at 9:08 | comment | added | Benjamin Pirih | The challenge here was to update a field on the approval record called Current_process_step__c with the step name of the active approval process. This step name was then used to evaluate additional criteria. The issue here was triggering this @ future code and having the transaction finish. Due to order of operations you cannot do this during the transaction as the approval isn't written to the database during the transaction hence the @ future. The query you listed will return all process instances and does not return the 'current step' for the approval process.. | |
Sep 21, 2022 at 6:47 | review | Late answers | |||
Sep 21, 2022 at 9:10 | |||||
S Sep 21, 2022 at 6:30 | review | First answers | |||
Sep 21, 2022 at 9:25 | |||||
S Sep 21, 2022 at 6:30 | history | answered | Ripon | CC BY-SA 4.0 |