Trendsic Platform Service

<back to all web services

FormReportRequest

Requires Authentication
The following routes are available for this service:
GET/v1/forms/{FormUID}/reports
"use strict";
export class FormReportBar {
    /** @param {{Id?:string,Label?:string,N?:number,Value?:number,Text?:string,Tone?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Id;
    /** @type {string} */
    Label;
    /** @type {number} */
    N;
    /** @type {number} */
    Value;
    /** @type {string} */
    Text;
    /** @type {string} */
    Tone;
}
export class FormReportResponse {
    /** @param {{Submissions?:number,Decided?:number,Approved?:number,RateText?:string,DecisionText?:string,Drafts?:number,Sla?:number,DraftDays?:number,IsRecord?:boolean,Weeks?:FormReportBar[],Stages?:FormReportBar[],Pages?:FormReportBar[],Started?:number,SubmittedPct?:number,DropFrom?:string,DropN?:number,Durations?:FormReportBar[],Fields?:FormReportBar[],Field?:string,FieldLabel?:string,Options?:FormReportBar[],Reasons?:FormReportBar[],ResponseStatus?:ResponseStatus}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    Submissions;
    /** @type {number} */
    Decided;
    /** @type {number} */
    Approved;
    /** @type {string} */
    RateText;
    /** @type {string} */
    DecisionText;
    /** @type {number} */
    Drafts;
    /** @type {number} */
    Sla;
    /** @type {number} */
    DraftDays;
    /** @type {boolean} */
    IsRecord;
    /** @type {FormReportBar[]} */
    Weeks = [];
    /** @type {FormReportBar[]} */
    Stages = [];
    /** @type {FormReportBar[]} */
    Pages = [];
    /** @type {number} */
    Started;
    /** @type {number} */
    SubmittedPct;
    /** @type {string} */
    DropFrom;
    /** @type {number} */
    DropN;
    /** @type {FormReportBar[]} */
    Durations = [];
    /** @type {FormReportBar[]} */
    Fields = [];
    /** @type {string} */
    Field;
    /** @type {string} */
    FieldLabel;
    /** @type {FormReportBar[]} */
    Options = [];
    /** @type {FormReportBar[]} */
    Reasons = [];
    /** @type {ResponseStatus} */
    ResponseStatus;
}
export class FormReportRequest {
    /** @param {{FormUID?:string,Field?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    FormUID;
    /** @type {string} */
    Field;
}

JavaScript 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>