function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Lee_CampbellLee_Campbell 

ProcessInstance DML Question

Hi all,

 

Apparently, ProcessInstanceStep can't be "updated" via DML. I was just wondering if anyone knows, if I change something in ProcessInstanceStep and then DML update its parent ProcessInstance, will the Step itself get updated? I'm trying to create a means by which approvers can approve things via email (more specifically, advance approval steps from "pending" to "approved" via email).

 

Any help you could give would be greatly appreciated, I can't find anything that clarifies the issue over the forums or in the docs.

 

Lee

Lee_CampbellLee_Campbell

Okay so I tried it out, and apparently, ProcessInstance.Status is not writeable. Is there a way round this, perhaps, using VisualForce? Can I send an email that contains the "Approve" and "Reject" buttons that could just be clicked by the recipient? Can I do this without the recipient having to be logged in?

 

Lee