
Hi,
How can I set the auto generated GUID of a an entity record to a custom field within the same identity?
I tried doing the same for a calculated field of string type and got this error "You can't set the value new_entitynameid, which is of type uniqueIdentifier, to type string. "
Any help would be highly appreciated.
*This post is locked for comments
I have the same question (0)Hello,
You can go with a Plugin, by doing something like :
Entity entity = new Entity("yourentity");
entity["yourfield"] = entity.Id;
service.Update(entity);
Clément