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?
↧