Mapping Appointment Entity for Data Migration in Microsoft Dynamics CRM 2015 - dynamics-crm-2011

I need to migrate data from CRM 2011 to CRM 2015 for different entities. I am using scribe insight for this purpose. I am stuck with the the migration of different entities belonging to Activities like Appointment, Letter, Fax, etc.
If its a normal lookup field i would have used something like
DBLOOKUP(S25,"CRM 2015","Lookup Entity name","Matching field","Primary key")
There is a field type named 'Party List' which is lookup to multiple entities. How do I map this? So that I can easily migrate data from 2011 to 2015?

I think you're saying you want to migrate Activity records from CRM2011 to CRM2015. I've done something very similar from CRM4 to 2011, using Scribe Insight.
PartyList is a composite field, built from ActivityParty records. You don't write to it directly.
An ActivityParty record links an Activity (eg, email, task) to a Party (eg, account, contact, user, lead).
The sequence of events is:
Migrate Party records (contacts, accounts etc).
For each Activity in CRM 2011
Create an Activity in CRM 2015
For each ActivityParty belonging to the Activity in CRM2011
Create an ActivityParty in CRM2015
Set the status of the CRM2015 Activity to that of the CRM2011 Activity.
Some points to note:
ActivityParty records are somewhat special in CRM. They don't support all messages. Specifically, the can't be updated - only created or deleted.
You can only set the status of the Activity after you've added all the activity parties. CRM will generate an error if you try to add an activityparty to a completed activity.
Hope this helps
Mike

Based on your DBLookup code you use Scribe for migration. I'm not an expert in Scribe so I would suggest to use search engine to find relevant information. Try to use this search.

Related

Dynamics 2011 SystemForm Timestamps

I'm querying an on-premises installation of Dynamics CRM 2011 via SQL Server Management Studio.
I'd like to find CreatedOn, CreatedBy, ModifiedOn, ModifiedBy for a Form(by Form I mean like how each entity has the "Information" form). I've tried doing this with the SystemForm view, but the closest column I can find is PublishedOn, and I don't see a PublishedBy.
The solution doesn't have to be in SQL. I just need to find the info.
The information is not available (practically you can't know who made a customization and when)

How to store 'event' entity type in MS Dynamics CRM

What is the best way to capture events within Dynamics CRM?
E.g I know these 100 contact attended a conference / seminar on Product X, and I would like to capture that data within the system for email campaigns / reporting.
I was surprised that I wouldn't find any activity of this type.
I think this is more of a business question.
You should build a Conference (event) entity and relate the attendees (100 contacts) either manually or by some automated process.
This will enable you to use that information in any report.
Try the Customer Portal Accelerator.
It was initially called the Event Management Accelerator but the name has changed since and additional functionality has been added
http://dynamics-crm.pinpoint.microsoft.com/en-US/applications/customer-portal-for-microsoft-dynamics-crm-2011-12884910826

Dynamics CRM 2011 Online - How to total the duration for activities

I have a requirement to total the durations of all activities related to a custom entity. I have created a custom entity that allows the user to add activities for that instance of the custom entity. Every time an activity is added to the custom entity I need to total the duration and update the custom entity. I started by creating a plugin for an activity. The problem is the only messages you can create the plugin for is retrieve and retrivemultiple. I then went to service activity to create the plugin and I cold create it using the create message.
My question is, is every activity a service activity? Has anyone done this and do you have any tips on the best way to go about it?
Thanks,
Gary
It sounds like you are looking for a plugin or custom workflow that operates on the “parent” entity (the entity the activities are related to.) You would write your code to use the RetrieveMultiple method and then loop through the result totaling the value as you go.
IOrganizationService.RetrieveMultiple Method
http://msdn.microsoft.com/en-us/library/microsoft.xrm.sdk.iorganizationservice.retrievemultiple.aspx
Rolling Up Custom Entities in Microsoft CRM 2011 and CRM Online
http://www.catapulterp.com/rolling-up-custom-entities-in-microsoftcrm-2011-and-crm-online/

Fetch XML Using a Field Value

Can Fetch-XML for a sub-grid view be written to include a field value on the record?
I have a custom entity with a lookup to Account.
I would like to have a sub-grid of Cases related to that Account; the grid would show Cases related to the Account related to this custom entity instead of Cases related to the custom entity.
Yes is possible, but is an unsupported customization.
You can find an example here: Filter Sub-Grid Dynamics CRM 2011 Rollup 12 (Polaris)
Pay attention to the rollup version of your crm environment.

Email Invoice Details from Invoice Workflow in CRM 2011

In CRM 2011, I have a workflow configured to "Send Email" once Invoice status is marked "Paid". However, in the Email Template, it does not appear I have access to fields from the Invoice Details entity. How can I include the line items from the Invoice (via Invoice Details)?
I've also tried with Order record, but I also cannot insert fields from the Sales Order Details entity.
I do not want to create a custom workflow plugin. Do I have any other options? If I must create a custom workflow plugin, is there an example of where to start?
Out of the box email templates aren't designed to handle the relationship between a header record and the line items (Opportunity, Quote, Order, & Invoice).
If you are looking to generate the email from a workflow, custom code if probably your only option. The CRM 2011 SDK would be the best place to start. It contains lots of examples and great documentation.
Also out of the box, CRM 2011 doesn't appear to let you mail merge the Invoice entity, but I believe C360's Documents Pack will let you do this. It would be a manual process and it is a paid product but it allow you to avoid writing code.

Resources