Microsoft CRM 3.0 Experiences

Wednesday, January 03, 2007

Retrieving the MS CRM AccountId in the Onload event of an Account

The Accounts accountid can be retrieve and used on the Account form by using the following in the Onload event for the form:

var Accid = crmForm.ObjectId;
alert(Accid);

Note the script here used is javascript.

We used this to copy the Account Id into a temporary field that could be used when extracting data.

0 Comments:

Post a Comment

<< Home