Jump to content


Zurmo to Drupal Module using the Zurmo REST API

API Drupal

  • Please log in to reply
3 replies to this topic

#1 jimf


    Advanced Member

  • Members
  • PipPipPip
  • 64 posts

Posted 26 July 2012 - 10:23 PM

Our last Drupal Zurmo module took data from Drupal and fed it into Zurmo in the form of lead capture. This update sends data the other way (from Zurmo to Drupal). This module does two primary functions.

First, it uses the Zurmo REST API as a data source for a Drupal HTML table. Drupal Forms normally use the Drupal Database API to feed the table, this one uses the Zurmo API for Contact, Leads, Opportunities, and Accounts. Of particular interest is that we were able to create a Drupal pager using the totalCount and Page properties of the Zurmo API.

I also wrote a couple of Drupal Blocks that are filled with Zurmo Data. This will allow you to place New Leads, etc onto your users CMS account or home page, and they will have one-click access to work the lead in Zurmo. Very cool.

Here is the video.

Based on my work so far, I believe we need to make the following modifications to the Zurmo API.

Add State Value to the Contact and Lead API - Currently we return the state ID and not the Value. We should have both in the array like we do with Source, Owner, etc. This way we can see the status of a Lead (New, Customer, Dead, etc.) instead of just the integer.

Notes API does not support Contact ID - I think the Notes API needs to support the Contact ID or it's pretty much broken. It does not do much good to add a note that is not attached to a contact.

State Field - It would be good to have two now APIs written to support the state field. GetZurmoStates should return an array of the state ids and values. GetZurmoStartingContactState will return the state id of the state field that makes a lead a contact.

I won't post this until it's complete, but if you want to play with the module, Send me a message.

Jim Fulford

#2 speixoto


    Advanced Member

  • Members
  • PipPipPip
  • 386 posts

Posted 26 July 2012 - 11:00 PM

Great job!

#3 Jason



  • Administrators
  • 864 posts
  • LocationChicago

Posted 27 July 2012 - 02:25 PM


Jason Green
Zurmo Team
Need support? Upgrade now

#4 windsor


    Advanced Member

  • Moderators
  • 272 posts
  • LocationTampa, Florida USA

Posted 30 March 2013 - 07:50 PM

Video does not exist? (as of 3/30/2013)

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users