dynamics-crm-online

CRM 2011: Getting entity with Javascript

帅比萌擦擦* 提交于 2019-11-29 21:54:24
I am working on some CRM 2011 Online customisations and I need to get an entity using javascript. The entity I need will be based on the ID value of another field (a Contact entity) - this Contact ID I can get fine. The entity I want is a custom entity. There may be multiple matches based on the Contact ID so I just want to get the first one in the list (order not important) So far I have looked into a few ways to do this... OData - I couldn't find enough examples on this as to what query expressions I can create, also I don't know if/how to make this work for custom entities FetchXML - I can

How to authenticate without prompt to CRM Dynamics Online webservices with ADAL, NetStandard, and Azure AD

梦想的初衷 提交于 2019-11-29 12:05:18
I'm currently trying to create a Xamarin App in order to get some info from a Dynamics 365 online instance. The code that authenticate with AD and access the CRM api is deported in a NetStandard (v1.6) Library. I use the following NuGets : Microsoft.IdentityModel.Clients.ActiveDirectory (3.13.9) NETStandard.Library (1.6.1) I followed the following tutorial in order to link AD with my Dynamics instance : https://nishantrana.me/2016/11/13/register-a-dynamics-365-app-with-azure-active-directory/ Here is my ActiveDirectory helper : public static class ADHelper { public async static Task

How to get formContext in Ribbon command of Dynamics 365 9.0

ε祈祈猫儿з 提交于 2019-11-29 07:07:43
问题 In Dynamics 365 9.0 there was quite a big change regarding how to access form attributes and controls - instead of Xrm.Page namespace, we should pass executionContext to a function and get formContext using getFormContext() function. This is working fine and I had never a problem with using this approach. However I did not figured out yet how to properly access formContext in functions that are called from Ribbon. The documentation says that this should be really straightforward: https://docs

How to authenticate without prompt to CRM Dynamics Online webservices with ADAL, NetStandard, and Azure AD

蹲街弑〆低调 提交于 2019-11-27 07:25:30
问题 I'm currently trying to create a Xamarin App in order to get some info from a Dynamics 365 online instance. The code that authenticate with AD and access the CRM api is deported in a NetStandard (v1.6) Library. I use the following NuGets : Microsoft.IdentityModel.Clients.ActiveDirectory (3.13.9) NETStandard.Library (1.6.1) I followed the following tutorial in order to link AD with my Dynamics instance : https://nishantrana.me/2016/11/13/register-a-dynamics-365-app-with-azure-active-directory/

Call C# Code from Ribbon JScript CRM Online 2011

和自甴很熟 提交于 2019-11-26 23:04:09
问题 I need to have some code execute on the click of the ribbon button on an entity that updates some related data from CRM Online 2011. I would prefer not to have to write all of this logic in JScript. Is there a way to call into C# code from JScript? I have looked at the JScript file Microsoft is using from the ribbon and it looks like this: Mscrm.Campaign.copyCampaign = function (campaignId, saveAsTemplate) { var $v_0 = new RemoteCommand("MarketingAutomation", "CopyCampaign", null); $v_0