Tech Support > Microsoft Windows > Windows CRM > Quick Create for Custom Entities
Quick Create for Custom Entities
Posted by Vijay on December 22nd, 2006


Hi ALL,
Do we have any provision to have Quick Create facility for Custom Entities.
We are able to create the same for system entities like Contacts and
Accounts. Please let us know if any workaround is available to facilitate the
same.
Thanks and Regards
Vijay

Posted by Michael Höhne on December 22nd, 2006


Vijay,

You can use the following JavaScript code to open the quick create form:

var entityTypeCode = 10000;
var newRecord =
openStdDlg("/_forms/QuickCreateReturn/quickcreate.aspx?crmFormSubmitObjectType="
+ entityTypeCode, entityTypeCode, 400, 400);

newRecord is null if the user cancels the dialog and a LookupControlItem
otherwise, so you can assign it to a lookup field.

if (newRecord) {
var newRecordId = newRecord.id;
var newRecordType = newRecord.type;
var newRecordName = newRecord.name;
}


For a quick test open the web client, press CTRL-N or F11 and enter the next
line into the address bar:
javascriptpenStdDlg("/_forms/QuickCreateReturn/quickcreate.aspx?crmFormSubmitObjectType=10000",
10000, 400, 400)


--
Michael

Web: http://www.stunnware.com/crm2
Feed: http://www.stunnware.com/crm2/atom.aspx
Custom Lookup Dialog: http://www.stunnware.com/crm2/?area=customLookup

----------------------------------------------------------

"Vijay" <Vijay@discussions.microsoft.com> schrieb im Newsbeitrag
news:6D22B0C6-3CFD-420A-8D4B-D9EA29CC642C@microsoft.com...



Similar Posts