Set Date as today using business roles

0
94
Forum Post: Change the Filter On option on Opportunity Associated View for Account form


Hi AllaMoh,

There is no way for your requirement using business rules,For this You have to write Javascript Onchange,You can see below code:

var currentDateTime = new Date();

       var millis = currentDateTime.getTime() + (currentDateTime.getTimezoneOffset() * 60000);

       currentDateTime.setTime(millis);

       Xrm.Page.getAttribute(fielName).setValue(currentDateTime);

Try on this,may it will help you.

Thanks



Source link

Leave a reply

Please enter your comment!
Please enter your name here