dynamics-crm-2011

QueryExpression vs. FetchXml CRM2011

梦想与她 提交于 2019-12-30 02:24:28
问题 We found out that Linq for CRM 2011 is horribly broken - it seems to have gotten in without any QA performed on it. An indicator as how badly broken the provider is a query like .Where(x => x== "b") works but this .Where(x => "b" == x) might not depending on some preceding condition like a join statement. I have actually had to rewrite parts of the query provider and am enjoying better luck with the crap I put together. However this can't go on, there are still other issues and I'm not paid

Server-side Fetchxml returns different results

白昼怎懂夜的黑 提交于 2019-12-29 09:08:32
问题 One of our procedures lets users bulk-insert related records by picking a view and then hitting a ribbon button. The form is saved, a flag is set, and a plugin then does its job. We are using a subgrid with a view selector to let users pick or create their own views on the fly. Once a view is selected, the number of results (provided is lte 5k) is shown. When a plugin runs the very same fetchxml server side (Retrieve of userquery or savedquery, then Retrieve + FetchExpression), the results

CRM Dialog create entity and pass data

落花浮王杯 提交于 2019-12-25 07:49:51
问题 Could anybody give any piece of advice, or code, or documentation link where I can found: how to bind 'entity creation' after dialog is closed with positive result, and change some field on his parent entity, if dialog is closed with negative (cancel) status? I also want to know how to pass data from and to dialog. I am talking about custom aspx dialog (like dlg_closeopp.aspx) not standard dialog which is 'Process' entity. I call my dialog with the following js code which is bound on

Get the list of notes

最后都变了- 提交于 2019-12-25 07:19:34
问题 How to obtain the list (or e.g. collection) of guids of all notes associated with current entity? I know that it is in some way connected with service.Retreive(...), but can't make working code. Attach 1: public void Execute(IServiceProvider serviceProvider) { Entity entity = null; var context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext)); if (entity.Contains("new_parentopportunity")) { try { IOrganizationServiceFactory factory =

What is workflow in CRM2011 For sending mails after getting Approved?

我怕爱的太早我们不能终老 提交于 2019-12-25 07:19:03
问题 I create one campaign with the " Sending for approval " status. Then i moved to approved authority persons through the assign records via workflow. He open that Campaign and approved that particular record's status. My question is how to get that approved status in my workflow using CRM2011 or how to check that campaign is approved/otherStatus via my workflow? What is the workflow for getting that response? 回答1: I don't know if i understand well your question. You want launch a workflow when

System.BadImageFormatException when plugin executes

左心房为你撑大大i 提交于 2019-12-25 07:06:27
问题 I have a custom plugin registered in my CRM 2011 instance. Until today the plugin was working perfect but al of a sudden I am get this System.BadImageFormatException error when creating a record. I have tried researching the issue but I can only find people having this issue while registering a plugin. My research has led me to believe it is something to do with 64 bit vs 32 bit. I have tried changing the target of my assembly from "Any CPU" to 64 bit but I get the same error when the plugin

Create incident in dynamics crm using api in php

时光怂恿深爱的人放手 提交于 2019-12-25 04:57:06
问题 Im trying to create case in dynamics CRM using php.For that I can see that title,description and customer is required.So that I tried below code: $authHeader = 'Authorization:' . $type.' '.$access_token; //Request for incidents $data = array("title"=>"api_incident_title", "description" =>"api_incident_description", "primaryContactid" =>"https://vonageholdings.crm.dynamics.com/api/data/v8.0/accounts(ebaf25a6-f131-e611-80f8-c4346bac3990)" ); //URL $url ='https://vonageholdings.crm.dynamics.com

Dynamics CRM 2011 form jscript to retrieve lookup data

為{幸葍}努か 提交于 2019-12-25 03:55:38
问题 What are my mistakes, why do I get the "object expected" error, and, eventually, how does one debug jScript ? I am new to Dynamics CRM and I would like to do a small customisation, which seem to require jScript. The instance (version 2011) is used mostly to manage client support. There are 2 custom entities with relationships: FundLegalEntity --> SubFund The Case (Incident) form is linked to the FundLegalEntity and the SubFund. When user enters a SubFund I would like to have the

Adding value to LOOKUP field in microsoft dynamics crm 2011

六眼飞鱼酱① 提交于 2019-12-25 01:53:17
问题 I need to update a look up field in account using xrm services of microsoft dynamics crm 2011. Need some ideas.Pls. Help 回答1: Lookup fields in CRM 2011 are EntityReference , this means you need to know the LogicalName of the entity the lookup is pointing and the Id of the record. Assuming you are already connected to CRM (you can use simplified connection as this example: https://stackoverflow.com/a/15930366/2191473) you can set the lookup field using this syntax: Entity recordToUpdate =

Show popup/alert if account has related entity records

感情迁移 提交于 2019-12-25 01:48:48
问题 I have created a custom entity called Alert. I have associated this with the out of the box Account entity. What I want to do now is to customise the Account form so that when a user opens it, it checks if the current account has any active alerts. If it does, it should show a message informing them of this (a javascript alert?) and then navigate to the alerts view for the account. I've done some basic javascript in CRM but I'm not sure how to query related entities. Note Active alert is