dynamics-crm-2013

CRM 2013 Custom Action Plugin not firing

好久不见. 提交于 2019-12-04 15:53:52
Wondering if someone could give me a bit of help. I am trying to use custom actions from CRM 2013, what I have is a custom action "Clone" defined as below. I have a very simple clone record plugin that clones the passed in target entity and returns the new entity as an output parameter. The plugin is registered to fire on the Custom action, my plan was to fire this from JavaScript but the plugin never fired so for the time being to test I have been firing this from another plugin. Using the below code. The other plugin fires and hits the call to the execute method but the other plugin never

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

Retrieve all OptionSet values using OData in Dynamics CRM

梦想的初衷 提交于 2019-12-03 21:08:01
问题 I am quite new to Dynamics CRM. I am building an app which should update entity in Dynamics CRM. I can update simple types without any issues. Now the situation is, I have declared some custom Option Sets in Contact entity. Is there any way to retrieve all the possible OptionSet values (text and value) so that my app can look for appropriate value and set it in the payload it is generating? I can not find any endpoint in WebAPI as well as XRMServices/2011/OrganizationData.svc . Any help would

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

Microsoft Dynamics CRM 2013 Plugin - There is no active transaction error

二次信任 提交于 2019-12-03 12:04:15
I have been struggling with a an error in a plugin for MS Dynamics CRM Online. (see below). It appears to happen at random times, but more likely to occur when the activity is high. I have verified and there are no try/catch-continue issues as the exception suggests. And that there are no member references to the OrganizationService Kept as this post suggests: https://community.dynamics.com/crm/f/117/t/138785.aspx Does anyone know what is causing the issue, or how to get around it? <OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com

How to resolve Dynamics CRM Plugin System.Security.Permissions.FileIOPermission error

让人想犯罪 __ 提交于 2019-12-02 23:50:57
问题 Business Process Error System.Security.SecurityException: Request for the permission of type ' System.Security.Permissions.FileIOPermission , mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights,

Dynamically Change Option Set Values in CRM

China☆狼群 提交于 2019-12-02 10:26:53
问题 I am using CRM Online 2013. I am trying to remove 3 values from an optionset under a certain condition. The optionset has six options by default: they are listed at the top of my JS code below. When I run my code, the correct amount of options appear; but they all say undefined. Here is what I have at the moment: var customer = 100000000; var partner = 100000001; var partnerCustomer = 100000002; var customerAndBeta = 100000003; var partnerAndBeta = 100000004; var partnerCustomerAndBeta =

Import data from excel sheet with new columns in CRM 2013 Online

♀尐吖头ヾ 提交于 2019-12-02 06:42:00
I previously imported data from an excel sheet into CRM that had around a dozen columns in it. At that time some of those columns were empty. Now that excel sheet has been updated to include values in those previously empty columns. How do I import only those newly updated columns in excel sheet to update their respective CRM records? Is their a way of importing them without creating duplicates and anyway messing up the records in CRM? One to do would be to run an advanced find with the new columns plus any columns that you would need to identify the rows. Next, export to Excel all of the rows

Dynamically Change Option Set Values in CRM

為{幸葍}努か 提交于 2019-12-02 04:40:10
I am using CRM Online 2013. I am trying to remove 3 values from an optionset under a certain condition. The optionset has six options by default: they are listed at the top of my JS code below. When I run my code, the correct amount of options appear; but they all say undefined. Here is what I have at the moment: var customer = 100000000; var partner = 100000001; var partnerCustomer = 100000002; var customerAndBeta = 100000003; var partnerAndBeta = 100000004; var partnerCustomerAndBeta = 100000005; function populateBetaOptionSet(beta) { var options = Xrm.Page.getAttribute("intip_websiteaccess"