Quantcast
Channel: Microsoft Dynamics CRM
Viewing all 137182 articles
Browse latest View live

Forum Post: RE: Add Form properties -> parameters programmatically through c# or Js

$
0
0
Hello, To add those parameters programmatically you will have to download the form definition (that is just huge Xml), parse it, find the section for form parameters, add it inside, push the form definition back to CE. It's doable but I'm curious - why do you need it?

Forum Post: RE: how can i prevent queue item to re-picked by different users?

$
0
0
Thank you Evgeniy for the idea and helpful resources. This has worked out really well so far. The default function still runs regardless of how the custom function executes so I'm working on that last bit before I deploy. I haven't had to combine default and custom functions on a command before so I'm learning that bit.

Forum Post: RE: Deleting entity with dependencies

$
0
0
Deleting entity with dependencies --- Go to default solution, Settings - Customizations - customize the system & publish all from there. Else If you have backup of this sitemap or from different environment - you can import it & check/clear the dependency & sort out. This worked for me!!! Thank you!

Forum Post: RE: Using references parameters in web api batch request (CRM 8.2 on prem)

$
0
0
I am having the same issue with v9.1 online. I am using the example provided by microsoft here: https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/execute-batch-operations-using-web-api#reference-uris-in-an-operation Looks like Reference URIs do not work. Anyone else had any luck? My error message is different but as soon as i remove the $1 and $2 and replace with hardcoded data the batch request succeeds. {"error":{"code":"0x0","message":"An error occurred while validating input parameters: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.\r\n at System.ThrowHelper.ThrowKeyNotFoundException()\r\n at System.Collections.Generic.Dictionary`2.get_Item(TKey key)\r\n at Microsoft.Crm.Extensibility.CrmODataEntityDeserializer.ApplyNestedProperty(Object entityResource, ODataNestedResourceInfoWrapper navigationLinkWrapper, IEdmStructuredTypeReference entityType, ODataDeserializerContext readContext)\r\n at System.Web.OData.Formatter.Deserialization.ODataResourceDeserializer.ApplyNestedProperties(Object resource, ODataResourceWrapper resourceWrapper, IEdmStructuredTypeReference structuredType, ODataDeserializerContext readContext)\r\n at System.Web.OData.Formatter.Deserialization.ODataResourceDeserializer.ReadResource(ODataResourceWrapper resourceWrapper, IEdmStructuredTypeReference structuredType, ODataDeserializerContext readContext)\r\n at System.Web.OData.Formatter.ODataMediaTypeFormatter.ReadFromStream(Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger)","innererror":{"message":"An error occurred while validating input parameters: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.\r\n at System.ThrowHelper.ThrowKeyNotFoundException()\r\n at System.Collections.Generic.Dictionary`2.get_Item(TKey key)\r\n at Microsoft.Crm.Extensibility.CrmODataEntityDeserializer.ApplyNestedProperty(Object entityResource, ODataNestedResourceInfoWrapper navigationLinkWrapper, IEdmStructuredTypeReference entityType, ODataDeserializerContext readContext)\r\n at System.Web.OData.Formatter.Deserialization.ODataResourceDeserializer.ApplyNestedProperties(Object resource, ODataResourceWrapper resourceWrapper, IEdmStructuredTypeReference structuredType, ODataDeserializerContext readContext)\r\n at System.Web.OData.Formatter.Deserialization.ODataResourceDeserializer.ReadResource(ODataResourceWrapper resourceWrapper, IEdmStructuredTypeReference structuredType, ODataDeserializerContext readContext)\r\n at System.Web.OData.Formatter.ODataMediaTypeFormatter.ReadFromStream(Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger)","type":"Microsoft.Crm.CrmHttpException","stacktrace":" at Microsoft.Crm.Extensibility.OData.CrmODataUtilities.ValidateInputParameters(ModelStateDictionary controllerModelState)\r\n at Microsoft.Crm.Extensibility.OData.EntityController.PostEntitySetImplementation(String& entitySetName, EdmEntityObject entityObject)\r\n at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties)\r\n at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func)\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10. b__9(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker. d__0.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult. d__2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher. d__1.MoveNext()"}}}

Blog Post: Microsoft Dynamics Partner Roundup: Construction win; Partnership; Acquisitions; Connectors

$
0
0
In this week's Microsoft Dynamics partner news roundup: PowerObjects to partner with Barratt Developments PLC on Dynamics 365 implementation Two expert Microsoft Dynamics CRM/D365 partners join forces The Resource Group team joins Armanino RoboMQ announces availability of D365 and Business Central API integration on Connect iPaaS PowerObjects to partner with Barratt Developments PLC on Dynamics 365 implementation Barratt Homes and PowerObjects , an HCL Technologies Company, are teaming up on a CRM replatform project. Barratt is moving to Dynamics 365 for Customer Engagement Online to improve productivity, simplify the user experience, and deliver a consistent approach to customer engagement across its 27 regional divisions. D365CE will allow the company to modernize the workplace and improve collaboration. D365CE's integration with Office 365, Azure, and the Power Platform is intended to enable Barrett to develop a long-term roadmap to improve business processes elsewhere in the company. "We took the time to agree to the ways of working with the Barratt team, which sets us up well for a successful first phase, and look forward to helping Barratt explore additional opportunities to leverage the Microsoft Business Applications platform long-term," stated Greg Harradence, sales director, PowerObjects. "We see a great opportunity in the U.K. construction market for digital transformation and have plans to be a driving force for change in the sector." Two expert Dynamics CRM and D365 partners join forces .... Read More

