dynamics-crm-2013

Dynamic CRM Plugin download Word document

耗尽温柔 提交于 2019-12-02 04:22:30
问题 I have created CRM plugin, which on Case create need to download a document to the client. When I create a case plugin is working but it doesnt download a document. In console i can see a content of document is returned through POST request ..AppWebServices/InlineEditWebService.asmx but not opened or downloaded. Im new in this so I will be a very thankful on any help. My code is bellow: My code is bellow: protected void ExecutePreValidateCaseCreate(LocalPluginContext localContext) { if

Lookup contacts instead of accounts on emails in MS Dynamics CRM 2013

大憨熊 提交于 2019-12-01 12:02:59
I planning change default view for to attribute on email entity, so instead of account entity it will suggest user to choose recipients among contacts . However this functionality in MS Dynamics CRM seems to be broken. Or I missing something? Here is the code: (function () { var ctrl = Xrm.Page.getControl("to"); if (ctrl) { ctrl.setDefaultView('{13C1A58B-9AEF-4164-80E5-1D946D5BC8B3}'); console.log("Default view is set!"); } }()) Guid points to valid view on contact entity. The code is executed, console has debug message Default view is set! , and on using to lookup system still uses account by

Lookup contacts instead of accounts on emails in MS Dynamics CRM 2013

倖福魔咒の 提交于 2019-12-01 11:35:15
问题 I planning change default view for to attribute on email entity, so instead of account entity it will suggest user to choose recipients among contacts . However this functionality in MS Dynamics CRM seems to be broken. Or I missing something? Here is the code: (function () { var ctrl = Xrm.Page.getControl("to"); if (ctrl) { ctrl.setDefaultView('{13C1A58B-9AEF-4164-80E5-1D946D5BC8B3}'); console.log("Default view is set!"); } }()) Guid points to valid view on contact entity. The code is

Get audit history records of any entity record as per CRM view

岁酱吖の 提交于 2019-11-30 20:46:46
I want to display all audit history data as per MS CRM format. I have imported all records from AuditBase table from CRM to another Database server table. I want this table records using SQL query in Dynamics CRM format (as per above image). I have done so far select AB.CreatedOn as [Created On],SUB.FullName [Changed By], Value as Event,ab.AttributeMask [Changed Field], AB.changeData [Old Value],'' [New Value] from Auditbase AB inner join StringMap SM on SM.AttributeValue=AB.Action and SM.AttributeName='action' inner join SystemUserBase SUB on SUB.SystemUserId=AB.UserId --inner join