Method Community

 

MethodAPIInsertV2 Succeeding but broken in web app UI

Last post 10-31-2019 12:13 PM by Laks_Method. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-30-2019 12:46 PM

    • KatieO
    • Not Ranked
    • Joined on 10-30-2019
    • Posts 1

    MethodAPIInsertV2 Succeeding but broken in web app UI

    I'm using the PHP example at https://www.method.me/wp-content/uploads/2018/12/MethodAPISample_PHP_V1.zip but am getting errors.


    For many of the fields I get a kick back from the API saying the field doesn't support "Add". I was able to resolve this by removing all fields and values with the exception of the following from the example:

    array(

        'Name',
        'FirstName',
        'LastName',
        'Email',
        'Phone'
    );  
     

    I successfuily inserted to the Contacts table with just those fields. But, now when I try to view the contact at domain.method.me/apps it gives me the error "Please try again". Can I get some guidance?

  • 10-31-2019 12:13 PM In reply to

    Re: MethodAPIInsertV2 Succeeding but broken in web app UI

    Hello Katie,

    Thanks for reaching out. Any Contact inserted into Contacts table should have an Entity (Customer/Vendor/CustomerLead) associated with it. If you have not inserted an Entity already, please insert an Entity into Customer or Vendor table. Use the Name of that Entity when you insert Contacts into the Contacts table.

    Example

    Insert Customer with Name as 'Method Inc.'

    Insert Contacts with Name as 'John Smith' and Entity as 'Method Inc.'


    Also, in order to get the list of fields that are required or available to add/edit in any table you can use this call 'MethodAPIFieldListV2'. Our documentation should give you the list of fields necessary to call this endpoint.

    https://www.method.me/wp-content/uploads/2018/12/MethodAPIDocumentationvV2.pdf

    Laks Sahayaprasath
    Product Manager
    Method CRM
Page 1 of 1 (2 items)