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 8895445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:46:55+00:00 2026-06-14T23:46:55+00:00

I have a plugin registered on Pre-Create of a Service Activity. In the plugin

  • 0

I have a plugin registered on Pre-Create of a Service Activity. In the plugin I check some conditions and if they are met i want to stop creating the service activity. Instead of that service activity I want to create two other that will be a replacement. But I don’t want the user to be notified for all this.

Is there a way to stop the creation of the SA record in a plugin on CRM 2011?

  • 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-06-14T23:46:57+00:00Added an answer on June 14, 2026 at 11:46 pm

    So, If a user triggers the creation of the service activity via the Dynamics CRM GUI, the form is normally saved (by sending an internal UpdateRequest), then refreshed via another trip to the database. If you deleted the record in between the two events via a plugin, the user will certainly be notified by the standard “Record can’t be found” error message. In this case, throwing an exception in the plugin preventing the creation of the record is equivalent in that the user will be notified, but at least he’d see a customizable message perhaps telling him why the save didn’t work.

    It would seem to me the best way to handle this via a plugin is to

    1. Check your conditions.
    2. Change (not delete) the existing saving service activity to match the criteria of one of the other service activities you want to create. This way nothing is unnecessarily deleted.
    3. Create the other service activity.
    4. After the form refreshes with the now changed service activity, you can do whatever you want in javascript (open the other record, close the current record, etc.).

    If you have control over the GUI, you can do things a little differently (delete the record post operation, for instance, though this would still result in one additional and unnecessary database operation), and you can always use javascript for client-side validation.

    One more point: I must also add that from a user’s perspective, saving a record and then not seeing it immediately would constitute an unexpected CRM behavior. If something like this happened, I would at least expect to receive either some training on how that section of the CRM works or a notification that something fundamentally different has in fact happened.

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

Sidebar

Related Questions

I made a plugin for email entity and registered it on Pre Create event
I have Dynamics CRM 4.0 installed and wrote a plugin, registered it, and setup
I have silverlight plugin on my page and some functionality to show panel as
I have a plugin that is loaded by this application.. This plugin calls some
We have a plugin system on a WCF service that checks libraries placed in
I have this plugin advImage which I use in tinyMce. I want the user
Does jQuery validation plugin have some dependencies? For example, I saw blogposts that said
I have a plugin registered for when an account is created or updated, this
I have a IE BHO plugin that I only want to be enabled when
I have a plugin written that is registered for the DeliverIncoming message on 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.