Choices feed

Applies to the following products: 
Questionmark OnDemand
Questionmark Perception
Applies to the following Perception versions: 
Perception 5.7

The Choices feed is related to the Questions feed. It returns choice data to the client.

This page includes the following sections:


The Choices feed includes the following five properties:



Example value

ChoiceKey the internal choice key.


ChoiceNumber the choice number.


QuestionKey the internal question key.


ChoiceText the text of the choice.

Strongly Agree

TenantID used to filter data for the Questionmark account you want to access the result data for. The tenant ID is the customer ID for an OnDemand account; for Perception users, it is the name of the specific shared repository are you trying to access the result data for. It is checked against the supplied credentials.


Relationships to other feeds

The Choices feed includes a single relationship: a choice is linked back to the one question to which it refers.

This allows the client to see question data for a given choice.

Atom attributes

The Atom field  <title> is populated with the choice text.

The Atom field <updated> is populated with the finished time of the batch in which the record was imported.

Example XML entry

<entry xml:base="" xmlns:d=""
xmlns:m="" xmlns="">
<title type="text">Strongly Agree</title>
<name />
<link rel="edit" title="Choice" href="Choices(ChoiceKey=1,QuestionKey=562)"/>
<link rel="" type="application/atom+xml;type=entry" title="Question"
href="Choices(ChoiceKey=1,QuestionKey=562)/Question" />
<category term="Model.Choice" scheme=""/>
<content type="application/xml">
<d:QuestionKey m:type="Edm.Int32">562</d:QuestionKey>
<d:ChoiceKey m:type="Edm.Int32">1</d:ChoiceKey>
<d:ChoiceNumber m:type="Edm.Int32">1</d:ChoiceNumber>
<d:ChoiceText>Strongly Agree</d:ChoiceText>

Default rows

The Choices feed include default rows that are used in instances when data from certain records does not have an assigned value. These default rows will appear for questions that don't have applicable choices. To filter out these default rows from any reports you generate, filter to only include records that contain a ChoiceKey with a value greater than 0.

<d:QuestionKey m:type="Edm.Int32">2181</d:QuestionKey>
<d:ChoiceKey m:type="Edm.Int32">-2</d:ChoiceKey>
<d:ChoiceNumber m:type="Edm.Int32">1</d:ChoiceNumber>
<d:ChoiceText>&lt;Not applicable&gt;</d:ChoiceText>