Method Community

 

Trouble inserting Notes via API

Last post 09-11-2013 11:53 AM by Ted Pikul. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-10-2013 3:13 AM

    Trouble inserting Notes via API

    I've been successfully using the Method API to add lead data into the Customer table with one exception: the "Notes" field.  Even though the call returns a succesful response, the "Notes" data sent does not appear within the customers data on the dashboard.  Below is an example request made via SoapUI with the response.  Any input about where to find this data if it's even being saved would be appreciated.

    Request:

    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/">
    <soap:Header/>
    <soap:Body>
    <tem:MethodAPIInsertV2>
    <!--Optional:-->
    <tem:strCompanyAccount>?</tem:strCompanyAccount>
    <!--Optional:-->
    <tem:strLogin>?</tem:strLogin>
    <!--Optional:-->
    <tem:strPassword>?</tem:strPassword>
    <!--Optional:-->
    <tem:strSessionID/>
    <!--Optional:-->
    <tem:strTable>Customer</tem:strTable>
    <!--Optional:-->
    <tem:arrInsertFieldsArray>
    <!--Zero or more repetitions:-->
    <tem:string>Email</tem:string>
    <tem:string>IsLeadStatusOnly</tem:string>
    <tem:string>FirstName</tem:string>
    <tem:string>LastName</tem:string>
    <tem:string>IsActive</tem:string>
    <tem:string>LeadRating</tem:string>
    <tem:string>LeadSource</tem:string>
    <tem:string>LeadStatus</tem:string>
    <tem:string>Name</tem:string>
    <tem:string>Phone</tem:string>
    <tem:string>Notes</tem:string>
    </tem:arrInsertFieldsArray>
    <!--Optional:-->
    <tem:arrInsertValueArray>
    <!--Zero or more repetitions:-->
    <tem:string>myemail@mail.com</tem:string>
    <tem:string>True</tem:string>
    <tem:string>FirstNameWebTest</tem:string>
    <tem:string>LastNameWebTest</tem:string>
    <tem:string>True</tem:string>
    <tem:string>Hot</tem:string>
    <tem:string>Web</tem:string>
    <tem:string>Open</tem:string>
    <tem:string>FirstNameWebTest FirstNameWebTest</tem:string>
    <tem:string>555-555-5555</tem:string>
    <tem:string>My Test Note</tem:string>
    </tem:arrInsertValueArray>
    </tem:MethodAPIInsertV2>
    </soap:Body>
    </soap:Envelope>


    Response:

    <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <MethodAPIInsertV2Response xmlns="http://tempuri.org/">
    <MethodAPIInsertV2Result>&lt;?xml version="1.0" encoding="windows-1252" ?>&lt;MethodAPI response = "Success" RecordID="16171" >&lt;/MethodAPI></MethodAPIInsertV2Result>
    </MethodAPIInsertV2Response>
    </soap:Body>
    </soap:Envelope>

  • 09-10-2013 1:37 PM In reply to

    Re: Trouble inserting Notes via API

    Answer


    Hi Ted Pikul,

    Has the 'Notes' field been added to the customer dashboard screen you are referring to?

    According to the message you recieved back from the api everything went through no problem....and the API is pretty rigid about throwing errors when something goes wrong.

    Dave

     

  • 09-11-2013 11:53 AM In reply to

    Re: Trouble inserting Notes via API

    Looks like that was the issue, the dashboard that I was viewing had to be copied/edited to include the Notes field.  Thanks for your quick response.

Page 1 of 1 (3 items)