“Object doesn’t support property or method ‘setFormMode’” error while closing the record’s form in CRM 2011.

Hi,

We had recently written a plugin for sending email. In the description of the email we were inserting the URL of the record

string recordUrl = string.Format(“<a href=’{0}/userdefined/edit.aspx?etc=4300&id={1}‘>Click here to open the record</a>”, this.serverName, marketingListGuid.ToString());

While clicking the link the record opens properly, however when we try closing the form’s window we get the below error

We have UR8 installed in our on premise development environment there we don’t get this error, however we are still getting the above error for our online dev and production environment.

http://social.microsoft.com/Forums/lv-LV/crmdevelopment/thread/0c0aa09e-0ea6-4150-8056-a2b7b91f3256?prof=required

Bye.


Author: Nishant Rana

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

2 thoughts on ““Object doesn’t support property or method ‘setFormMode’” error while closing the record’s form in CRM 2011.”

  1. Hi there – You’ve probably found the solution to this by now but just in case anyone’s looking for RU7 if you add “&ROF=false” to your dynamically generated URL you won’t get this error (ROF = Read Only Form).

    The bug that caused it was fixed in RU8. Cheers, A =D

    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