Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

Now to allow to update, when record is stale

$
0
0

Dear Dynamics CRMers,

I have a requirements like below.

Our Entity goes in different stages, which is controlled by ribbon button. If entity (record) opened by two persons same time( assume 3 PM) and one person took action and moved the record to next stage in business Process flow. Second person who already opened same record along with first person at 3 pm, after some time, second person wants to take edit the record. ( currently, first person took some action on the same record and moved to next level), but record already passed to next stage, what ever the changed made by second person should  not allowed. 

To move to the next stage, we used ribbon button, custom action and plugin. 

For the above requirement ( to stop update by second person), what is the best way to stop editing and show warning. 

In Javascript, On_save event handler, I called custom action to know what is the current stage of the record in database, but the issue is it is not Synchronous call. Before the action execute, OOB save functionality is triggered. 

My version is Dynamics CRM 2013 SP1 UR4 on Premise.


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>