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

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

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

(0) ShareShare
ReportReport
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?

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 242

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 85 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 72 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans