Hello,
I would like to automatically close a Business Opportunity when it expires (expiration date = today’s date). I wanted to do this via a Workflow, but sadly, you can’t schedule workflows to run daily, they have to be based off of a projection action or event action.
I looked at scheduled database tasks, and I found the method Set_Closed for Business Opportunities, but sadly, the scheduled database task I set is not working. I have this set up so far:
I added the “Expiration_date” parameter.
Whenever this is run, I get this error: “ORA-20115: BusinessOpportunity.The "Business Opportunity" has already been removed by another user.”
and no Business Opportunities close. Am I missing something? I’ve worked with some scheduled database tasks before that automatically create pick lists and reserve customer order items, but this is the first time I’ve seen parameters that (I’m assuming) are passed into the API to set the BO as either Won or Lost.
The API Explorer documentation for this method didn’t help.
Can anyone provide any insight? I’d really appreciate it.
Thanks,
Bryan