Check out the latest features available in Dynamics 365 for Customer Engagement, including LinkedIn Connect, Voice of the Customer and Universal Resource Scheduling.
Dynamics 365 2019 release wave 2 plan Discover the latest updates to Dynamics 365.Release Plan | Weekly Deployment Notes
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants.Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements.
ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Talent TechTalks
And I add that script in Form Load and as well Form Save Actions.It was Working Fine.
Now the noofdays field affected when the form will getting open.
I need noofdays field automatically updated From the Created on date?How to do this...Thanks in Advance
Typically elapsed time fields are not stored in the database because they need to be recalculated on the fly. If you want to have this value in a sub grid then the only way I can think of doing this in a supported way is to add a Retrieve multiple plugin and loop through the results and add the calculation. An example of this technique can be found in my sample at code.msdn.microsoft.com/.../Multi-Language-Lookups-in-18fadc80
Hope this helps.
You need to write a plugin/workflow
so it will be triggered on some event , so your data will be calculated and will show on the form
If you tries to refresh the button event , it will be unsupported way ,
I think you should create a batch scheduled job that running for at least every 1 day since you want to count No of Days.
Another Alternative, if you are using CRM 2013 SP1 or Online Springwave update, is using CRM Timer in the form. This is only work in the form.
This is actually was designed to show how long the delay is counted from expected date, for example, neglected case, cases that are supposed to be first responded by 1 July 2014, but until now still no response, you can set the timer by a datetime field. SO can count this case has been neglected or not yet resolved for how many days, even can be how many second.
And you might be setup the 'tricky rules' for Success, Warning, and Cancelled condition. (try to setup never ending rules, if you want to always show.
This is the example:
you can write a job that updates this field value on nightly basics this way you dont have to worry about anything.
add this piece of code on load of the form.
it will make your work done.
Business Applications communities