Kayıtlar

CRM search can not find deactive records

In microsoft dynamics crm, when you searching recored you can not find deactivate records especially, in case or sales orders you can not find resolves cases and fulfilled orders. One our customer toll us that he want to searc deactive records, bu you know that crm search view is a system view and could not customizable.  For customize ths view open sql server--> orgname_mscrm-->savedqueries table, and find your view name. then edit the iscustomizable field set it to true. then refresh the view than go search criteria, and remove the criteria that bann deactive record. and publish the view.

Remove CurrencySymbol with javascript from crm forms

Form removing currency symbol from money fields on crm form write the script below on crm form onload. document.getElementById('fieldname_sym').style.display= 'none';

how to set a 2nd level subject tree to force select

Senario is: when selected: check if the <subject> has <parentsubject> if not then msg: "please select a child subject tree" set focus back to subject else leave as <parent subject> /////////////////////////////////////// function GetAttributeValueFromID(sEntityName, sGUID, sAttributeName, sID) { var xml = "" + "<?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>" + " <RetrieveMultiple xmlns=\"http://schemas.microsoft.com/crm/2007/WebServices\">" + " <query xmlns:q1=\"http://schemas.microsoft.com/crm/2006/Query\" xsi:type=\"q1:QueryExpression\">" + ...

Connecting Another Databases from crm javascript + sql

When creating account, we need control, if an account number exist in another database, for controlling this case, we write sql code in javascript. function erpFirmaKontrol(val) {

How to chgange Activity pointer view default value

Resim
In crm 4.0, there is no way to change the activitiy pointer defaullt view, thats way I search the crm source  pages and i find the way of change default view. open inetpub-->wwwroot-->Workplace-->home_activities.aspx; and  paste the script below, under the onload blok like the picture 3 crmTypeSelector.DataValue="phonecall"; OnActivityTypeChange(crmTypeSelector);

Disable datetime field in crm 4.0

to disable a crm datetime filed in crm, using Disabled=true is not able to full disable the field.The date text still enable to edit. To fully disable the date filed use below script //Disable crmForm.all.DATETIME.Disabled=true; var node = crmForm.all["DATETIME" +"img"].parentNode.previousSibling.firstChild; node.disabled=true; crmForm.all["DATETIME" + "img"].src = "/_imgs/btn_dis_cal.gif"; node.className = "ro"; //Use below code to enable it crmForm.all.DATETIME.Disabled =false; var node = crmForm.all["DATETIME" +"img"].parentNode.previousSibling.firstChild; node.disabled =false; crmForm.all["DATETIME" + "img"].src = "/_imgs/btn_dis_cal.gif";node.className = "";

Change Activities Sort Order

Resim
To Change, new activities sort order open the file (C:\Inetpub\wwwroot\Activities\dlg_create.aspx), with text editor.Find the code below, for example you want to see phone calls firstly, cut the phone calls rows and paste the row in first row, save close the file. RenderListItem(Util.Task, Privileges.CreateActivity); RenderListItem(Util.Fax, Privileges.CreateActivity); RenderListItem(Util.PhoneCall, Privileges.CreateActivity); RenderListItem(Util.Email, Privileges.CreateActivity); RenderListItem(Util.Letter, Privileges.CreateActivity); RenderListItem(Util.Appointment, Privileges.CreateActivity); RenderServiceAppointment(); RenderCampaignResponse();