aug 13 Java Javascript Microsoft CRM scripts

Lookup values from parent entities

Hi, This is another way to lookup values from parent entities this will work on all versions of CRM (OnPremise, Hosted, Online) Have fun! /Anders //debugger;var AccountLookUp = crmForm.all.parentcustomerid.DataValue;if (AccountLookUp != null && AccountLookUp != “undefined”) { var AccountID = AccountLookUp[0].id; var Accountxml = “” +”<?xml version=”1.0″ encoding=”utf-8″?>” +”<soap:Envelope xmlns:soap=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema”>” +GenerateAuthenticationHeader() +” <soap:Body>”…

Read more

aug 11 Java Javascript Microsoft CRM

Setting defaul values in CRM

Hi all, Here is a nice little collection of examples on how to set default values with javascript: http://msdn.microsoft.com/en-us/library/cc468412.aspx var CRM_FORM_TYPE_CREATE = “1”; if (crmForm.FormType==CRM_FORM_TYPE_CREATE) { // Set the value of the topic field. var topic = crmForm.all.name; topic.DataValue = “New Opportunity: “; // Price List – a lookup field. var priceList = crmForm.all.pricelevelid; //…

Read more

aug 11 Java Javascript Microsoft CRM

Java script to lookup service on related case on service activity

I have made this script where I lookup the service id and name on the related Case on the Service Activity and then stamp it into the created Service Activity Service field. I have been using the JavaScript libary from Daniel Cai’s blog: http://danielcai.blogspot.com/2010/05/mscrm4-web-service-toolkit-for.html Below you will see my script it should be easy to…

Read more

aug 11 Java Javascript Microsoft CRM

Easy way to use JavaScript

Hi All, I found this blog from Daniel Cai who have made a javascript libary where you can lookup values from related entities, create record etc. all made in a easy way. only thing is that you will need to have directly access to the server so hosted crm and crm online users can’t use…

Read more