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

Unable to get regardingobjectid in task entity

$
0
0

I want to get regarding object id of a task.

My code is 

Guid ParentAccountID = ((EntityReference)PrimaryEntity.Attributes["regardingobjectid"]).Id;


It throws an error that " Given key was not present in the dictionary". I am running the plugin on Post-UPDATE operation which means id is already there. Can you people tell me why I am unable to get regardingobjectid?


Viewing all articles
Browse latest Browse all 55831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>