dynamics-crm-2011

Accessing email sender's address in dynamics CRM plugin

老子叫甜甜 提交于 2021-02-10 09:44:29
问题 I am writing a Dynamics CRM 2011 plugin that hooks into the Email entity's post-update event (stage 40 of the pipeline), and am having trouble accessing the From address of the email at this stage in code. We have set up an email router that forwards on emails sent to a specific address to Dynamics CRM. They end up in the service queue as Email entities. When I open those records in the frontend, the From address is visible (and linked to the relevant user/contact if applicable). However, if

Dynamics CRM 2011 Plugin Retrieve and Retrieve Multiple

寵の児 提交于 2021-02-07 20:30:56
问题 I'm looking for some working examples of retrieve message and retrieve multiple message plugin (Early binding). I've failed to find any successfully examples looking on line. I've checked the SDK, and various forums. Links or working examples would be greatly appreciated! What I'm trying to accomplish is the intercept and update of specific fields before presentation on the UI. I'm able to partially accomplish this via javascript which is the preferred method, but unfortunately the

Dynamics CRM 2013: Audit logs have “blank” records

可紊 提交于 2021-01-27 21:30:23
问题 On a custom entity I enabled a single field for auditing which seems to be working fine. But there are many, many more audit records having changed date, changed by (both user and service accounts) and event of Update but blank changed field, old value and new value columns. Opening one of these "blank" records shows the message given in the title. And when you open one of them what you see is no table but the statement "the fields changed by this action are not enabled for audit tracking".

CRM FetchXML activitytypecode Result doesn't have enum int value

微笑、不失礼 提交于 2020-12-09 06:33:30
问题 I have a JS project where I want to pull out the CRM Activity types, let the user select and then do another fetchxml query with the chosen activity types. I can get distinct list of the activitytypecodes out with simple FetchXML <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true"> <entity name="activitypointer" > <attribute name="activitytypecode" /> </entity> </fetch> result.attributes["activitytypecode"].formattedValue; //Returns name - 'Phone Call' result

CRM FetchXML activitytypecode Result doesn't have enum int value

前提是你 提交于 2020-12-09 06:30:19
问题 I have a JS project where I want to pull out the CRM Activity types, let the user select and then do another fetchxml query with the chosen activity types. I can get distinct list of the activitytypecodes out with simple FetchXML <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true"> <entity name="activitypointer" > <attribute name="activitytypecode" /> </entity> </fetch> result.attributes["activitytypecode"].formattedValue; //Returns name - 'Phone Call' result

How to import users in CRM 2011 with source GUID

只谈情不闲聊 提交于 2020-02-07 03:09:05
问题 We have three Organization tenents, Dev, Test and Live. All hosted on premise (CRM 2011. [5.0.9690.4376] [DB 5.0.9690.4376]). Because the way dialogs uses GUIDs to refference record in Lookup, we aim to maintain GUIDs for static records same across all three tenents. While all other entities are working fine, I am failing to import USERS and also maintain their GUIDS. I am using Export/Import to get the data from Master tenent (Dev) in to the Test and Live tenents. It is very similar to what

How to import users in CRM 2011 with source GUID

◇◆丶佛笑我妖孽 提交于 2020-02-07 03:08:02
问题 We have three Organization tenents, Dev, Test and Live. All hosted on premise (CRM 2011. [5.0.9690.4376] [DB 5.0.9690.4376]). Because the way dialogs uses GUIDs to refference record in Lookup, we aim to maintain GUIDs for static records same across all three tenents. While all other entities are working fine, I am failing to import USERS and also maintain their GUIDS. I am using Export/Import to get the data from Master tenent (Dev) in to the Test and Live tenents. It is very similar to what

clearoption for optionset in crm business process flow

让人想犯罪 __ 提交于 2020-01-25 03:09:06
问题 I have a business process flow In one of its steps I have added an option set(sub category) I am trying to clear the options in the optionset using the below code Xrm.Page.getControl("new_subcategory").removeOption(100000005) Xrm.Page.getControl("new_subcategory").clearOptions() This removes the options for the optionset that is inside the form, but it is not removing for the same option set that is in the step of business process flow 回答1: You need to added header_process_ to the id. So: Xrm

CRM2011 Workflow: What happens if the field which is used in the condition of the workflow is updated after the workflow has started?

冷暖自知 提交于 2020-01-24 02:50:32
问题 Example: Lets say I have a workflow which send an email 2 days before warranty enddate. This workflow is triggered on the "Created" of a entity. step 1: wait condition - process timeout < (warrantyendate - 2) after wait: send email. So when the record is created, the workflow is started. But what happens when the user goes back and updates the warranty enddate. Does the workflow check the updated warranty enddate or does it still use the enddate entered when it was triggered (i.e the initial

How do I correctly setup C# unit tests for CRM 2011 plugins?

我是研究僧i 提交于 2020-01-22 05:57:56
问题 Trying to debug a plugin in CRM 2011 can be extremely difficult. Not only are there issues with having the .pdb files in the correct location on the server, but each time you make a coding change you get to go through the hassle of deploying and re-registering the plugin. Since the trigger is in CRM itself, it's hard to create a unit test for it. My current process of writing a unit test for a brand new plugin is rather slow and error, but goes something like this: Register the new plugin