locked
Unable to retrieve target quote entit CRM 2011 RRS feed

  • Question

  • hi :),
    i'm trying to add a new contact with asp.net webform and this is the code :

    CrmConnection con = new CrmConnection("CRM");
    IOrganizationService sevice = new OrganizationService(con);

    Account account = new Account();
    account.Name = "Bensassi";
    account.NumberOfEmployees = 15;

    var id = sevice.Create(account);
    CreateRequest reqCreate = new CreateRequest();
    reqCreate.Target = account;
    CreateResponse createResponse = sevice.Execute(reqCreate) as CreateResponse;



    and he stok in var id = sevice.Create(account); 
    with the error "Unable to retrieve target quote entity."

    please help i'm dying


    Wednesday, January 1, 2014 6:57 PM

Answers

  • Hi,

    have you verified any Plugins are firing ,when an account is creating?



    By Sanz. -- If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".

    • Marked as answer by Bensassi dhia Thursday, January 2, 2014 12:38 PM
    Thursday, January 2, 2014 5:46 AM

All replies

  • Hi,

    have you verified any Plugins are firing ,when an account is creating?



    By Sanz. -- If you find this post helpful then please "Vote as Helpful" and "Mark As Answer".

    • Marked as answer by Bensassi dhia Thursday, January 2, 2014 12:38 PM
    Thursday, January 2, 2014 5:46 AM
  • thy, Problem solved ,I tested the code on another organization and it works...
    Thursday, January 2, 2014 12:41 PM