its been so many days, I was waiting to write something very commonly required yet useful feature.
Please note that the time spent field is a Deciaml Field
We need to follow the following steps:
if(stdate==null && endate==null)
alert(“Please enter the Start Time / Finish Time…”);
alert(“Please enter the Start Time !”);
alert(“Please enter the Finish Time !”);
Step 2: Add a webresource in CRM
Add a new webresource by typing in a name, Display Name, Language & Type>>Save & Publish>>URL will be genrated
Step 3: Add this webresource to form Libraries
Go to ‘Repair Activity’ Form Editor>> Form Properties>>Form Libraries>>Add
Once done save the form & publish it
Happy CRMing !!
It’s interesting the way you calculate the spent time in activities, my question is, how can I do to calculate the spent time in a case, when I resolve the case the activities are closed. Can you help me with that? Greetings
Hi, I just tried your script but im getting this error:
One of the scripts for this record has caused an error. For more details, download the log file.
ReferenceError: time is not defined at eval (eval at RunHandlerInternal (https://aquaflowservices.crm4.dynamics.com/form/ClientApiWrapper.aspx?ver=-2079214127:158:32), :1:1)
Could you please help 🙂