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

Forum Post: RE: Restarting workflows that have failed

$
0
0
Omkar - You can make it 'on-demand' by deactivating first. You can't make (most) changes to an activated workflow. Obviously, reactivate once you tick off the "on-demand" box. Let me know if you need further details on how to do this.

Forum Post: RE: How to hide Ribbon button in document associated grid

$
0
0
Hi, Did you ever find an answer to this? Thanks

Forum Post: RE: Deleting a Patch of a managed solution cause "There should be at least one metadata entity returned for Id" error

$
0
0
Thanks Adrian, but I need to because the patch causes entity records are not accessible

Blog Post: Quick-Tip: The Dangers of Dynamics 365 JavaScript and Clipboard Inheritance

$
0
0
Hi Everyone, I posted a quick video on my YouTube channel where I discuss the dangers of cutting and pasting code, mostly JavaScript, from blogs, Word documents or PDF files. This can sometimes lead to issues if the code contains what we call "Smart Quotes." Smart Quotes are not quotes but rather symbols. They are interpreted by the […]

Forum Post: RE: Connecting to XRMToolBox with Multi Factor Authentication

$
0
0
Thanks Ben! Did you somehow embed that in your connection string or is it used in place of the MFA prompt?

Forum Post: RE: Trigger an email when a BPF stage is active for certain time

$
0
0
I am using the same BPF for different scenarios. For every stage it will trigger the workflow and keep on hold till the wait time. Does this impact the performance. Can this be achieved using Enhanced SLA? any thoughts on it.

Blog Post: MVP is Not Just for Startups

$
0
0
One of the key goals for startups is to release their products quickly, which has lead to a minimum viable product (MVP) approach. Speed to market is so important that it's better to release a product before all the desired features are present so you can capture market share and use customer feedback to help you prioritize the introduction of new features. The challenge of the MVP approach is to determine what "viable" means. If you launch without sufficient features, your product may fail to attract any customers, or disappoint your first customers. But if you wait, competitors are likely to step in with their own offerings. The MVP concept is not only applicable to startups and commercial companies that are selling products, but also to internal software projects for companies, government agencies, and non-profits. Too often I have seen scope creep add to the feature list of a software product and delay launch dates for weeks or months. Using MVP principles, your project team can stay on schedule to ship a product by postponing features to after launch as long as they are not critical. This approach is consistent with Agile software development methodology which calls for a backlog of features and tasks, and a grooming process that refines the backlog for each iteration (sprint) that is conducted. Shipping a product quickly has many benefits. It starts the user feedback process in a more powerful way than during development or testing. It conserves the energy of executive sponsors, and allows you to create wins that boost confidence in the development team.

Forum Post: RE: How to loop on Create of a record to generate a child record

$
0
0
Hi Victor , Please check below reference - docs.microsoft.com/.../sample-execute-multiple-requests-transaction

Forum Post: display plus in subgrid

$
0
0
Hi, in some closed cases, the form is inactive, how can we still display plus sign in subgrid?

Forum Post: you do not have permission to access these records. Contact your Microsoft dynamics CRM administrator: outlook plugin

$
0
0
Hello, We're using Dynamics 2016 on Prem and our users have the Outlook Plugin for version 2016 of Outlook. One of our users keeps receiving this message when she attempts to set regarding to an account. this does not occur on all accounts but does occur on some. Does anyone have any ideas? I checked her user perms and everything looks fine. This is only happening to one user thus far. Thanks in advance for your help!

Forum Post: RE: display plus in subgrid

$
0
0
Hi, You can not add directly by navigating subgrid + icon of inactive records instead of that go to child records and create the child records using lookup reference of parent entity. You can see the child records in subgrid of parent case records. See here same topic discussed earlier-

Forum Post: RE: Dynamics 365 v9 OnPremise Upgrade Fail

$
0
0
I haven't heard anything back from my rep, but someone else on the other forum says he's heard from the Product Group that it's a confirmed bug - something about wrong versions of components being in the installer. Sounds like possibly a mixup between things that were supposed to go in 9.0.2 vs 8.2.3? Supposedly should have more info today, but they were targeting Tuesday patch releases for a fix.

Forum Post: RE: you do not have permission to access these records. Contact your Microsoft dynamics CRM administrator: outlook plugin

$
0
0
Hi, Definitely this is privilge issue , Can you please download the log and share here .

Forum Post: RE: Re-use code for different sub grid using the addOnLoad and removeOnLoad

