Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2021 Release Wave 1Discover the latest updates and new features to Dynamics 365 planned April 2021 through September 2021.
Release overview guides and videos Release Plan | Preview 2021 Release Wave 1 Timeline
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All 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