• dexsnake

    (@dexsnake)


    Hi there, I’m trying to pass a submission to Zoho CRM. I seem to have the URL and XML set correctly as I am able to send a submission through via Postman App.

    Here is my url: https://crm.zoho.com/crm/private/xml/Leads/insertRecords?newFormat=1&authtoken=XXXXXXXXXXXXXXXXXXXXXXXXXXXX&scope=crmapi&xmlData=

    and this is the XML section:
    <Leads>
    <row no=”1″>
    <FL val=”First Name”>[firstname]</FL>
    <FL val=”Last Name”>[lastname]</FL>
    <FL val=”Email”>[emailaddress]</FL>
    <FL val=”Phone”>[phonenumber]</FL>
    <FL val=”Reservation Date”>[date]</FL>
    <FL val=”No. Passengers”>[passengers]</FL>
    <FL val=”Airport”>[airport]</FL>
    <FL val=”Airport Service”>[airportservice]</FL>
    <FL val=”Airport Address”>[addressairport]</FL>
    <FL val=”Booking Type”>[eventType]</FL>
    </row>
    </Leads>

    However, I am getting this error in the logs when I try to send a submission through:
    <response uri=”/crm/private/xml/Leads/insertRecords”><error>4600<message>Unable to process your request. Please verify if the name and value is appropriate for the “xmlData” parameter.</message></error></response>

    Do I have to set up any other settings in here?

    Any help would be appreciated. Thanks!

    • This topic was modified 6 years ago by dexsnake.
Viewing 1 replies (of 1 total)
  • Thread Starter dexsnake

    (@dexsnake)

    I want to update this as I am now using the V2 of the API which uses oauth2 and requires Authorization in the header and uses JSON to pass data. I tried adding in this function as stated in a previous thread:

    add_filter( ‘qs_cf7_api_get_args’ , ‘add_auth_headers’ );

    function add_auth_headers( $args ){
    //for example
    $args[‘headers’][‘Authorization’] = ‘Zoho-oauthtoken <oauthtoken here>’ ;
    }

    However, it is not working. I’m getting back authentication failure as a code.

    Any light on this?

Viewing 1 replies (of 1 total)
  • The topic ‘Zoho CRM?’ is closed to new replies.