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

Entity.Id.Set : cannot explicitly call operator or accessor

$
0
0

I get this error when try to set Id of Entity.

   Entity val = new Entity(createdEntity.LogicalName);
    val.set_Id(createdEntity.Id);


How ever I could solve the get method errors, by changing :

 get_Value()


to

Value


By omitting get and (). ex :

val.get_Value();


changed to

   val.Value;


But How can I set Id for single entity? I mean how can I solve the line :

val.set_Id(createdEntity.Id);

Or set Item just like this line :

val.get_Attributes().set_Item(item.Key, attributes.get_Item(item.Key));


Any help will appreciate.


Viewing all articles
Browse latest Browse all 79901

Trending Articles



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