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 CRM (Archived)

Locking an order

(0) ShareShare
ReportReport
Posted on by

Hi All

a bit of a strange question i have just noticed once an order is placed users can still change that order. I would like to have the orders locked down. I was just going to do a work flow to lock all the fields but thought i would ask if there is a setting somewhere to do this

Kind Regards

Dan 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Rawish Kumar Profile Picture
    13,758 on at
    RE: Locking an order

    There are two ways you can do this

    1. create a business rule and lock all the field based on a condition.

    2. create a javascript

    i did something like this on a custom entity ; from which you can take a reference :

    disableFormFields: function()

       {

           debugger;

           Xrm.Page.ui.controls.forEach(function (control, index) {

               var controlType = control.getControlType();

               if (controlType != "iframe" && controlType != "webresource" && controlType != "subgrid")

               {

                   control.setDisabled(true);

               }

           });

    }

    mark my answer as verified if helpful.

  • Community Member Profile Picture
    on at
    RE: Locking an order

    That's great thanks

    Dan

  • Community Member Profile Picture
    on at
    RE: Locking an order

    Hi

    I used the java script and it worked great. Then i noticed today users can still edit the actual products in the sub grid. How would like lock this down aswell

    Kind Regards

    Dan

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 CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans