Hi there,
I am working on Dynamics 365 (online) and I've been trying to capture in a custom field the remaining time (SLA) before failure on case form.
At the moment, timer Control displays how much time is remaining on a case but what I want to is to save the time (hours and minutes) onsave event. For example, if a case is paused because a user change the status of a case, I want to a have a field which stores the time (from the Time Control) left at that moment. The custom Field would be used in a View displaying how many hours left before failure instead of showing 'Paused' or Nearing Noncompliance, etc.
However, my attempts with JavaScript always return null.
Is there a way to do it with JavaScript or a plugin? Your advice or suggestions will be much appreciated.
Timer Control is on a Quick View Form.
My quick form name is : CaseSLAPKI
Entity Name : slakpiinstance
Attribute: Resolve_In
function CaptureSla()
{
if (Xrm.Page.getControl('CaseSLAPKI_CaseSLAPKI_slakpiinstance_Resolve_In') != null)
{
var manfCountyctrl = Xrm.Page.getControl('CaseSLAPKI_CaseSLAPKI_slakpiinstance_Resolve_In');
var country = manfCountyctrl.getAttribute().getValue();
alert(country);
}
}
*This post is locked for comments