Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Soap API - An explicit and detailed example of filters on the RunAnalyticsReport endpoint (2 Comments)

$
0
0

Topic by Ramy NATOUR

Content

Hello everyone,

As I'm currently trying to expose a contact's answer to an external system, I didn't manage to find a clear example/documentation about the filters tag in the Soap request.

Here is what I have until now

<v12:Filters>
               <!--Optional:-->
               <v12:Name>Survey Id</v12:Name>
               <!--Optional:-->
               <v12:Operator>
                  <!--Optional:-->
                  <v11:ID id="3"/>
                  <!--Optional:-->
                  <v11:Name>equal</v11:Name>
               </v12:Operator>
               <!--Zero or more repetitions:-->
               <v12:Values>37</v12:Values>
               <!--Optional:-->
               <v12:Attributes>
                  <!--Optional:-->
                  <v12:Editable>false</v12:Editable>
                  <!--Optional:-->
                  <v12:Required>true</v12:Required>
               </v12:Attributes>
               <!--Optional:-->
               <v12:DataType>
                  <!--Optional:-->
                  <v11:ID id="?"/>
                  <!--Optional:-->
                  <v11:Name></v11:Name>
               </v12:DataType>
               <!--Optional:-->
               <v12:Prompt>false</v12:Prompt>
            </v12:Filters>

From my understanding of this XML node, we:

  • Declare a name for the filter
  • Set the operator that will be used
  • Fill the values that you will be compared
  • Do some things in DataType

My questions are:

  • Can anyone confirm that the '=' operator has 3 as Id ?
  • Explain the use of the DataType section and how to fill it correctly ?
  • Provide an explicit example of filter so that if someone encounters the same issue, he can find a solution by himself ?

Thanks in advance

Version

May 2015

Viewing all articles
Browse latest Browse all 2504

Trending Articles