Hi all,
I'm a bit confused (as usual)!
I want to get to the parent email from an activity mime attachment. I'm using the Linqpad plugin to do a bit of investigation on the best way of doing this.
Initially I was going to use ActivityId as this is a lookup to activity pointer (and therefore the email). However the Linqpad plugin very cleverly informed me that ActivityId was deprecated, which is true according to this page:http://msdn.microsoft.com/en-us/library/gg328322.aspx
So I then looked at ObjectId which according to my metadata browser is a lookup to related entities of type activitypointer and template (E-mail template). So I manually added an email with an attachment using the web front end and compared ActivityId to ObjectId. What surprised me was that the Id of the two is the same yet the logical name for the ActivityId Entity Reference was "activitypointer", which sounds right, whereas the logical name for the ObjectId Entity Reference was "activitymimeattachment" which sounds wrong:
Note that the two Guids are indeed the same. Is this a CRM bug or am I missing something?
Thanks,
LJ
P.S I'm using CRM 2011 online.