Thursday, September 1, 2011

Enabling JScript/JavaScript in Bulk Edit CRM 2011

I recently came across a situation where I had to use Jscript while Bulk Editing the records in CRM 2011. As we all know, this is not possible out of the box but thanks to Michael Höhne (http://www.stunnware.com/crm2/topic.aspx?id=BulkEdit) and Microsoft for providing with the KB article (http://support.microsoft.com/kb/949941)

Here is what we need to do:

1. Export the entity as a solution for which JScript needs to be enabled during Bulk Edit.
2. Open the customization.xml
3. Add BehaviorInBulkEditForm="Enabled" to the event handlers as shown below
 
<
event name="onchange" application="false" active="false" attribute="new_day" BehaviorInBulkEditForm="Enabled"
>

<
event name="onsave" application="false" active="false" BehaviorInBulkEditForm="Enabled"
>

4. Save and Import the solution. Your JScript code should now be triggered!

 --Srihari

6 comments:

  1. does it work in 2011?
    cuz i tried and it did not work for me...
    also i saw in sdk, they have mentioned, "Not used. All scripts are disabled for bulk edit forms."

    ReplyDelete
    Replies
    1. @Sudhanshu: Yes, this did work when I tried it way back in Sep 2011. I am not sure if this feature got disabled in one of the rollups or not. I can try again and let u know.

      Delete
    2. Any updates on whether this is still available or not or whether MSFT has turned this off altogether??

      Delete
    3. Any updates on this whether this feature still works or has MSFT turned it off completely in one of the recent rollups?

      Delete
  2. Hi,
    I have done as per the instructions for CRM 2011

    But still it is NOT loading the necessary scripts.

    Any thoughts?

    Vinu

    ReplyDelete