Forum Post: RE: Xrm.Page.getControl('WebResource').getObject().contentWindow.document Error in Unified Interface

$
0
0
Not only that, if the web resource is in another tab, until the tab is clicked/loaded in UCI - formContext.getControl("WebResourceName").getObject() returns null. github.com/.../554

Forum Post: Can a workflow update a contract record when the contract record is already in an Active Status (read only)

$
0
0
Hello, I have a workflow that is based on the contract record. On the record there is a renewal notification field and if the renewal notification value is 60 days then it is supposed to update the Contract record and set the Renewal Notification date to 2 months prior to contract end date. However, this fails because the contract is already in a active status so it is read only. How can make this work? Thank you.

Forum Post: Prevent Two-Option\Boolean field from changing values in onChange Event

$
0
0
I have a boolean field on my order form that is a two-option control\boolean field. When a user clicks the control it toggles between yes/no. When the user clicks, I want to be able to conditionally cancel the event and the value does NOT change. There doesn't seem to be a way to do this in CRM even though you can in JavaScript? My only idea is to remove the default control and replace it with a webresource that I can more easily control, but I want to see if there is a built in way to do this before I take this approach. Thank You, Coty

Forum Post: RE: Why am I receiving WebAPI response status as 204 (No Content)

$
0
0
This is a known issue for v8.2 on-premise. Upgrading to v9 on-premise will resolve the issue. To work-around it in v8.2 you can recycle the app pool.

Forum Post: RE: Can a workflow update a contract record when the contract record is already in an Active Status (read only)

$
0
0
Hello, I'm afraid that's not doable. As a workaround you can try do following: 1. Create a custom entity to store any information that you need to edit that is related to Contract. 2. Create a lookup on Contract that will reference that entity. 3. On Create of Contract create that custom record and populate lookup of the Contract. After that you will be able to manipulate the information in that record from Contract's workflow in the way you need.

Forum Post: Retrieve plugin not starting (custom data provider, virtual entity)?

$
0
0
I have successfully setup the provider, the data source, the entities and the plugins. ITracingService is also integrated in the plugins in order to keep track of them. However, Retrieve plugin seems to not execute at all. RetrieveAll works perfectly, all of the data appears, it outputs information in the trace log, but upon opening specific record Retrieve does not start (no sight of it in the trace log, no erros - nothing)... I was wondering how exactly am I supposed to trigger it? Also, this is the Retrieve plugin:

Forum Post: RE: Add Form properties -> parameters programmatically through c# or Js

$
0
0
Dear Andrew Butenko, Thanks for the response. Why do I need this functionality ? Ans:- Requirement is "on target entity on which I will be setting the parameters is not fixed ,it can be dynamic " which is why we are following this approach. Do you have any sample or reference link where I can understand the process to download the form definition. Thanks in advance . Regards Ayaz

Forum Post: RE: Retrieve plugin not starting (custom data provider, virtual entity)?

$
0
0
Hi, The Retrieve message is triggered when opening up an entity form or when an entity is being accessed using the Retrieve operation in one of the service, so make sure you registered plugins steps in both retrieve and retrieve multiple message.

Forum Post: RE: Add Form properties -> parameters programmatically through c# or Js

$
0
0
Ayaz, Don't get me wrong but I don't think that the outcome will not worth time that you will invest to implement it but it's up to you to decide to implement it or not. I would say it's much easier to add those parameters to form manually. Also I don't have any examples in mind that I can share because your requirement is really rare.

Forum Post: RE: Add Form properties -> parameters programmatically through c# or Js

$
0
0
Andrew , i am fully agree with you , i am not sure at the moment if we can go with any other approach but surely it will be good to give a try. Meanwhile i just got one blog , which demonstration the process of updating the FormXML from C#, i am putting the link down below so that it can be helpful for the person in need. community.dynamics.com/.../hardcore-crm-using-c-to-modify-an-entity-forms Thanks for your valuable suggestion, really appreciate that. Regards Ayaz

Forum Post: Dynamics CRM version 8.2 or 9 On-premise installation on windows 10 pro - developer's PC

$
0
0
I did verified online down loads system requirements , but wants to double check with any one if it is possible? Any one know if Dynamics CRM 8.2 or 9 can be installed on windows 10? We are thinking for some developers to give them their local environments for CRM. Developers only have windows 10 Pro.

Forum Post: RE: Prevent Two-Option\Boolean field from changing values in onChange Event

$
0
0
Hi, Unfortunately you can't do this any supported way , even if you trigger a JS function to set the same value using JS, in that case you will never change the value of the field when actually you need to change. I think the best way to train user accordingly ,otherwise go with web resource concept which you thought.

Forum Post: Changing CRM Domain to Match Company domain

$
0
0
Good afternoon, The company I work for has a CRM set up with a lot of customer information and specialized templates. We need to change our domain because there is "tech" at the back of the url and for our CRM to link with other microsoft products we need the domains to match. What options do we have and how can we fix this so we don't lose any of our information and so that our CRM isn't down at all.

Forum Post: RE: Dynamics CRM version 8.2 or 9 On-premise installation on windows 10 pro - developer's PC

$
0
0
Hello, I'm afraid it's not possible. You will need Windows Server. Here are software requirements - docs.microsoft.com/.../software-requirements-for-microsoft-dynamics-365-server

Forum Post: RE: Retrieve plugin not starting (custom data provider, virtual entity)?

$
0
0
Hello, I have registered and set both plugins...
Viewing all 137182 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>