I have new contract entity that I created which sits below the Account entity. On this new Contract form, I have a field called, "Status". I need only certain teams to be able to create a Contract record. When the status = Active or Expired, I need a way to check to see if the user logged into CRM matches either the Account Rep value field or the Coordinator value field on the Account record. If it does, then they should be allowed to modify any field on the Contract record. if status = Termed, then all fields get locked and no one can edit the record.
Wasn't sure the best way to get this to happen. Any advice is appreciated, thank you.
Hi,
For the first first "Restrict creation to specifc users", this can be controlled by creating/assigning a security role which has create permission for your contract entity (ensure users are not assigned with any other security role which has create permissions).
docs.microsoft.com/.../security-roles-privileges
Second, "Restriction on update to only Account Rep & Coordinator", you can create a real time worlfow, which triggers on change of modified on field, within the workflow check if the modified by is not equal to Account Rep or Coordinator then cancel the workflow and throw error.
community.dynamics.com/.../using-real-time-workflows-to-show-error-messages
Hope this helps.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,113 Super User 2024 Season 2
Martin Dráb 229,918 Most Valuable Professional
nmaenpaa 101,156