dynamics-crm-2011

MS Dynamics CRM online 2011 - Authentication issues

放肆的年华 提交于 2019-12-17 04:35:12
问题 I am a total newbie with dynamics crm online (2011), and although I have been working through the SDK sample code, I am trying to find the simplest way to perform a basic authenticated connection to our online Dynamics CRM service, and push some very basic data to a custom entity/extension I have created. Hopefully you can see from the above code snippet (sensitive data blurred), I am probably trying to circumvent the authentication process? The above code example was based a little on some

Connecting to CRM Online through CRM 365 Plugin

眉间皱痕 提交于 2019-12-14 04:23:38
问题 I need to connect and retrieve records in CRM Online through CRM 365 plugin. I have tried simplified connection using xrm.tooling.dll but unfortunately it says Could not load file or assembly 'microsoft.xrm.tooling.connector and when i used ClientCredential the error says Metadata contain refereces that cannot be resolved . Strangely, i tried both method with console applcation and it's work prefectly. Just wanna knows what i miss in this case ? Do i need special requirement when i want to

ms crm 2011 retrieve quote details with javascript

痞子三分冷 提交于 2019-12-14 03:57:35
问题 How can I retrieve all products (= quote details) of a quote by javascript? I have tried following code, but that doesn't work: id = quoteid var options = "$select=ProductId&$filter=QuoteId eq (guid'"+ id + "'"; SDK.REST.retrieveMultipleRecords("QuoteDetail", options, ebcont.crm.quote._successQuoteDetailMultiRetrieve, function(error) {alert(error.message);}, ebcont.crm.quote._multiRetrieveQuoteComplete); I always get following message: Error: 400: Bad Request: operator 'eq' is no compatible

createdon field date-time format

拟墨画扇 提交于 2019-12-14 03:57:15
问题 Compiling the following coe always get the same frustrating mistake. I'm trying to compare a "createdon" field to a the present date. I've tried several date format but stil not working... Error detail : "The date-time format for 23/05/2012 14:01:55 is invalid" Code snippet: DateTime d = DateTime.Now; String.Format("{0:dd/MM/YYYY HH:mm:ss}", d); FetchExpression fetch = new FetchExpression(@" <fetch distinct='false' mapping='logical'> <entity name='" + context.PrimaryEntityName + "'><filter

passing dynamic parameter (field values) to webresource on Dynamics CRM using custom parameter (data)

情到浓时终转凉″ 提交于 2019-12-14 03:56:26
问题 Can't get the values into the querystring of the webresource iframe url. I add the field name (schema name) to the custom parameter (data) and get the field name on the querystring (static) and not the field value. 回答1: Even though there are posts saying you can pass dynamic values to the custom parameter (data) of the webresource, my experience is the same as Adi's above, that those parameter are only for static values. In that case the easiest alternative I found to get the values of the

Xrm is undefined in Dynamics CRM 2011

人走茶凉 提交于 2019-12-14 03:47:20
问题 I can't seem to get my Xrm variable working when I create .js code. Is there a library I need to include or a function I need to run first? Do I need to make sure that ClientGlobalContext.js.aspx is referenced correctly? I'm in a 'C++' mindset and just wondering if there is any sort of 'include' command that I need to be running. My js file looks like this, and if I remove the 'window.parent.' from the 2nd function the code breaks if I call it. ///<reference path="C:\Users\steve.lee\Downloads

crm 2011 creating a view of merged contacts

南笙酒味 提交于 2019-12-14 02:09:31
问题 Can I create a view of the contacts that have been merged? I want to include active and inactive (sub ordinate) contacts as well in the view. I can search inactive contacts with the status 'Merged duplicates'. How do I find the master record in which it has been merged? Help is appreciated! :) 回答1: CRM has two fields called "merged" and "masterid" which indicate if the record was merged and the master record id. Unfortunately, CRM doesn't expose these fields so you won't be able to create a

crm 2011 xrm.page.getattribute returns null when there is value

核能气质少年 提交于 2019-12-14 00:26:25
问题 I'm not really skillful with JScript but I've written the following code within a function webResource that is supposed to run when the form loads (OnLoad) var creationDateName = "createdon"; var today = new Date(); var creationDateAttr = Xrm.Page.getAttribute(creationDateName); if(creationDateAttr!=null) { /* Some more code */ } The problem is that Xrm.Page.getAttribute(creationDateName) returns null when there is a value on the field (the field is not being displayed in form but when

Last X Months does not function correctly in CRM 2011

强颜欢笑 提交于 2019-12-13 16:23:31
问题 I am creating a view and have tried to get the correct search created, but the results are unexpected. Basically I need to find all records that have been created in the last x months. I created my query: <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false"> <entity name="new_object"> <attribute name="new_name" /> <attribute name="new_dateactivated" /> <attribute name="new_currentstatus" /> <attribute name="new_contactid" /> <attribute name="new_accountid" />

Dynamics CRM 2011 - The plug-in type could not be found

风流意气都作罢 提交于 2019-12-13 16:18:55
问题 I am trying to deploy a plugin to an on-premise Dynamics CRM 2011. The plugin does not do anything, it is simply an empty Execute method attached on the Post-Process event of the Account entity. My plugin looks like this: namespace CrmDemo.Plugins { public class PostAccountCreateDetail: IPlugin { public void Execute(IServiceProvider serviceProvider) { } } } The plugin registers fine; here is what the registration screen looks like: When I create a new account, I receive the following error: