locked
Reassign Ownership (ownerId) of Entity using sevicecontext - CRM 2011 RRS feed

  • Question

  • how do i reassign ownership of an entity using servicecontext? this is what i'm trying to do:

    I'm using ServiceContext with early bound.

    1. newing up a new entity, set Id and another text field.
    2. Setting the OwnerId to another systemuser
    3. calling context.Attach(), context.UpdateObject() and context.SaveChanges()

    result:

    I see that the text was changed, but the ownership remained the same.

    Any ideas?

    Monday, August 26, 2013 10:28 PM

Answers

All replies