Trendsic Platform Service

<back to all web services

FormReportRequest

Requires Authentication
The following routes are available for this service:
GET/v1/forms/{FormUID}/reports
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class FormReportRequest
    {
        public UUID FormUID = null;
        public String Field = null;
        
        public UUID getFormUID() { return FormUID; }
        public FormReportRequest setFormUID(UUID value) { this.FormUID = value; return this; }
        public String getField() { return Field; }
        public FormReportRequest setField(String value) { this.Field = value; return this; }
    }

    public static class FormReportResponse
    {
        public Integer Submissions = null;
        public Integer Decided = null;
        public Integer Approved = null;
        public String RateText = null;
        public String DecisionText = null;
        public Integer Drafts = null;
        public Integer Sla = null;
        public Integer DraftDays = null;
        public Boolean IsRecord = null;
        public ArrayList<FormReportBar> Weeks = new ArrayList<FormReportBar>();
        public ArrayList<FormReportBar> Stages = new ArrayList<FormReportBar>();
        public ArrayList<FormReportBar> Pages = new ArrayList<FormReportBar>();
        public Integer Started = null;
        public Integer SubmittedPct = null;
        public String DropFrom = null;
        public Integer DropN = null;
        public ArrayList<FormReportBar> Durations = new ArrayList<FormReportBar>();
        public ArrayList<FormReportBar> Fields = new ArrayList<FormReportBar>();
        public String Field = null;
        public String FieldLabel = null;
        public ArrayList<FormReportBar> Options = new ArrayList<FormReportBar>();
        public ArrayList<FormReportBar> Reasons = new ArrayList<FormReportBar>();
        public ResponseStatus ResponseStatus = null;
        
        public Integer getSubmissions() { return Submissions; }
        public FormReportResponse setSubmissions(Integer value) { this.Submissions = value; return this; }
        public Integer getDecided() { return Decided; }
        public FormReportResponse setDecided(Integer value) { this.Decided = value; return this; }
        public Integer getApproved() { return Approved; }
        public FormReportResponse setApproved(Integer value) { this.Approved = value; return this; }
        public String getRateText() { return RateText; }
        public FormReportResponse setRateText(String value) { this.RateText = value; return this; }
        public String getDecisionText() { return DecisionText; }
        public FormReportResponse setDecisionText(String value) { this.DecisionText = value; return this; }
        public Integer getDrafts() { return Drafts; }
        public FormReportResponse setDrafts(Integer value) { this.Drafts = value; return this; }
        public Integer getSla() { return Sla; }
        public FormReportResponse setSla(Integer value) { this.Sla = value; return this; }
        public Integer getDraftDays() { return DraftDays; }
        public FormReportResponse setDraftDays(Integer value) { this.DraftDays = value; return this; }
        public Boolean getIsRecord() { return IsRecord; }
        public FormReportResponse setIsRecord(Boolean value) { this.IsRecord = value; return this; }
        public ArrayList<FormReportBar> getWeeks() { return Weeks; }
        public FormReportResponse setWeeks(ArrayList<FormReportBar> value) { this.Weeks = value; return this; }
        public ArrayList<FormReportBar> getStages() { return Stages; }
        public FormReportResponse setStages(ArrayList<FormReportBar> value) { this.Stages = value; return this; }
        public ArrayList<FormReportBar> getPages() { return Pages; }
        public FormReportResponse setPages(ArrayList<FormReportBar> value) { this.Pages = value; return this; }
        public Integer getStarted() { return Started; }
        public FormReportResponse setStarted(Integer value) { this.Started = value; return this; }
        public Integer getSubmittedPct() { return SubmittedPct; }
        public FormReportResponse setSubmittedPct(Integer value) { this.SubmittedPct = value; return this; }
        public String getDropFrom() { return DropFrom; }
        public FormReportResponse setDropFrom(String value) { this.DropFrom = value; return this; }
        public Integer getDropN() { return DropN; }
        public FormReportResponse setDropN(Integer value) { this.DropN = value; return this; }
        public ArrayList<FormReportBar> getDurations() { return Durations; }
        public FormReportResponse setDurations(ArrayList<FormReportBar> value) { this.Durations = value; return this; }
        public ArrayList<FormReportBar> getFields() { return Fields; }
        public FormReportResponse setFields(ArrayList<FormReportBar> value) { this.Fields = value; return this; }
        public String getField() { return Field; }
        public FormReportResponse setField(String value) { this.Field = value; return this; }
        public String getFieldLabel() { return FieldLabel; }
        public FormReportResponse setFieldLabel(String value) { this.FieldLabel = value; return this; }
        public ArrayList<FormReportBar> getOptions() { return Options; }
        public FormReportResponse setOptions(ArrayList<FormReportBar> value) { this.Options = value; return this; }
        public ArrayList<FormReportBar> getReasons() { return Reasons; }
        public FormReportResponse setReasons(ArrayList<FormReportBar> value) { this.Reasons = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public FormReportResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class FormReportBar
    {
        public String Id = null;
        public String Label = null;
        public Integer N = null;
        public Double Value = null;
        public String Text = null;
        public String Tone = null;
        
        public String getId() { return Id; }
        public FormReportBar setId(String value) { this.Id = value; return this; }
        public String getLabel() { return Label; }
        public FormReportBar setLabel(String value) { this.Label = value; return this; }
        public Integer getN() { return N; }
        public FormReportBar setN(Integer value) { this.N = value; return this; }
        public Double getValue() { return Value; }
        public FormReportBar setValue(Double value) { this.Value = value; return this; }
        public String getText() { return Text; }
        public FormReportBar setText(String value) { this.Text = value; return this; }
        public String getTone() { return Tone; }
        public FormReportBar setTone(String value) { this.Tone = value; return this; }
    }

}

Java FormReportRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/forms/{FormUID}/reports HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<FormReportResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Approved>0</Approved>
  <Decided>0</Decided>
  <DecisionText>String</DecisionText>
  <DraftDays>0</DraftDays>
  <Drafts>0</Drafts>
  <DropFrom>String</DropFrom>
  <DropN>0</DropN>
  <Durations>
    <FormReportBar>
      <Id>String</Id>
      <Label>String</Label>
      <N>0</N>
      <Text>String</Text>
      <Tone>String</Tone>
      <Value>0</Value>
    </FormReportBar>
  </Durations>
  <Field>String</Field>
  <FieldLabel>String</FieldLabel>
  <Fields>
    <FormReportBar>
      <Id>String</Id>
      <Label>String</Label>
      <N>0</N>
      <Text>String</Text>
      <Tone>String</Tone>
      <Value>0</Value>
    </FormReportBar>
  </Fields>
  <IsRecord>false</IsRecord>
  <Options>
    <FormReportBar>
      <Id>String</Id>
      <Label>String</Label>
      <N>0</N>
      <Text>String</Text>
      <Tone>String</Tone>
      <Value>0</Value>
    </FormReportBar>
  </Options>
  <Pages>
    <FormReportBar>
      <Id>String</Id>
      <Label>String</Label>
      <N>0</N>
      <Text>String</Text>
      <Tone>String</Tone>
      <Value>0</Value>
    </FormReportBar>
  </Pages>
  <RateText>String</RateText>
  <Reasons>
    <FormReportBar>
      <Id>String</Id>
      <Label>String</Label>
      <N>0</N>
      <Text>String</Text>
      <Tone>String</Tone>
      <Value>0</Value>
    </FormReportBar>
  </Reasons>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Sla>0</Sla>
  <Stages>
    <FormReportBar>
      <Id>String</Id>
      <Label>String</Label>
      <N>0</N>
      <Text>String</Text>
      <Tone>String</Tone>
      <Value>0</Value>
    </FormReportBar>
  </Stages>
  <Started>0</Started>
  <Submissions>0</Submissions>
  <SubmittedPct>0</SubmittedPct>
  <Weeks>
    <FormReportBar>
      <Id>String</Id>
      <Label>String</Label>
      <N>0</N>
      <Text>String</Text>
      <Tone>String</Tone>
      <Value>0</Value>
    </FormReportBar>
  </Weeks>
</FormReportResponse>