Dears,
How Can i prevent user to close the opportunity if the close date in the past
*This post is locked for comments
Dears,
How Can i prevent user to close the opportunity if the close date in the past
*This post is locked for comments
Hi ,
Agreed with Mahender I would suggest try to create a real time workflow .
Hi Mohamed,
You can develop a plugin on Opportunity Close message of Opportunity entity and check if the close date is in past date. If yes, you can throw an InvalidPluginExecutionException and it will restrict the closing of the opportunity. For more details, see link below.
Hope this helps.
You should be able to create synchronous work flow on opportunity status change and there you can use Execution time to compare with the date and stop user if condition does not match, you can write plugin to track this.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156