Wednesday, April 27, 2011

CRM 4.0 - GenerateAuthenticationHeader Function 'Object expected' error from a Custom aspx page

This function retrieves a properly formed Microsoft Dynamics CRM authentication header. This authentication header automatically determines the appropriate authentication type to use for each deployment type: on-premise, IFD, or Microsoft Dynamics CRM Online. Note that the SOAP header for IFD does not include information about theCrmTicket because a session-based ticketing system is used.

To use this function in a custom aspx page you must insert the following code in your page:

parent.window.opener.GenerateAuthenticationHeader();

Nicola Grillo

No comments:

Post a Comment