dynamics-crm-online

Dynamically Pull Data from Dynamics CRM Online

北城余情 提交于 2019-12-02 12:24:41
问题 I'm a PHP Developer that recently got introduced to Dynamics CRM Online as I am building an application that needs to pull Customer details directly from a Dynamics CRM Online account to populate a Customer selection list. I've gone through a number of options including: http://mscrmtools.blogspot.com/2012/08/php-to-crm-online-easy-way-to-do.html But I was unable to authenticate at all. According to the blogger, Tanguy, MS has since changed and the solution he posted is no longer valid. I am

How can I update form field on Microsoft CRM Online via Javascript

假装没事ソ 提交于 2019-12-02 07:19:38
问题 I've just created a custom order form on the Microsoft Dynamics CRM Online. Basically, I'd like to update Total Amount field as multiply of Quantity and Amount Field. I think I can do this via Javascripts. I just opened Quantity Field Properties menu and reach Events menu. It requires to select a js library and write right function. I'm quite sure it's too much easy, however, I do not know how to do. Basically: Update Amount Field X Quantity Field should be = Total Amount Field value. My

LINQ where clause throwing error with 2nd where

荒凉一梦 提交于 2019-12-02 03:07:55
问题 UPDATE Even doing a search on the contacts firstName or LastName causes issues: var contacts = ( from c in context.ContactSet join m in context.py3_membershipSet on c.ContactId equals m.py3_Member.Id where m.statuscode.Value == 1 && ((c.FirstName != null && c.FirstName == searchTerm) || (c.LastName!=null && c.LastName == searchTerm) || (c.FullName != null && c.FullName == searchTerm)) orderby c.LastName select new { ContactId = c.ContactId, FirstName = c.FirstName, LastName = c.LastName,

LINQ where clause throwing error with 2nd where

白昼怎懂夜的黑 提交于 2019-12-02 00:23:26
UPDATE Even doing a search on the contacts firstName or LastName causes issues: var contacts = ( from c in context.ContactSet join m in context.py3_membershipSet on c.ContactId equals m.py3_Member.Id where m.statuscode.Value == 1 && ((c.FirstName != null && c.FirstName == searchTerm) || (c.LastName!=null && c.LastName == searchTerm) || (c.FullName != null && c.FullName == searchTerm)) orderby c.LastName select new { ContactId = c.ContactId, FirstName = c.FirstName, LastName = c.LastName, BranchCode = c.py3_BranchArea, Branch = (c.FormattedValues != null && c.FormattedValues.Contains("py3

CRM 2016 FakeXrmEasy N:N relationships

≡放荡痞女 提交于 2019-12-01 20:11:44
问题 I'm trying to use FakeXrmEasy to perform some unit tests for CRM Online (2016) and I'm having problems setting up one of my tests with an N:N relationship The following code sets up a Faked Context with 2 entities in it and initializes a Faked Organization Service: var entity1 = new New_entityOne(); var entity2 = new New_entityTwo(); var context = new XrmFakedContext(); context.ProxyTypesAssembly = Assembly.GetAssembly(typeof(New_entityOne)); context.Initialize(new List<Entity>() { entity1,

How do you enable logging for CrmServiceClient in the Xrm Tooling toolkit?

耗尽温柔 提交于 2019-12-01 19:57:02
I'm having issues trying to log in to a CRM Online organization through the use of the latest version of the Xrm Tooling nuget package using the connection string constructor from a custom powershell cmdlet. I'm receiving a rather unhelpful "Unable to Login to Dynamics CRM" error message and am attempting to enable tracing to troubleshoot but have not been able to enable it by modifying the .dll.config file like the below ( taken from an XrmToolbox issue on GitHub ): <?xml version="1.0" encoding="utf-8"?> <configuration> <system.diagnostics> <trace autoflush="true" /> <sources> <source name=

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

你离开我真会死。 提交于 2019-12-01 17:58:40
问题 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 = { 'rob_faqid@odata.bind': '/rob_faqs(guid-here)', 'rob_source': 180840000, 'subject': 'Signpost', 'actualstart': new Date(), 'actualend': new Date() }; Are passed to this URL: https://dynamicsorg/api/data/v8.2/rob_quickactions/ With the following headers: xhr.setRequestHeader('OData

MS CRM - setVisible

巧了我就是萌 提交于 2019-12-01 06:42:58
I am newbie with CRM and I was googling for how to hide and show a text field using jScript library in MS CRM (online) and found several options of using the function setVisible . I tried those options: Xrm.Page.ui.tabs.get('new_fieldname').setVisible(false); Xrm.Page.data.entity.attributes.get('new_fieldname').setVisible(false); Xrm.Page.getAttribute('new_fieldname').controls.get(0).setVisible(false); But only the last one is really working. The first option gives me an error message. What is the different between them? glosrob Just to add to the points already made.. The difference between

MS CRM - setVisible

我只是一个虾纸丫 提交于 2019-12-01 05:19:38
问题 I am newbie with CRM and I was googling for how to hide and show a text field using jScript library in MS CRM (online) and found several options of using the function setVisible . I tried those options: Xrm.Page.ui.tabs.get('new_fieldname').setVisible(false); Xrm.Page.data.entity.attributes.get('new_fieldname').setVisible(false); Xrm.Page.getAttribute('new_fieldname').controls.get(0).setVisible(false); But only the last one is really working. The first option gives me an error message. What

How to get formContext in Ribbon command of Dynamics 365 9.0

独自空忆成欢 提交于 2019-11-30 07:05:22
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.microsoft.com/en-us/dynamics365/customer-engagement/developer/customize-dev/pass-dynamics-365-data