
Hi Guys,
AnyBody know how to declare entity reference in dynamics crm azure function coding. Here i write line for declare entity reference but itshowing error. My code is
var accountType = ((EntityReference)appl.Attributes["new_requestedroleid"]).LogicalName;
But it Showing System.colletion.generics exception error occur in that line..i don't know why it is happening..can u please tell me how to declare entity reference and get the name filed value from the lookup field record.
*This post is locked for comments
I have the same question (0)Hi Dinesh,
There is nothing specific you need to do for Azure functions. The error (if I am not wrong) must be key error which means the object appl doesn't have the attribute with the name "new_requestedroleid".
Hope this helps.