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

Read-only Fields: Business Rule and Imports

(0) ShareShare
ReportReport
Posted on by

I have a business rule, set with entity level scope, that states that field X is locked once it contains data.  I have noticed that during a data import (using "import from Excel" I can still modify this field.  Is this the expected behaviour?  If so, what are my options for making fields effectivelly write-once?  Do I need to use Field Level Security and/or JavaScript?

Thanks

Alan

I have the same question (0)
  • Verified answer
    Bipin D365 Profile Picture
    28,983 Moderator on at
    RE: Read-only Fields: Business Rule and Imports

    Hi,

    You should write plugin on Update message and throw an error when field X contains data if you don't want to write data if it's already contains data.

    You should register pre image to check if OLD value of field X is not null.

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 271

#2
Sohaib Cheema Profile Picture

Sohaib Cheema 102 User Group Leader

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 83

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans