Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

Looking for some help in migrating activitypointers from one entity to a new custom entity

$
0
0

Hi,

After a couple of months of trying to get the OOB "Account" entity to do what we wanted, I decided to just create a new custom entity "Family"; which has worked great.  However, I need to get the legacy activities, which were associated with the "Account"  to now point to the new entity "Family" and I am drawing a complete blank.  I'm sure it can be done as a SQL expression, I just can't get the syntax correct.  Here's the relevant data, if anyone has a suggestion, I'd sure appreciate it.

1. Account's all have unique names

2. Family's are all named exactly the same name as their counterpart "Account"

3. I need to write some code to go through the "activitypointer" entity, find each activity with the guid for the "account" in the parties field and replace it with the guid from the new "family" entity

I can do it one at a time with no issues, but I have over 2000 "Accounts" to migrate and over 50000 activities, so a quick expression or script would be super helpful.  Thank you in advance.


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images