Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How might you record lock an entity instance based on a particular state.

Posted on by 330

How might I, for example, lock a particular account record based on its status from another field in account - such that either i can't delete it or update it. Yet its still active?

Thanks

Stuart

*This post is locked for comments

  • Verified answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: How might you record lock an entity instance based on a particular state.

    In addition you can also create workflow -

    Have a look below article

    nakedcrm.wordpress.com/.../using-workflows-to-validate-records-to-prevent-creates-updatesassign-and-deletes

    To see the UI field lock business rule is the best options..

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: How might you record lock an entity instance based on a particular state.

    Hi,

    Depends upon requirement, if you requirement is "can only delete your own items" then security role is the best. Otherwise you can surely write BR based on your custom business requirement.

    Hope this helps.

  • JackAll Profile Picture
    JackAll 330 on at
    RE: How might you record lock an entity instance based on a particular state.

    Thanks, Yes a plugin would be one way.

    Howevers is there not a feature within vanilla Dynamics that offers this protection?

    When an entity is inactive then it can't be updated - that's part of the way there.

    I'm assuming the business rule would be the better way if it can do everything.

    Perhaps mixed with user level security so you can only delete your own items, and then only if they are not at a certain state.

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: How might you record lock an entity instance based on a particular state.

    You can have a plugin that prevents deletion or update based on status or any field value - This prevents the update or delete at the server level.

    And then if you want to have the fields to be read only on the form, you will have to have a script / business rule to lock all the fields.

  • Suggested answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: How might you record lock an entity instance based on a particular state.

    Hi,

    You can control it though code, you can have pre update and pre delete workflow/plugin which can validate your required, and can throw error which will cancel update/delete operation, so it won't let anyone update/delete account record.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans