Trendsic Platform Service

<back to all web services

FormReportRequest

Requires Authentication
The following routes are available for this service:
GET/v1/forms/{FormUID}/reports

export class FormReportBar
{
    public Id: string;
    public Label: string;
    public N: number;
    public Value: number;
    public Text: string;
    public Tone: string;

    public constructor(init?: Partial<FormReportBar>) { (Object as any).assign(this, init); }
}

export class FormReportResponse
{
    public Submissions: number;
    public Decided: number;
    public Approved: number;
    public RateText: string;
    public DecisionText: string;
    public Drafts: number;
    public Sla: number;
    public DraftDays: number;
    public IsRecord: boolean;
    public Weeks: FormReportBar[] = [];
    public Stages: FormReportBar[] = [];
    public Pages: FormReportBar[] = [];
    public Started: number;
    public SubmittedPct: number;
    public DropFrom: string;
    public DropN: number;
    public Durations: FormReportBar[] = [];
    public Fields: FormReportBar[] = [];
    public Field: string;
    public FieldLabel: string;
    public Options: FormReportBar[] = [];
    public Reasons: FormReportBar[] = [];
    public ResponseStatus: ResponseStatus;

    public constructor(init?: Partial<FormReportResponse>) { (Object as any).assign(this, init); }
}

export class FormReportRequest
{
    public FormUID: string;
    public Field: string;

    public constructor(init?: Partial<FormReportRequest>) { (Object as any).assign(this, init); }
}

TypeScript FormReportRequest DTOs

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

HTTP + JSV

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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Submissions: 0,
	Decided: 0,
	Approved: 0,
	RateText: String,
	DecisionText: String,
	Drafts: 0,
	Sla: 0,
	DraftDays: 0,
	IsRecord: False,
	Weeks: 
	[
		{
			Id: String,
			Label: String,
			N: 0,
			Value: 0,
			Text: String,
			Tone: String
		}
	],
	Stages: 
	[
		{
			Id: String,
			Label: String,
			N: 0,
			Value: 0,
			Text: String,
			Tone: String
		}
	],
	Pages: 
	[
		{
			Id: String,
			Label: String,
			N: 0,
			Value: 0,
			Text: String,
			Tone: String
		}
	],
	Started: 0,
	SubmittedPct: 0,
	DropFrom: String,
	DropN: 0,
	Durations: 
	[
		{
			Id: String,
			Label: String,
			N: 0,
			Value: 0,
			Text: String,
			Tone: String
		}
	],
	Fields: 
	[
		{
			Id: String,
			Label: String,
			N: 0,
			Value: 0,
			Text: String,
			Tone: String
		}
	],
	Field: String,
	FieldLabel: String,
	Options: 
	[
		{
			Id: String,
			Label: String,
			N: 0,
			Value: 0,
			Text: String,
			Tone: String
		}
	],
	Reasons: 
	[
		{
			Id: String,
			Label: String,
			N: 0,
			Value: 0,
			Text: String,
			Tone: String
		}
	],
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	}
}