web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer Service forum

Default Call Duration

(0) ShareShare
ReportReport
Posted on by 355

Hello

The default duration for a call in my form is set at 30.  We want this to be null and set as a business required field. I am ok with the business required part but struggling with the default value.  I assume I will need to add son JS on the event load but wouldn't know where to start...

Thanks

I have the same question (0)
  • Muhammad Salahuddin Profile Picture
    470 on at

    Can you please tell me which version of MS Dynamics (365/CRM), you're using?

    Regards,

    Muhammad

  • Verified answer
    Muhammad Salahuddin Profile Picture
    470 on at

    If you're using MS Dynamics 365 Version 9.X, then you can use below code to set the"Duration" field to null:

    //Call this function on form load

    function onFormLoad(executionContext) {

       setActualDuration(executionContext);

    }

    function setActualDuration(executionContext) {

       var formContext = executionContext.getFormContext(); // get formContext

       var duration = formContext.getAttribute("actualdurationminutes").getValue();

       formContext.getAttribute("actualdurationminutes").setValue(null);    

    }

    How to register the function:

    Duration.png

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    Please refer below post on how to set it.

    community.dynamics.com/.../280272

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Customer Service

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans