Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Work Order System Status not automatically set "Open-Unscheduled"

Posted on by 90

Hello,

Work Order System Status is not automatically set "Open-Unscheduled" on the form. it is blank. I have checked the javascript for the form, does not seem to be an issue. is there settings I can check?

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Work Order System Status not automatically set "Open-Unscheduled"

    Hi Ainsley,

    This behavior is done by the WorkOrders.Library.Load onload event:

    pastedimage1637629210404v1.png

    You can check it is disabled or not.

    If it is enabled, you could replace this library with the following code (Please backup your content of this library first):

    [View:/cfs-file/__key/communityserver-discussions-components-files/761/WorkOrder.Library.js:320:240

    If replace library can't work too, you could create an onload event to achieve this:

    function onLoad(executionContext){
        var formContext = executionContext.getFormContext();
        var status = formContext.getAttribute("msdyn_systemstatus").getValue();
        if(status == null){
            formContext.getAttribute("msdyn_systemstatus").setValue(690970000);
        }
    }
    

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

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

Product updates

Dynamics 365 release plans