Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

About Business Rules Validation

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

         Coming to the point, we have a scenario like while importing records for particular entity, we need to verify the record data and if record doesn't have a particular field data we should not import that record.

how do we achieve this using Business Rules.

*This post is locked for comments

  • Suggested answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: About Business Rules Validation

    Hi Govardhan,

    Business Rules don't work in this scenario.

    You could use Real-Time workflows which trigger before creation of the entity record.

    In the workflow, perform the steps below.

    1. Check if the field doesn't contain value

       Stop the workflow with the status Cancelled.

    See the links below.

    stackoverflow.com/.../make-field-mandatory-in-import

    community.dynamics.com/.../215682

    Hope this helps.

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: About Business Rules Validation

    Hi,

    Business rule is not able to achieve this, use plugin or workflow to achieve this.

    If the workflow is sufficient to match your checking criteria, throw the error.

    community.dynamics.com/.../using-real-time-workflows-to-show-error-messages

  • Verified answer
    Radu Chiribelea Profile Picture
    Radu Chiribelea 6,667 on at
    RE: About Business Rules Validation

    Hi Govardhan,

    I don't thing this is possible via a Business Rule.

    You can register plugin on Create in the Pre-Operations stage. There you can check the if the entity contains the required data and if it doesn't, then throw an InvalidPluginExecutionExeption, which will rollback the transaction and prevent the record from being created.

    Hope this helps,

    Radu

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans