locked
How to set the 'sender' field value on phonecall entity in plugin on Pre-Operation state RRS feed

  • Question

  • I do it like this, but it can't be saved. why & how to deal with it ?

    Entity from = new Entity("activityparty");
    from["partyid"] = new EntityReference("contact", cntid);
    EntityCollection froms = new EntityCollection(new List<Entity>() { from });
    entity["from"] = froms;

    Sunday, July 28, 2013 4:01 AM

Answers

  • See http://mscrmuk.blogspot.co.uk/2011/07/partylist-attributes-and-plugin-event.html for an explanation. The easiest solution is to use the pre-validation stage (10) instead

    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

    • Marked as answer by louislu007 Tuesday, July 30, 2013 2:27 PM
    Monday, July 29, 2013 5:58 AM
    Moderator