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