In Post Microsoft Dynamics CRM: How to create company via button click (Ribbon Workbench), I showed you Possibility No 1 to create a company via button click. Now, I found out another possibility.

Possibility No 1 did create a company ‘in the background’. That means that after clickin’ the button, you have to either click only the button, or you can input the account information into the prompt windows.

With Possibility No 2, we can create the company by inputting the information directly into the form. Use exactly the same steps as described here, but use the following javascript:

function CreateAccount() {

 console.log("Function Create Account started");

var parameters = {};

 parameters["accountcategorycode"] = "2";

 parameters["name"] = "Roger Rabbit";

 Xrm.Utility.openEntityForm("account", null, parameters);

}

 

Join the conversation! 1 Comment

  1. […] See also: Microsoft Dynamics CRM: How to create company via button click (Ribbon Workbench) – Possibilit… […]

    Like

    Reply

Leave a Reply

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 )

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Category

Microsoft Dynamics CRM

Tags

, , , , , ,