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
rflorig1rflorig1 

unlock records programmatically?

is it possible to lock/unlock and approve/reject records programamatically?  if so, how?  if not, is this a planned enhancement?

thanks in advance
benjasikbenjasik
this is possible.  See the method called "process"
jf317820jf317820
is there a way to tell if a record is locked via the api (or query for a list of all locked records)?  also, is there an explicit "unlock" method?
jf317820jf317820
anyone?
sfdcfoxsfdcfox
I don't see any documentation on this, so I'm leaning towards the "not possible" angle at the moment. If I'm wrong, I'd be glad to be corrected (this would seem like a standard functionality).

~ sfdcfox ~
jimmijamzjimmijamz
The approvals process locks the records once it has been submitted.

However when i approved the submissions via the API and it is completed.
It doesn't unlock the record?

How do i change this?
BbStinaBbStina

Anybody out there ever solve for this? It make NO sense to me why the Opportunity Object is locked down and not the Opportunity Products related list. Approvals are, in strictly sales orgs, given based on the price you want to sell the Product at....not an approval on Stage, Probability or Close Date.

 

Any ideas re: how to have the Opportunity NOT be locked upon submission? Thanks!