Hi all,
there's a requirement I need to create a synchronous pre create plugin on CASE entity to update the CASE ID field,
but I found it doesn't work when I directly set value by using the 'Target' entity:
Entity entity = (Entity)context.InputParameters["Target"];
entity['field'] = myValue;
However, I need to new another case entity, write some code like:
Entity entity = (Entity)context.InputParameters["Target"];
Entity newcase = new Entity('incident');
newcase.id = entity.id; //?
entity['filed'] = myValue;
then the case id could be updated successfully. I wanna know why it doesn't work with the first way.
If there's any information unclear, please let me know.
Thanks.
*This post is locked for comments
I have the same question (0)