ForceSubmit and Plug-In in CRM

Hi,

We had been facing one issue over here, it was regarding a particular field’s value getting set to blank on updating the SalesOrder record in CRM.

This used to occur when we were updating that record from within our SharePoint application which was using CrmService. However from within CRM, things were working absolutely fine.

After spending lot of time on that we realized that it was because of using ForceSubmit on that field/attribute.

If we are working from within the form in CRM, the value for that field would be passed to our plugin’s inputparameter, even if its value hasn’t been modified, in case of update event.

However if the record is getting updated using CrmService from an external application, the ForceSubmit thing won’t work as it is defined at form level, so the value for that field wouldn’t get passed. Its value will be passed only if that field’s value is modified.

So in our case we than modified our code to use Retrieve method to get that field’s value.

Bye..


Author: Nishant Rana

I love working in and sharing everything about Microsoft.NET technology !

3 thoughts on “ForceSubmit and Plug-In in CRM”

  1. Hi,

    I wrote a plugin that creates a folder in SharePoint. It works just fine. However, I need to be able to use the quotenumber as the folder name. I am having problems figuring out how to retrieve that value. I am able to retrieve values of other fields, but the quote number is assigned when the record is saved. I am guessing that the quote number is not getting assigned until after the plugin is being called. I am not sure what to do. Any ideas?

    Like

      1. Registering it on Post Create and the child pipeline did not work for me. When I save the record I get the box that says there has been an error and to contact my system administrator. However, an error is not posted in the Events log. Any suggestions for something I may be missing?

        Thanks so much,
        Holly Myers

        Like

Share your thoughts

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s