Trendsic Platform Service

<back to all web services

FormOfficeOfferedRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/forms/office

export class FormOfficeApp
{
    public FormUID: string;
    public Name: string;
    public Noun: string;
    public DefaultBranchId: string;

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

export class FormInboxCount
{
    public V: string;
    public L: string;
    public N: number;

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

export class FormOfficeDraftRow
{
    public SubmissionUID: string;
    public FormUID: string;
    public FormName: string;
    public ForName: string;
    public BranchName: string;
    public ContactId?: number;
    public Page: number;
    public Pages: number;
    public SavedBy: string;
    public SavedAt: string;

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

export class FormOfficeOfferedResponse
{
    public Apps: FormOfficeApp[] = [];
    public Branches: FormInboxCount[] = [];
    public Drafts: FormOfficeDraftRow[] = [];
    public CanSearchContacts: boolean;
    public ResponseStatus: ResponseStatus;

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

export class FormOfficeOfferedRequest
{
    public FormUID?: string;

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

TypeScript FormOfficeOfferedRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /v1/forms/office HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Apps":[{"FormUID":"String","Name":"String","Noun":"String","DefaultBranchId":"String"}],"Branches":[{"V":"String","L":"String","N":0}],"Drafts":[{"SubmissionUID":"String","FormUID":"String","FormName":"String","ForName":"String","BranchName":"String","ContactId":0,"Page":0,"Pages":0,"SavedBy":"String","SavedAt":"String"}],"CanSearchContacts":false,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}