Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6900445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:32:49+00:00 2026-05-27T07:32:49+00:00

I understand that a plugin registered for pre-validation executes outside of the database transaction

  • 0

I understand that a plugin registered for pre-validation executes outside of the database transaction but I’m not sure I can think of a scenario when this would be preferable to pre-operation. Can someone give me an example of where pre-validation registration might be useful?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:32:50+00:00Added an answer on May 27, 2026 at 7:32 am

    We have a few plugins registered on the ‘PreValidation’ event although this is on premise, not online.

    I did not write these specific plugins myself but I can describe one and give the justification for using ‘PreValidation’ rather than ‘PreOperation’.

    Entity: Account

    Event: Delete

    Logic: Plugin runs pre validation. Checks that there are no contacts referencing any of the account’s addresses. If any are found, stop execution. If not, delete account.

    e.g.

    Account ‘Stackoverflow’ has address ‘Jeff Attwood’s House’ and Contact ‘glosrob’. ‘glosrob’ is referencing ‘Jeff Attwood’s House’ through a customisation. If a user selects to delete ‘StackOverflow’, we should detect ‘glosrob’ is referencing an address and prevent the delete.

    The reasoning behind this was the developer found that at the PreOperation stage, some aspects of the delete had already happened, namely the cascade deletes. The logic of the plugin requires us to check all contacts – by registering at PreOperation, contacts under the account had already been deleted, rendering the check obsolete.

    In our previous scenario, when the user selected to delete ‘StackOverflow’ Account, the Contact ‘glosrob’ would be deleted before the plugin runs. Therefore when the plugin did run afterwards, it would allow the delete.

    As with most things in CRM, it all comes down to requirements and solutions, but I think that gives you an idea of why/when you might use a PreValidation stage. We have a few others with similar reasoning that run on the ‘Delete’ event.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I understand that they are both supposed to be small, but what are the
I understand that server-side validation is an absolute must to prevent malicious users (or
I understand that requests are served by different threads, but do they all come
As I understand it Qt provides 2 main plugin mechanisms: Plugins that extend Qt
I've been looking, but can't seem to find a RoR plugin/gem for filtering out
The IE Developer Toolbar is a plugin that can dock or separate from the
I understand that AJAX is asynchronous, and all that. But I have the following
I understand that users using Maven should not care about dependencies as Maven will
I understand that some countries have laws regarding website accessibility. In general, what are
I understand that there are several ways to blend XNA and WPF within the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.