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

GUID fetching im Ms crm Plugin (MS crm 2011)

$
0
0

I have a Entity "Test" and I have created a plugin as create and pre operation.

Now I have one more entity "counter" I need the GUID of this entity in my "Test" plugin.

I could get the direct GUID for exmaple "abc-4589-sdhfj-fhh" something like this but this is static what I actually need is a dynamic one just by using the name of entity "counter"

Below is one of few way I tried but could not got it. Giving me the Generic key error that means it is uable to get the abaxis_prefixcounter name. Any help would be appreciated!!!!

Guid counter = ((EntityReference)entity["abaxis_prefixcounter"]).Id

Thanks,

Ankush


Viewing all articles
Browse latest Browse all 55831

Trending Articles



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