Questions tagged [dynamics-365]

0

votes
0

answer
5

Views

Set observe business closures on the user weekly calendar calendar via plugin

I'm facing a problem with the creation of user calendar via plugin. So, could I set the option "Observe" on the 'Business Closures' weekly calendar field via C# plugin? I am already able to create the calendar and set all other options, but for some reason, this 'Business Closures' field does not ex...
Thiago Lima
0

votes
0

answer
5

Views

Dynamics 365 FF&O on prem installation error Failed to update “database ”OrchestratorData" because the database is read-only

i am facing issue while configure SandBox environment Message could not be processed. Message Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage Detail System.Data.Entity.Infrastructure.DbUpdateException: An error occurred while updating the entries. See the inner exception for details. ---> S...
Yazeed Al-faqeeh
0

votes
0

answer
5

Views

DISTINCT based on multiple columns

I have a groupby in linq that looks like this: var grouped = from all in Allergies.Entities.AsEnumerable() group (Guid)all.GetAttributeValue("allergy.new_foodsensitivityid").Value by new { group = all.GetAttributeValue("new_group"), time = all.GetAttributeValue("new_time"), desc = all.GetAttributeVa...
Alan Judi
1

votes
1

answer
1.1k

Views

How to get Process Finish Button event in Dynamics CRM?

I am using Dynamics 365 online instance to integrate sales process. I have one condition where I need to change the Probability field value to 100 when user clicks on Finish button in Close Process Stage. I have done some research and found that (OnProcessStatusChange event) can help to get business...
Cyber
1

votes
1

answer
339

Views

Dynamics CRM/365 SDK and .NET Standard / .NET Core

Do you know are there any plans from product group to rewrite CRM SDK libraries into .NET Core or probably just make them .NET Standard compliant? More and more systems and components treats .NET Standard as a standard :) I know that we may make the current version (9.x.x) work "somehow" with the ....
Piotr Gaszewski
1

votes
1

answer
24

Views

What is the easiest way to restore D365's code base to original?

How do you restore the code base to fresh installation? I am having some build/sync issues and I would like to undo all my code changes and start over.
prodev42
0

votes
0

answer
5

Views

MS Dynamics CRM 365 - import data from Excel files

I'm getting into MS Dynamics CRM 365 programming, and have been dealing with data imports of lookup / reference entities. I created a new entity with just the default Name column, stored and published it, and then went to look at in CRM. From the default "main" view, I choose the "Data Import" optio...
marc_s
0

votes
0

answer
14

Views

Left outer join in linq to entites on two entitycollections:

I have two entitycollections that have 3 common attributes. The first entitycollection is called Replacements with attributes of new_time, new_serving, new_desc and other attributes. I have a second entitycollection called NoReplacements which has a bunch of attributes including new_time, new_servin...
Alan Judi
4

votes
1

answer
74

Views

Error : Tenant authorize not found. This may happen if there are no active subscriptions for the tenant

