Problems with Zendesk Sell API

9 Comments

  • Grzegorz Pogwizd
    Zendesk team member

    Hi Taras,

    Thanks for writing in with this question. It's Greg here with the Tech Support team and I'll be happy to help.

    In Search API you can check the supported attributes by looking at schemas of endpoints available in that API. You just need to send a simple GET request to one of the endpoints (no authentication required):
    https://api.getbase.com/v3/leads/schema
    https://api.getbase.com/v3/contacts/schema
    https://api.getbase.com/v3/deals/schema

    I hope this helps and in case of any further questions do not hesitate to let us know.

    Best regards!

    Grzegorz Pogwizd
    Technical Support Engineer | Zendesk Sell

    Do you need more information? - Our Help Center has it all at https://support.zendesk.com/hc/en-us/categories/360002582434-Sell
    Do you prefer a live conversation? - Call us at +1 888-670-4887 press 1, Mo-Fr, 8am-5pm, Pacific Time
    Want to talk to other Sell users? - check out our Community at https://support.zendesk.com/hc/en-us/community/topics/360001380554-Sell-Q-Ab

    1
  • Taras Sachavskyi

    Hi Grzegorz!

    Thanks a lot!

    0
  • Taras Sachavskyi

    Hi Grzegorz Pogwizd! I have one more problem.
    When I send a request like this

    Response from API is:

    Where custom field 

    "contact:2449013": null

    But this field exists on CRM and is not empty. The type of this field is "Address". With other custom fields everything is ok.


    Thanks for your help.

    0
  • Grzegorz Pogwizd
    Zendesk team member

    Hi Taras,

    Thanks for getting back to me with this question and I'm happy to clarify.

    I'm afraid that Adress type fields are not supported by our Search API at the moment. If you'd be willing to share your specific use case for these fields in Search API that would let us understand the need for supporting these fields and consider adding them at some point.

    To find out which Custom Fields are supported by Search API please refer to this documentation page - https://developers.getbase.com/docs/rest/articles/search/custom-fields-mapping

    Thanks for your understanding and I shall be looking forward to hearing more from you.

    Grzegorz Pogwizd
    Technical Support Engineer | Zendesk Sell

    Do you need more information? - Our Help Center has it all at https://support.zendesk.com/hc/en-us/categories/360002582434-Sell
    Do you prefer a live conversation? - Call us at +1 888-670-4887 press 1, Mo-Fr, 8am-5pm, Pacific Time
    Want to talk to other Sell users? - check out our Community at https://support.zendesk.com/hc/en-us/community/topics/360001380554-Sell-Q-Ab

    0
  • Taras Sachavskyi

    Grzegorz Pogwizd, yes I need custom Address fields in Search API.

    0
  • Grzegorz Pogwizd
    Zendesk team member

    Hi Taras,

    I understand that, but if you'd be able to provide more context around your need that would be very helpful. By context I mean what's the specific use case for having these field-types available in the API, if you can share that of course.

    Thank you!

    Grzegorz Pogwizd
    Technical Support Engineer | Zendesk Sell

    Do you need more information? - Our Help Center has it all at https://support.zendesk.com/hc/en-us/categories/360002582434-Sell
    Do you prefer a live conversation? - Call us at +1 888-670-4887 press 1, Mo-Fr, 8am-5pm, Pacific Time
    Want to talk to other Sell users? - check out our Community at https://support.zendesk.com/hc/en-us/community/topics/360001380554-Sell-Q-Ab

    0
  • Taras Sachavskyi

    Grzegorz Pogwizd,Yes, of course.
    So, I'm using your API V2 for reading all records (for example leads). But in API V2 I can't read leads with the parameter "page" greater than 5000, so I must use Search API because there is parameter "cursor", which allows me to read all leads. But Search API doesn't support custom Address fields.
    That's my case) 

    0
  • Grzegorz Pogwizd
    Zendesk team member

    Thank you very much Taras, that's really helpful and I'm passing this feedback along to our API Developers.

    Although I can't promise that this will be improved at some point, I will definitely do my best to push that agenda.

    I hope this helps. Thanks again for sharing this feedback and take care!

    Grzegorz Pogwizd
    Technical Support Engineer | Zendesk Sell

    Do you need more information? - Our Help Center has it all at https://support.zendesk.com/hc/en-us/categories/360002582434-Sell
    Do you prefer a live conversation? - Call us at +1 888-670-4887 press 1, Mo-Fr, 8am-5pm, Pacific Time
    Want to talk to other Sell users? - check out our Community at https://support.zendesk.com/hc/en-us/community/topics/360001380554-Sell-Q-Ab

    0
  • Dayana Flores Bermudez
    Hello there.
     
    I'm having problems with a Sell integration (Sell API V2) rigt now I hope you can help me.
     
    I'm using the API to create leads in sell, I find an intermittence in the creation of leads when a final user fills a form and a lead should be created in Sell. Sometimes works, others doesn't. I am creating leads with a contact form (HTML), the form data is sent via POST (email, name, organization, phone). 
     
    I'm using the following code to create the leads in Sell:
    try
    {
      // Instantiate a client.
      $client = new \BaseCRM\Client(['accessToken' => getenv('BASECRM_ACCESS_TOKEN')]);
      $lead = $client->leads->create(['organization_name' => 'Design service company']);
    
      print_r($lead);
    }
    catch (\BaseCRM\Errors\ConfigurationError $e)
    {
      // Invalid client configuration option
    }
    catch (\BaseCRM\Errors\ResourceError $e)
    {
      // Resource related error
      print('Http status = ' . $e->getHttpStatusCode() . "\n");
      print('Request ID = ' . $e->getRequestId() . "\n");
      foreach ($e->errors as $error)
      {
        print('field = ' . $error['field'] . "\n");
        print('code = ' . $error['code'] . "\n");
        print('message = ' . $error['message'] . "\n");
        print('details = ' . $error['details'] . "\n");
      }
    }
    catch (\BaseCRM\Errors\RequestError $e)
    {
      // Invalid query parameters, authentication error etc.
    }
    catch (\BaseCRM\Errors\Connectionerror $e)
    {
      // Network communication error, curl error is returned
      print('Errno = ' . $e->getErrno() . "\n");
      print('Error message = ' . $e->getErrorMessage() . "\n");
    }
    catch (Exception $e)
    {
      // Other kind of exception
    }

    When the code is executed there is an intermittence in the creation of leads, there is no pattern that repeats itself, sometimes the lead is created without problems and it does not matter if it is in a short time, but another user can try the same thing and it is not registers (does not mark an error). The test was carried out with different browsers on Mac systems (Safari, firefox, chrome) and Windows (Chrome and Firefox). 
     
    The execution time of the server where the lead creation code is located has been increased and the result remains the same. The lead creation tests were carried out both in the production environment and in the Sandbox environment. The execution url uses SSL.

    Are there any restrictions for creating leads? Should I consider a time to be able to create leads using the API?


    We review this documentation regarding php (https://developers.getbase.com/docs/rest/articles/libraries), using as a base the Github code of this link https://github.com/zendesk/basecrm-php
     
    Thanks a lot.
     
    0

Please sign in to leave a comment.

Powered by Zendesk