Skip to main content

Notifications

Announcements

No record found.

Customer Service forum

Default Call Duration

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

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Default Call Duration

    Hi,

    Please refer below post on how to set it.

    community.dynamics.com/.../280272

  • Verified answer
    RE: Default Call Duration

    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

  • RE: Default Call Duration

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

    Regards,

    Muhammad

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans