Method Community

 

InsertV2 required field doesnt not exist

Last post 03-09-2016 5:11 PM by Method_Jonathan. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-09-2016 2:10 PM

    InsertV2 required field doesnt not exist

    I used field list and found 2 required fields on my table. When i try to insert passing in those 2 required fields I get a response that says there is a required "CustomerRef" field. This field does not exist in my table. How can I get insert into this table?

  • 03-09-2016 3:30 PM In reply to

    Re: InsertV2 required field doesnt not exist

    Hi Wayneteng,

    Can you provide more details to help us identify the problem-

    • What table are you inserting record into?
    • Can you post up an example of the parameters you are passing so that we can validate the call?
    Thanks
    Jonathan Gamble
    Product Manager
    Method Integration Inc.
    Local and overseas: 416.847.0400
    Toll Free: 1.888.925.6238
    Fax: 416.640.6027
    E-mail: j.gamble@method.me
  • 03-09-2016 4:15 PM In reply to

    Re: InsertV2 required field doesnt not exist

    { MethodAPIInsertV2Result: '<?xml version="1.0" encoding="windows-1252" ?><MethodAPI response = "Not all required fields are present. Required field CustomerRef is not passed for the table SalesOrder" ></MethodAPI>' }

    CustomerRef is not an existing field in SalesOrder.

  • 03-09-2016 5:11 PM In reply to

    Re: InsertV2 required field doesnt not exist

    The Sales Order table requires the Customer and TxnDate fields - have you supplied these in your original call? If you post up the parameters passed for you original call, I might be able to shed some light as to what caused the error. 


    The 'Ref' portion is added to the field name in this case because the Customer field is actually referencing the 'Customer' table.  

    Jonathan Gamble
    Product Manager
    Method Integration Inc.
    Local and overseas: 416.847.0400
    Toll Free: 1.888.925.6238
    Fax: 416.640.6027
    E-mail: j.gamble@method.me
Page 1 of 1 (4 items)