I have written the following code to acquire token for CRM. class Program { private const string username = "[email protected]"; private const string password = "Pa$$w0rd"; private const string serviceURL = "https://azuretraining112.crm8.dynamics.com"; private const string appli...
Richa Tibrewal
2

votes
2

answer
144

Views

Using Dynamics CRM SDK with .NET Core

Is there a way to connect to Dynamics CRM 365 from a .NET Core application via the Dynamics SDK? Or should I use the Web Api? I've read it could be possible, but when I reference the SDK from my .NET Core Class Library and try to connect I get the error: System.IO.FileNotFoundException: 'Could not l...
manipurea
0

votes
1

answer
13

Views

System.OutOfMemoryException when merging Newtonsoft.Jsons

I am creating a plugin to call a webservice. I need to serialize and deserialize the Json object. So, I need Newtonsoft.Json. I am trying to merge the dll from NewtonSoft.json and my application dll using ILMerge.MSBuild.Task and ILMerge in Visual Studio 2015. I get the error below: I looked for sol...
sabin
2

votes
2

answer
1.4k

Views

Chain Of Command (method wrapping) in D365FO results in 'Object is not set to an instance of an object'

I am trying to use the new 'Chain Of Command' feature in D365FO by extending CustTable. We need to check if a value has changed on the update method, before we log it in a new table. [ExtensionOf(tableStr(CustTable))] final class CustTable_Extension { void update(boolean _updateSmmBusRelTable = tr...
AinsleyJ
2

votes
1

answer
33

Views

Dynamics 365 - Split Solutions

We have a unmanaged CustomSolution in our DEV-Environment which contains all components for deployment. Usually we export and deploy this solution in a managed environment. Our customer now wants to split this CustomSolution into 5 different smaller solutions. The process would be: Creating these 5...
Sandro Colletti
1

votes
2

answer
853

Views

Dynamics CRM - multiple plugins on same event, stage with same rank - Order of Execution?

I came across an interview question for which I got different answers from friends and peers so I thought I'd ask here. We generally use the plugin ranking for defining the order in which different plugins execute in order to overcome the dependency issues. Question If an entity has multiple plugi...
Rajesh
1

votes
4

answer
712

Views

Authenticate with Dynamics 365 from an Azure Function

Scenario I have a Dynamics 365 v9 organisation hosted online. I have a set of Azure Functions hosted in an Azure Function App on a different tenant to my Dynamics organisation. I've created web hooks using the Dynamics Plugin Registration Tool, which at certain events (such as when a Contact is crea...
Dave Clark
4

votes
2

answer
784

Views

'An undeclared property' when trying to create record via Web API

I am getting an error which I just cannot seem to debug. I am trying to create a custom activity entity via custom HTML/JavaScript web resource. The user clicks a button and the following params: var params = { '[email protected]': '/rob_faqs(guid-here)', 'rob_source': 180840000, 'subject': 'Sig...
glosrob
1

votes
2

answer
1.1k

Views

Error on dbo.DependencyBase when Importing from Dynamics CRM 2016 to Dynamics 365

I'm receiving this error when importing an unmanaged solution from Dynamics CRM 2016 to a clean instance of Dynamics 365. There are no other details so I don't know which specific entity is having a problem Cannot insert duplicate key row in object 'dbo.DependencyBase' with unique index 'ndx_UniqueD...
Gildon Opao
3

votes
0

answer
193

Views

Set new object property with Dynamics 365 using Alexa CRM toolkit

I'm using AlexaCRM Toolkit for Dynamics 365, I added a new field for the entity lead (I created a custom field called new_wordpressid) so I can do the mapping with the lead created in wordpress and the lead in Dynamics 365, when I want to create a new lead using the following code lines: $lead= $ser...
Mssef
3

votes
2

answer
165

Views

Xrm.Navigation is undefined

I want to open a modal dialog box, and I write: var addParams = "entityid=" + Xrm.Page.data.entity.getId() + "&entityName=" + Xrm.Page.data.entity.getEntityName(); var webresourceurl = "/webresources/pdfflr_selectorpage.html?Data=" + encodeURIComponent(addParams); var parameters = {}; parameters["w...
1

votes
2

answer
114

Views

Dynamics 365 for Operations trial instance: Write custom code

How can I write plugins, workflows or JS for trial instance of Dynamics 365 for Operations using Visual Studio, like we do for MS Dynamics CRM online instance?
fawad jan
3

votes
0

answer
60

Views

Open a custom web-application within Dynamics-365 Online using single sign-on

I have been working on something, wherein I have to try and open an existing Office 365 based web-application within Dynamics 365 portal (online). Login into the web-application using the single sign-on provided by Office 365 or the authentication token of the currently logged in user. To be precis...
sanktify
1

votes
3

answer
1.9k

Views

Display SharePoint Documents Sub Grid on the MS Dynamics 365 form

I have a requirement to display SharePoint Documents Sub Grid on the MS crm Dynamics 365 Custom Entity Form. Can anyone let me know, how to achieve this using Supported or unsupported way?
marcus
2

votes
1

answer
403

Views

How to do CRUD operations in Microsoft Dynamics CRM using html page

I want to do CRUD operations through HTML page without adding that page in Dynamics CRM's webresource. Using C# we can connect with dynamics crm and can do get/add/edit/delete operations using CRM's dlls but I don't know the way of doing same from html page which is independent from CRM's webresourc...
chhaya_patel
1

votes
2

answer
285

Views

How to Modify value of optionset by code C#?

Do you know if there is a solution to modify the value (not a label) of an option in optionset by code C#. for example, I have this Option: (Label: OldLabel, Value: OldValue) and I want this: (Label: OldLabel, Value: NewValue) I tried by the following code, but is not working: UpdateOptionValueReque...
marcus
14

votes
1

answer
1k

Views

Authorize WebApp to ADFS in order to access Dynamics CRM Web API

I have a web application that needs to speak with Dynamic CRM 365 Web API. The Dynamic CRM is configured as a Relying Party on ADFS. The server is Windows Server 2016 and everything is on premise and not on Azure. What i did to acquire a valid token are the following: 1) In ADFS went to Application...
Ricky Stam
1

votes
1

answer
153

Views

Dynamics CRM: Currency field on the contract is locked (disabled) and cannot be unlocked

Microsoft Dynamics 365 Version 1612 (8.2.2.1862) (DB 8.2.2.1862) online I want to be able to set the Currency field on the Contract. However, on the main Contract form the field is locked and cannot be unlocked. In the form editor the field is not disabled but the padlock appears next to it. Runnin...
Pencho Ilchev
2

votes
1

answer
877

Views

Realtime Workflow in Dynamics 365 Not Triggering when Record is Deleted

I'm creating a Realtime Workflow in Dynamics 365 that is set to trigger on both "Before Record Status Changes" as well as "Before Record Is Deleted". I can confirm that it is firing and working well for the Record Status Change case, but for some reason it's not firing when I delete the same record...
Cailean
1

votes
3

answer
55

Views

Crm 2016 Create option set indicates all entities

I have created an entity, and i want a option for show all entities in create form, how can i do this? Something like option set in process form:
1

votes
2

answer
65

Views

Why won't records delete?

I wrote a plugin that gets the GUID IDs through fetchXML and uses Batch delete to delete the records in batches of 1000. I debugged the plugin and it shows that the plugin executes all the way through to service.RetrieveMultiple(new FetchExpression(fetchxml)), however, the fetched records are not g...
Alan Judi
1

votes
2

answer
159

Views

System.NullReferenceException: Object not set to an instance of an object?

I am writing a plugin that deletes records between two dates when a contract is cancelled... The records to be deleted are from the cancellation date to the end of the contract. Here is the code I am using: using System; using System.Linq; using System.ServiceModel; using Microsoft.Xrm.Sdk; using M...
Alan Judi
1

votes
1

answer
83

Views

Use CSS in D365 FO HTML Viewer

I have a form, that holds (beside other elements) a HTML Viewer. This viewer gets input by calling HtmlViewer.parmHtml('theCodeBelow'); Sadly, the control ignores the CSS being part of the string. All I get to see is the plain HTML. Is there a way to view HTML and CSS in D365 FO inside of a form? Fo...
Venturion
2

votes
1

answer
6.1k

Views

CrmServiceClient is always returning null Organization Service

I've got the following code to connect to Dynamics 365 Online organization. It throws a null reference exception on orgService.Execute(new WhoAmIRequest()); and error log is below the code. I've tried this on two machines with different console apps. I've tried both the 8.2 and 8.0 SDK DLLs. If I re...
Nicknow
5

votes
4

answer
528

Views

Using Xrm.WebApi method in Web Resource opened in a new window

I have opened an HTML web resource in a new window using: Xrm.Navigation.openWebResource(webResource, windowOptions, data); This is an HTML web resource and it is loading the ClientObject in the head then I have some JavaScript that is trying to retrieve a Contact var contactId = "8553DA63-11C9-E711...
jasonscript
2

votes
1

answer
178

Views

Dynamics CRM Field Service: Unable to approve time off requests

I'm looking at the Field Service module of Dynamics 365. I'm trying to block out an employee's time on the schedule board by creating a time off request. I can create the time off request, but as soon as the object is saved, the system automatically deactivates it. The system will reported success w...
Alex Eisenhart
2

votes
2

answer
1.4k

Views

AX 365 create Product with x++ code

In AX 2012 we used to create Product and Product master easily through coding by use of some classes like: ecoresProductService = EcoResProductService::construct(); ecoResEcoResProduct = new EcoResEcoResProduct(); distintMaster = new EcoResEcoResProduct_Product_Distinct(); These classes d...
Yasir
2

votes
0

answer
111

Views

Hide Dynamics 365 GUID at the end of the folders name in sharepoint online

I am currently working on how to hide the GUID from the folder name in Sharepoint online. When I create a new account/customer in Dynamics 365 and the account is saved in Sharepoint online the folder will have a name like (Accountname_GUIDname), but I don't want the GUID to be displayed. I know Dyn...
ErikLm
2

votes
1

answer
83

Views

How do I query an n:n relationship from MS Dynamics CRM via SOAP?

I need to add some linked entities to a SOAP query on a Dynamics 365 CRM (the version it reports is Version 1612 (8.2.1.176) (DB 8.2.1.176)). The client implementation is in PHP. With some trial and error and a lot of examples, I have been able to put together something like the following request bo...
Christoph Burschka
2

votes
1

answer
253

Views

Dynamics 365 and Box integration

We are integrating Dynamics 365 Online and Box to use Box as a content layer for CRM opportunity documents. The trust settings in Dynamics 365 does not allow API calls to Box. The setting needed for that is medium. How do I change trust settings in Dynamics 365 or is it even allowed?
J. Skinner
2

votes
1

answer
143

Views

How to find a specific class in Dynamics 365?

I'm new on Microsoft Dynamics 365 programming and I've a question that in fact it's consuming me a lot! Well, I want to make a little customization in code at Fixed Asset Module. I'm at FixedAsset -> Fixed Assets Jounal, but I don't know how to find in Visual Studio, at the AOT (Application Object...
Hudson Lima
2

votes
1

answer
194

Views

Restrict user access from “main area” Dynamics 365 on prem

We've created a new "App" which is the first app so far in our solution. The idea is that a group of users will have access to this app only and they will no longer have access to the "main area" of the application. Some of the forms for certain entities will look differently than the others etc. (W...
Toby Fieldgroove

View additional questions