Category Archives: MS CRM 4.0

Update Entity Record Using Dynamic Entity

I want to share somecode to update entity using dynamic entity with all //Create ICrmService object ICrmService  _iCrmserviceObject=context.CreateCrmService(true); //Create Dynamic entity object  DynamicEntity _DynamicEntity = new DynamicEntity(); //Assign name of entity which you want to update let’s say account             _DynamicEntity.Name = “account”; //We have to add properties to dyanic entity that we want to update //we can add directly… Read more »

Custom Workflow To get Datetime for the specified day of the week

One of my client ask me to develop a custom workflow for Following Date Manipulation functions Get the day of the week from a datetime field Get the date only part of a date time field to a workflow variable Get the time only part of a date time field to a workflow variable Get the datetime value for the… Read more »

Custom WorkFlow Activity DateTimeInput Issue

I got requirement to get Date for next weekday based on the weekday index input For example if you need to check what the date on next Monday is, As obvious I created two workflow input variables and wrote logic to get next weekday date. But I found the custom workflow not working because of the because of the datetime… Read more »

Calling External WebService using JS

 Sometimes we need to call External webservice using JS, i have written a function to call external webservice Here is the function, you can modify it according to your requirements function CallCustomWebService(FunctionName, ParameterNameList, ParameterValueList, ProxyURL) {//FunctionName-Name of the function to call //ParameterNameList-Array of Parameter names in your proxy function //ParameterValueList-Array of Parameter value //ProxyURL-URL of your proxy var CallingFunctionURL = “http://tempuri.org/”… Read more »

Send Parameter From NavBarItem

Sometime we need to send parameter to our custom page from NavBarItem, but as NavBarItem does not support JavaScript property so we can pass parameter to our custom page using openIsvWin function (Unsupported) Code to create NavBarItem <NavBarItem Icon=”/_imgs/ico_18_debug.gif” PassParams=”1″ URL=”http://MyPage.aspx” Id=”MyItem”>       <Titles>          <Title LCID=”1033″ Text=”ISV Default” />      </Titles>  </NavBarItem> Paste this code on formload event navBarItem=document.getElementById(‘MyItem‘); if(navBarItem!=null)… Read more »

Add ISV Button on Entity Grid

Some of you must have faced requirement to add ISV button on Specific entity grid it can be OOB entity or custom entity. We can do this like below:  <Entity> <Grid> <MenuBar> <Buttons> <Button Icon=”/_imgs/ico_18_debug.gif” Url=”http://www.microsoft.com” WinParams=”” WinMode=”2″> <Titles> <Title LCID=”1033″ Text=”Test” /> </Titles> <ToolTips> <ToolTip LCID=”1033″ Text=”Info on Test” /> </ToolTips> </Button> </Buttons> </MenuBar> </Grid> </Entity> Hope it will… Read more »

Tooltip For MS CRM Fields

The easiest way to provide tooltip for crm fields are to use “title” . for example to provide tooltip for accountnumber in account entity just paste following code on formload of account entity crmForm.all.accountnumber.title=”account number used in correspondence about the account”; you can also provide tooltip for lables. Done, But Remember this unsupported

Get Production Information Based on ProductID

 Most of the time i found this question on microsoft forum to get product information based on productid. I have develped this code for the same requirement. You can just paste this code on the onchange event of the product lookup. You just need to chage field names accordingly. __________________________________________________ GetProductInformation(); function GetProductInformation() { var resultXml; var errorCount; var msg;… Read more »

Microsoft Dynamics CRM Resource Center

A Great Place For MS CRM guys CRM Resource Center The Resource Center brings together information that will help you get the most from your use of Microsoft Dynamics CRM. The Resource Center provides a central location where you can find: >Information to help you get started. >Tips to make you more productive. >In-depth descriptions of product features and recommendations… Read more »