$
0
0
I figure out my issue. I created an array. var optionsArray = ["sub_grid_1", "sub_grid_2", "sub_grid_3"]; optionsArray.forEach(function (opt) { Xrm.Page.getControl(opt).addOnLoad(addEventToGridRefresh); Xrm.Page.getControl(opt).removeOnLoad(removeEventToGridRefresh); }); And on the function I added a parameter called gridControl (I could have used any name). I guess the API already knows what grid control to pass in. function addEventToGridRefresh(gridControl) { // retrieve the subgrid //var grid = Xrm.Page.getControl(loadGridOption); var grid = gridControl; // if the subgrid still not available we try again after 2 second if (grid == null) { setTimeout(function () { addEventToGridRefresh(); }, 2000); return; } // add the function to the onRefresh event //Xrm.Page.getControl(loadGridOption).addOnLoad(addEventToGridRefresh); gridControl.addOnLoad(addEventToGridRefresh); var caseid = Xrm.Page.data.entity.getId().replace(/{/g, '').replace(/}/g, ''); callActionPlugin(caseid); setTimeout(function () { Xrm.Utility.openEntityForm("incident", caseid); }, 3000) }

Forum Post: RE: Reporting Error - Error occurred while getting the data source contents for the report.

$
0
0
Hi, Did you find the solution? We are also facing the same issue. Thanks, Arvinder

Blog Post: Error importing solutions - "The 'options' attribute is invalid"

$
0
0
I hope that this post will be short-lived, and few people need it, but I had an issue today in Dynamics 365 v9.1 (version 1710 (9.1.0.638) for completeness), where a solution file failed to import. The error occurred on initial parsing on the solution file. The error was 'This solution package cannot be imported because it contains invalid XML' , and the technical details were: Schema Validation Failed . Schema validation of the customizations.xml file within the compressed solution package file failed. To manually validate and edit the file, you can download the schema file here and use an XML editor that supports schema validation to get more details. The 'options' attribute is invalid - The value '' is invalid according to its datatype 'String' - The Pattern constraint failed This was followed by a snippet of a view XML definition, which gave a hint to the problem. It looks like Dynamics 365 has new attribute 'options' within the fetchXml schema. This is currently set to an empty string, but the solution importer fails to recognise it, hence the error. The affected part of the xml is: Fortunately, there's a relatively simple workaround to remove this attribute from a solutions file. Extract the solution xml Open customizations.xml Do a Find & Replace to remove all the following text: options="" Then recreate the .zip and it should import This affects any solution that contains a view (I haven't tested to see if it also applies to charts or reports), and isn't due to a version mismatch between organisations, as I could replicate it by exporting and importing into the same organisation

Forum Post: RE: Hierarchy View on Parent Child Cases

Forum Post: RE: Deleting a Patch of a managed solution cause "There should be at least one metadata entity returned for Id" error

$
0
0
Hi, "entity records are not accessible" - this error is not for solution components as solution does consists any records. So there should be some different issue ,might be permission related. So instead of delete managed patches better to resolve your actual issue. I would suggest please close this thread and post your actual issue in another thread, so that when people having same issue they can easily find correct thread with correct subject issue.

Forum Post: RE: display plus in subgrid

$
0
0
So it's manageable: 1. Create solution and put entity from your subgrid. 2. Open Ribbon Workbench and load solution from point 1. 3. Customize one of + buttons from the subgrid that is responsible for adding of associated records - customize command and remove "Disabled Form" rule. 4. Publish. Did that in one projects 2 weeks ago. Worked like a charm.

Forum Post: RE: JavaScript: reference from 1:N relationship QueueItems to Projects

