Support Forums

Questions about surveying? How does this thing work? We're here to help!

The Forums are now closed, because much of the older info is out of date.

Check out our Knowledge Base, ask a support question: Support.SurveyGizmo.com or ask a sales question with our Sales Contact Form.

Current User: Guest

date_created and date_lastactivity field with API (getSurveyList)

Topic Locked
UserPost

6:06
June 2, 2009


Paul

Member

posts 35

Hi,


I was wondering what changes these values as I don't seem to be able to change them. I made a call to getSurveyList and got back this:

<survey>
<id>140482</id>
<title LANGUAGE=”English”>Radio Button – Single Choice</title>
<date_created>2009-05-28 10:49:04</date_created>
<date_lastactivity>2009-05-28 10:59:38</date_lastactivity>

I then changed the design of that survey (140482) and added new questions and changed old ones while published. I then made the call to getSurveyList again and noticed the XML hadn't changed. I was expecting either the date_created or date_lastactivity to change. Should it, or is this a bug? Otherwise, how may I determine if a survey design has changed since the last sync with the API?


Kind regards,


-Paul


9:46
June 3, 2009


jonathan

Admin

posts 1129

Hey, Paul!

Wow, I can see why that would be confusing. The last_activity is actually only updated when a database field for the survey is update; ie, changing the survey's Internal (not External) name, launching the survey, closing it, etc.

Jonathan Turk, SurveyGizmo Account Manager
Did this answer help? Let us know!
Want to be a SurveyGizmo Expert? Learn here!

11:24
June 3, 2009


Paul

Member

posts 35

Hi Jonathan,

Now I'm confused Smile.

So, just to ask the question from my last sentence again, how may I determine if a survey design has changed since the last sync with the API?


If I make a call to getSurveyList, then update the design of a survey, then call getSurveyList again, how do I know which survey has been updated?


Kind regards,


-Paul

11:50
June 3, 2009


jonathan

Admin

posts 1129

The “Last Activity” field will only update when a database field for the survey is update; ie, changing the survey's Internal (not External) name, launching the survey, closing it,and so on.

This means that if you make a simple aesthetic change to the survey, like the CSS or changing a question title, it will not be logged as an activity, and that date/time will not change.

We do not offer the ability to see when any single change was made through the API, only changes that were database related. Sorry! :-(

Jonathan Turk, SurveyGizmo Account Manager
Did this answer help? Let us know!
Want to be a SurveyGizmo Expert? Learn here!

1:27
June 4, 2009


Paul

Member

posts 35

Jonathan, wouldn't every developer working with the API would want this. The developer calls getSurveyList to grab a list of surveys, then calls getSurvey for each surveyID to grab the survey designs. When the developer does this each time, surely he would only want to download the survey designs that have changed?


Adding a new question to an old survey, or even changing a question title as you mentioned surely changes the database? I guess adding this many triggers to your database could slow it down.


-Paul

2:17
June 4, 2009


jonathan

Admin

posts 1129

Hey, paul!

I can see what you mean, but the added capability just isn't something we've yet built into our API. The API is still in beta and we're constantly working to add additional features as requested, but right now this is not one of the features we have enough push to add.

Don't worry though, something like this will be incorporated into the next version fo SurveyGizmo and our API.

Jonathan Turk, SurveyGizmo Account Manager
Did this answer help? Let us know!
Want to be a SurveyGizmo Expert? Learn here!



The Forums are now closed, because much of the older info is out of date.

Check out our Knowledge Base, ask a support question: Support.SurveyGizmo.com or ask a sales question with our Sales Contact Form.