dynamics-crm-online

How to setup an MVC website to use the same SSO as CRM Online, so that it can be IFramed?

£可爱£侵袭症+ 提交于 2019-12-05 19:03:10
Currently using CRM Online w/ a Single Sign On for AD Authentication. I need to create an Asp.Net MVC site that I iFrame into CRM, but I want it to utilize the same SSO so if the user is "signed into" CRM, the iFrame'd page will utilize the same credentials, and not require the user to sign in. How do I set this up? You may find the following article useful. Implement single sign-on from an ASPX webpage or IFRAME . The typical use of this capability is to write a webpage that is displayed in an inline frame in the Microsoft Dynamics CRM web application user interface. That webpage performs its

Missing trace logs in custom workflow activity for Real-Time workflow

断了今生、忘了曾经 提交于 2019-12-05 11:57:50
I've written a custom workflow activity against CRM 2013. You don't need to understand what it does. The problem I have is that despite instantiating the ITracingService , any tracing content that I generate using the Trace(...) method is obfuscated at runtime for real-time workflows only . In other words, if I run my workflow asynchronously and (deliberately) throw an Exception, I get to see the trace log in the corresponding system job record. If I simply switch the workflow to be "real-time" (synchronous) then I still get an exception and I still get any custom exception text, but of course

Microsoft Dynamics Crm Sdk - Is this query possible?

为君一笑 提交于 2019-12-05 02:21:53
问题 I am exploring the "QueryExpression" mechanism used to Retrieve data via the Dynamics CRM SDK, and I think I have hit a problem / limitiation with the SDK, but I would like to ascertain that for certain.. Given this desired SQL: Select C.firstname, C.lastname FROM contact C INNER JOIN customeraddress A on C.contactid = A.parentid WHERE ((C.firstname = 'Max' AND C.lastname = 'Planck') OR (C.firstname = 'Albert' AND C.lastname = 'Einstein')) OR A.Line1 = 'The secret moonbase' I cannot appear to

Creating Post with Dynamics CRM Web API

笑着哭i 提交于 2019-12-04 23:22:00
问题 A Post entity (https://msdn.microsoft.com/en-us/library/mt607553.aspx) cannot be created using Dynamics CRM 2016 Online Web API. This payload should create a post on POST /api/data/v8.1/posts { "text": "Test Single Post", "source": 1, "type": 7 } (source 1 is an auto post, type 7 is a status post) But it returns: { "error": { "code":"", "message":"An unexpected error occurred.", "innererror" { "message":"An unexpected error occurred..." } } } Submitting the same payload with only "text" fails

Multilingual solution

时光毁灭记忆、已成空白 提交于 2019-12-04 18:33:41
Two questions, hopefully with similar answers. I'll be releasing a JavaScript package in my solution where the error messages are to be displayed. The problems is that I'll be targeting German, English and French. Possibly, also a fourth language TBD. What would be the nicest way to resolve this? The label names should definitely be localized. Is there a built-in approach to that in CRM 2011? Like a resource table or something like that? My current solution for (1) is to keep an extra web resource with the strings and distributing a different file for each language. I may rebuild it and

Microsoft Dynamics Crm Sdk - Is this query possible?

徘徊边缘 提交于 2019-12-04 13:38:51
I am exploring the "QueryExpression" mechanism used to Retrieve data via the Dynamics CRM SDK, and I think I have hit a problem / limitiation with the SDK, but I would like to ascertain that for certain.. Given this desired SQL: Select C.firstname, C.lastname FROM contact C INNER JOIN customeraddress A on C.contactid = A.parentid WHERE ((C.firstname = 'Max' AND C.lastname = 'Planck') OR (C.firstname = 'Albert' AND C.lastname = 'Einstein')) OR A.Line1 = 'The secret moonbase' I cannot appear to translate the filter criteria above (the where clause) into the equivalent SDK conditions /

How to fetch more than 5000 entities from CRM

余生长醉 提交于 2019-12-04 03:49:06
I'm querying MS Dynamics CRM Online from my console app: public EntityCollection GetEntities(string entityName) { IOrganizationService proxy = ServerConnection.GetOrganizationProxy(); string request = string.Format("<fetch mapping ='logical'><entity name = '{0}'></entity></fetch>", entityName); FetchExpression expression = new FetchExpression(request); var mult = proxy.RetrieveMultiple(expression); return mult; } This code only returns maximum of 5000 elements in mult.Entities . I know there are more entities in CRM. How to retrieve all entites? You can only get back 5000 records at a time

How to access controls from a console

寵の児 提交于 2019-12-03 16:36:49
I tried to execute the following command from the console. var subject = Xrm.Page.ui.controls.get("subject"); That's the exact syntax I'm using in the web resource that I'm plugging in to CRM. However, I only got an error message saying that "unable to get property 'controls' of undefined or null reference". I do understand the message. What I want to know is two-fold. What syntax will work from the console ( F12 ) to refer to the stuff on the screen? Why doesn't it work the way I did? Where doesn ui come from? I've checked that I can refer to both Xrm and Crm.Page but apparently ui is null

Creating Post with Dynamics CRM Web API

╄→尐↘猪︶ㄣ 提交于 2019-12-03 14:18:06
A Post entity ( https://msdn.microsoft.com/en-us/library/mt607553.aspx ) cannot be created using Dynamics CRM 2016 Online Web API. This payload should create a post on POST /api/data/v8.1/posts { "text": "Test Single Post", "source": 1, "type": 7 } (source 1 is an auto post, type 7 is a status post) But it returns: { "error": { "code":"", "message":"An unexpected error occurred.", "innererror" { "message":"An unexpected error occurred..." } } } Submitting the same payload with only "text" fails too. Notice that the Post entity does not have single-valued navigation properties ( https://msdn

Installing a WIF Runtime for hosting a .NET application in Windows Azure

丶灬走出姿态 提交于 2019-12-02 12:42:18
问题 I developed a Custom application that is able to consume the CRM Web services and perform Windows Live Id authentication, create, read and update operation in the CRM from the custom .NET page. It runs absolutely fine when I debug the application in Visual Studio 2010 but when I deploy the same application and try to authenticate it shows the following error: "Could not load file or assembly 'Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of