dynamics-crm

Microsoft Dynamics - Web API

与世无争的帅哥 提交于 2019-12-12 20:58:50
问题 I'm trying to create a new "incident" (case) in by Dynamics 365 instance via the Web API. In my http request, I don't know which field are mandatory. I tried to only add the title, subject, and customer, but I have a Http 400 error back... I'm using Postman do try my Http Request. If I send the following json { "title": "Case created from Web api", "_customerid_value": "bb2b6a80-7102-e711-8101-3993bb354ff0" } But I had the error: "CRM do not support direct update of Entity Reference

how to get related entities in dynamics CRM 2011

孤者浪人 提交于 2019-12-12 15:21:28
问题 This question was migrated from Software Engineering Stack Exchange because it can be answered on Stack Overflow. Migrated 8 years ago . We are currently developing a Silverlight webresource in the recently released Dynamics CRM 2011. At this moment we wanted to implement an autocomplete box displaying the collection of accounts, with their addresses. We are currently stuck at the relationship we needed to follow from the account entity to the address entity. At this moment I just graduated,

CRM 2015 Linq Count() query - is this enumerating the query?

折月煮酒 提交于 2019-12-12 13:18:08
问题 I've been struggling with writing Linq queries against the Dynamics CRM 2015 SDK OrganizationServiceContext . I'm finding that often the Linq methods I want to use are not supported by the CRM Linq Provider. The latest is Count() . I have an IQuerable<Lead> object and want to count the total records that would be returned when enumerated. But calling Count() on an IQueryable gives the error: The method 'Count' is not supported Digging around I found this advice which is to define the Linq

How to add a value to a lookup field?

我的梦境 提交于 2019-12-12 11:59:29
问题 I have a entitiy "account "in which it has some name_field in Microsoft Dynamics CRM. Other than lookup field , every other fields values can be inserted. how to select an existing value in look up???? I used the following code to add value to the lookup field.. However I don't get any error.. Account acc = new Account(); acc.Attributes["name"] = "Ram"; // this values got inserted acc.Attributes["age"] = "22"; // this values got inserted acc.Attributes["lookupfieldid"] = "Sampletext"; service

Dynamics CRM current date placeholder in workflows

两盒软妹~` 提交于 2019-12-12 10:55:58
问题 I've workflow attached to an entity which has expiration date and time, so what is the appropriate placeholder which indicates the current time some sort of {{CURRENT_TIME}} ). Sultan 回答1: Your question is a little vague but if you are talking about Dynamics CRM workflows via the editor, the time that the workflow is running at would be the execution time. To get this, do the following steps - Within a workflow on a create or update step, click in a date/time field on the form. In the form

CRM 2013 Dynamic OptionSet issue

主宰稳场 提交于 2019-12-12 10:23:38
问题 I am using CRM 2013 On premise, and in it there is an attribute which has an option set (not global) having text and value as "Dummy Entry" "0". Default Value is unassigned. My code is to add options in this option set with some business logic. So I can add new options in it via Javascript. When I am adding Options in it via Javascript, it is not allowing me to change the value lets say Option1 val1 Option2 val1 is added then it wont allow me to select these values and every-time selecting

Is there way to structure a QueryExpression so that you could dynamically handle a unknown number of conditions

拥有回忆 提交于 2019-12-12 10:18:15
问题 Microsoft provides example like the one I have copied below for creating multiple conditions for a QueryExpression. Is there way to structure a QueryExpression so that you could dynamically handle a unknown number of conditions? In Microsofts example below they use condition1, condition2 and so on... Again I'm wondering if there's a way to create a more reusable QueryExpression that can handle a variable number of conditions. I know the whole thing could be done in LINQ but I'm specifically

CRM 2011 GROUP and COUNT

♀尐吖头ヾ 提交于 2019-12-12 09:27:42
问题 I am trying to GROUP the CRM records that have the same "Owner" name and also get a count of the records for each GROUP. So I have a DLL that runs on a schedule and pulls the info down from CRM 2011. But I can't seem to get it to group and do a count of the records for each group. For example all the records with the Owner of "Bob" will say Bob you have X records. And any records with the Owner of "Ted" would say Ted you have X records, etc. For every owner there is. Any idea how to do this?

Querying Lookup Property Attribute with “Name” in Opportunity Entity - Dynamics CRM Online [duplicate]

对着背影说爱祢 提交于 2019-12-12 05:57:48
问题 This question already has answers here : Filtering Entities with type Entity Reference? (3 answers) Closed 2 years ago . I'm retrieving the results after connecting to the dynamics CRM as below: CrmServiceClient crmConn = new CrmServiceClient(ConfigurationManager.ConnectionStrings["default"].ConnectionString); IOrganizationService crmService = crmConn.OrganizationServiceProxy; QueryExpression query = new QueryExpression("opportunity"); query.Criteria = new FilterExpression(); query.Criteria

How to disable Skype and Lync telephony providers for Dynamics CRM completely

无人久伴 提交于 2019-12-12 05:57:08
问题 How can we disable the Skype and Lync providers completely from Dynamics CRM 2015 Online in either supported or unsupported way? What I have tried so far: - Created my own link on phone number fields - Tried to locate any jQuery event handlers attached to the element in the DOM - Assigned the blank event handler to Mscrm.ReadFormUtilities.handlePhoneNumberClick (Ref: http://crmtipoftheday.com/2014/05/15/how-to-block-click-to-call-in-crm/) Still when I click on the phone number the Dynamics