locked
Account Owner Updation RRS feed

  • Question

  • Hi All,

    I am ttrying to update the account owner by using CRM web service (4.0).
     I wrote following code for that
    //
    account Account = (account)retrieved.BusinessEntities[0];
    Account.ownerid = new Owner();
    Account.ownerid.Value = RamID;
    Account.ownerid.type = EntityName.systemuser.ToString();

    service.Update(Account);
    //

    But its not updating the record and throwing No Error

    Can you guys help  me out in the same, As I am not able to figure out the problem.

    your input will be great help for me.

    Thanks in Advance

    Manish
    Tuesday, November 17, 2009 6:53 PM

Answers

  • same response as in developer forum

    For the owner field you must use the AssignRequest class, see the folowing link

    You can't use the update method
    My blog : http://mscrmtools.blogspot.com You will find: Form Javascript Manager (export/import javascript from forms) ISV.Config Manager (graphical ISV.config edition - export/import) View Layout replicator (customize one view and replicate to others) And others (use tool tag on my blog)
    • Marked as answer by Manish_B Tuesday, November 17, 2009 7:47 PM
    Tuesday, November 17, 2009 7:24 PM
    Moderator

All replies

  • same response as in developer forum

    For the owner field you must use the AssignRequest class, see the folowing link

    You can't use the update method
    My blog : http://mscrmtools.blogspot.com You will find: Form Javascript Manager (export/import javascript from forms) ISV.Config Manager (graphical ISV.config edition - export/import) View Layout replicator (customize one view and replicate to others) And others (use tool tag on my blog)
    • Marked as answer by Manish_B Tuesday, November 17, 2009 7:47 PM
    Tuesday, November 17, 2009 7:24 PM
    Moderator
  • Thank you!  Tanguy
    Tuesday, November 17, 2009 7:48 PM