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.