$
0
0
Hello Ravi, Hopefully you have a little more patience with me. My CRM team decided to change the field "new_vpnapplicable" from a two-option to an option set, thus a new field "new_2vpnapplicable". I have spent all day troubleshooting this code with no success. The script fails with the general error "Internal Server Error." From debugger mode, the snippet below is from req:XMLHttpRequest: response: Hopefully, I've given enough information below for your professional eyes to see the problem. **** snippet response: "{\"error\":{\"code\":\"0x0\",\"message\":\"Object reference not set to an instance of an object.\",\"innererror\":{\"message\":\"Object reference not set to an instance of an object.\",\"type\":\"System.NullReferenceException\",\"stacktrace\":\" at Microsoft.Crm.Extensibility.OData.CrmODataUtilities.ValidatePatchInputProperties(EdmEntityObject entityDelta, CrmODataExecutionContext crmODataExecutionContext)\\r\\n at Microsoft.Crm.Extensibility.OData.EntityController.PatchEntityImplementation(String& entityName, String key, EdmEntityObject entityDelta)\\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()\"}}}" ​​*** snippet end Following your suggestion, I used CRM Rest Builder: ***** Created from CRM Rest Builder ********* var req = new XMLHttpRequest(); req.open("GET", Xrm.Page.context.getClientUrl() + "/api/data/v9.1/msdyn_projects(00000000-0000-0000-0000-000000000000)?$select=new_2vpnapplicable&$expand=msdyn_project_QueueItems($select=new_2vpnapplicable)", true); req.setRequestHeader("OData-MaxVersion", "4.0"); req.setRequestHeader("OData-Version", "4.0"); req.setRequestHeader("Accept", "application/json"); req.setRequestHeader("Content-Type", "application/json; charset=utf-8"); req.setRequestHeader("Prefer", "odata.include-annotations=\"*\""); req.onreadystatechange = function() { if (this.readyState === 4) { req.onreadystatechange = null; if (this.status === 200) { var result = JSON.parse(this.response); var new_2vpnapplicable = result["new_2vpnapplicable"]; var new_2vpnapplicable_formatted = result["new_2vpnapplicable@OData.Community.Display.V1.FormattedValue"]; for (var a = 0; a < result.msdyn_project_QueueItems.length; a++) { var msdyn_project_QueueItems_new_2vpnapplicable = result.msdyn_project_QueueItems[a]["new_2vpnapplicable"]; var msdyn_project_QueueItems_new_2vpnapplicable_formatted = result.msdyn_project_QueueItems[a]["new_2vpnapplicable@OData.Community.Display.V1.FormattedValue"]; } } else { Xrm.Utility.alertDialog(this.statusText); } } }; req.send(); The following is the script that I derived after many failed attempts: **** Begin of script function VPNApplicable_Opt() { debugger; var fieldValueToCopy = Xrm.Page.getAttribute("new_2vpnapplicable").getValue(); var lookupObj = Xrm.Page.getAttribute("objectid").getValue(); var newid = lookupObj[0].id.slice(1, -1); var entity_p = {}; entity_p.new_2vpnapplicable = fieldValueToCopy; var req = new XMLHttpRequest(); var context = Xrm.Utility.getGlobalContext(); req.open("PATCH", Xrm.Page.context.getClientUrl() + "/api/data/v9.0/msdyn_projects(" + newid + ")?$select=new_2vpnapplicable", true); // console.log(url); // req.open("GET", url, true); req.setRequestHeader("OData-MaxVersion", "4.0"); req.setRequestHeader("OData-Version", "4.0"); req.setRequestHeader("Accept", "application/json"); req.setRequestHeader("Content-Type", "application/json; charset=utf-8"); req.onreadystatechange = function () { if (this.readyState === 4) { req.onreadystatechange = null; if (this.status === 200) { var result = JSON.parse(this.response); var new_2vpnapplicable = result["new_2vpnapplicable"]; var new_2vpnapplicable_formatted = result["new_2vpnapplicable@OData.Community.Display.V1.FormattedValue"]; //Xrm.Page.getAttribute("new_2vpnapplicable").setValue(fieldValueToCopy ); //set the lookupObject value finally // I entered the following code to accommodate the code created by CRM Rest Builder for (var a = 0; a < result.msdyn_project_QueueItems.length; a++) { if (fieldValueToCopy === result.msdyn_project_QueueItems[a]["new_2vpnapplicable"]) { var msdyn_project_QueueItems_new_2vpnapplicable = result.msdyn_project_QueueItems[a]["new_2vpnapplicable"]; Xrm.Page.getAttribute("msdyn_project_QueueItems_new_2vpnapplicable").setValue(fieldValueToCopy); //set the lookupObject value finally } } } else { Xrm.Utility.alertDialog(this.statusText); } } }; req.send(); } ****** End of script I tested the link and got the desired results: *** link results @odata.context " xxxxxxxxxxxxxxxx.crm.dynamics.com/.../v9.0 $metadata#msdyn_projects(new_2vpnapplicable)/$entity" @odata.etag "W/\"17715491\"" new_2vpnapplicable 100000001 msdyn_projectid "089cc620-95c8-e711-8119-e0071b6a5d41" **** end link
Viewing all 71679 articles
Browse latest View live


Latest Images

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