| GET | /v1/forms/contacts/{ContactId} |
|---|
export class FormContactPanelSub
{
public SubmissionUID: string;
public Number: string;
public FormName: string;
public Stage: string;
public Tone: string;
public SubmittedAt: string;
public BranchName: string;
public constructor(init?: Partial<FormContactPanelSub>) { (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 FormOfficeApp
{
public FormUID: string;
public Name: string;
public Noun: string;
public DefaultBranchId: string;
public IsRecord: boolean;
public RoleName: string;
public constructor(init?: Partial<FormOfficeApp>) { (Object as any).assign(this, init); }
}
export class FormContactPanelResponse
{
public Subs: FormContactPanelSub[] = [];
public Drafts: FormOfficeDraftRow[] = [];
public Forms: FormOfficeApp[] = [];
public CanStart: boolean;
public ContactName: string;
public ResponseStatus: ResponseStatus;
public constructor(init?: Partial<FormContactPanelResponse>) { (Object as any).assign(this, init); }
}
export class FormContactPanelRequest
{
public ContactId: number;
public constructor(init?: Partial<FormContactPanelRequest>) { (Object as any).assign(this, init); }
}
TypeScript FormContactPanelRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/forms/contacts/{ContactId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Subs:
[
{
SubmissionUID: String,
Number: String,
FormName: String,
Stage: String,
Tone: String,
SubmittedAt: String,
BranchName: String
}
],
Drafts:
[
{
SubmissionUID: String,
FormUID: String,
FormName: String,
ForName: String,
BranchName: String,
ContactId: 0,
Page: 0,
Pages: 0,
SavedBy: String,
SavedAt: String
}
],
Forms:
[
{
FormUID: String,
Name: String,
Noun: String,
DefaultBranchId: String,
IsRecord: False,
RoleName: String
}
],
CanStart: False,
ContactName: String,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}