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)

Read Only vs Lock Field

(0) ShareShare
ReportReport
Posted on by 365

Hi,

On a form, what is the difference between a read only field and a lock field?

*This post is locked for comments

I have the same question (0)
  • Fubar Profile Picture
    2,756 on at
    RE: Read Only vs Lock Field
    [quote user="Thijs Hurkmans"]I can't run the workflow as the user because he doesn't have the rights to change the field. So my question is how I should run this workflow as I don't want to run it as the owner of the workflow (because it is dependable on a particular user account)[/quote]

    To get around this you can create a non-interactive user (and assign the privileges needed to it) and make it the owner of the workflow. Non-interactive does not consume a CRM licence, but you need to temporarily assign one to get it pushed into CRM, then remove the licence later see https://docs.microsoft.com/en-us/power-platform/admin/create-users-assign-online-security-roles#create-a-non-interactive-user-account

  • Thijs Hurkmans Profile Picture
    15 on at
    RE: Read Only vs Lock Field

    Thanks Kokulan, but the workflow should always run. It's the manual update of the field I want to control. When I set the field to read-only in the form it is also read-only for the supervisor and therefore not changable. When I set the read-only in the field security, I can't run the workflow as the user because he doesn't have the rights to change the field. So my question is how I should run this workflow as I don't want to run it as the owner of the workflow (because it is dependable on a particular user account)

  • Kokulan Profile Picture
    18,054 on at
    RE: Read Only vs Lock Field

    In your workflow, you could wrap your Update step under a condition and in that condition you could check if the user is in particular team or if its just few users, you could directly check in list of users as well. If the condition not satisfied, it wont try the update.

  • Thijs Hurkmans Profile Picture
    15 on at
    RE: Read Only vs Lock Field

    Hi David,

    How would you fix a date field that should be set to today when another field changes but should only be editable by certain users. I have a workflow that updates the field. Because I get an error when I run the workflow as the user (because he doesn't have access to update the field) I would like to run the workflow as the owner of the workflow, but my problem is that this workflow is then dependent on the access and availability of my user account.

    Thanks!

  • David Jennaway Profile Picture
    14,065 on at
    RE: Read Only vs Lock Field

    Field-level security is useful if you want only certain users to be able to edit a field. It does have a performance impact (normally negligible, but can have an effect if applied to many fields), so if no users should modify a field (for example if you derive it from other values), then it's simpler to make it read-only. However, read-only only applies to changes made via a form, whereas field-level security applies to any changes made (for example programmatically)

    Note that Microsoft terminology is confusing in places. Within a Business Rule, the term 'Lock a field' means to make it read-only

  • Thijs Hurkmans Profile Picture
    15 on at
    RE: Read Only vs Lock Field

    You can specify read, update and create access. When you enable read settings in Field Permissions users can read the information.

  • Martin Donnelly Profile Picture
    1,030 on at
    RE: Read Only vs Lock Field

    because field level denial makes it also unreadable.  E.g. not only can you not edit the SS number but you can't even read it.

  • GurpreetL Profile Picture
    5 on at
    RE: Read Only vs Lock Field

    Rather than using Read Only why would you not use Field Level Security to stop users from changing anything on the field?

  • Verified answer
    prt33k Profile Picture
    6,907 on at
    RE: Read Only vs Lock Field

    Locking a field means that we are preventing it from getting deleted from the form.

    Read only field means that we can not edit the value of the field.

    Locking a field or section is applied when we think that a particular field is mandatory to be displayed on the form and we dont want it to be removed by customization. Similarly, locking a section will prevent that section to be deleted and also will not allow field inside that section to be deleted or modified.

    Read only is - as name suggest - when we dont want data to be updated by the user.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans