| GET | /v1/forms/{FormUID}/automations |
|---|
export class FormAutomationRule
{
public WorkflowId: number;
public Name: string;
public Sentence: string;
public State: string;
public StateText: string;
public Numbers: string;
public Warn: string;
public AnyApplication: boolean;
public AlsoOthers: boolean;
public SharedText: string;
public FromStarter: boolean;
public EngineLink: string;
public constructor(init?: Partial<FormAutomationRule>) { (Object as any).assign(this, init); }
}
export class FormAutomationStarter
{
public Key: string;
public Name: string;
public Text: string;
public Added: boolean;
public constructor(init?: Partial<FormAutomationStarter>) { (Object as any).assign(this, init); }
}
export class FormMappingRow
{
public Field: string;
public FieldKey: string;
public Target: string;
public Tone: string;
public Note: string;
public constructor(init?: Partial<FormMappingRow>) { (Object as any).assign(this, init); }
}
export class FormAutomationsResponse
{
public Rules: FormAutomationRule[] = [];
public Starters: FormAutomationStarter[] = [];
public Mapping: FormMappingRow[] = [];
public MapSummary: string;
public CanAdd: boolean;
public AddRefusal: string;
public CanToggle: boolean;
public CanRemove: boolean;
public CanOpenEngine: boolean;
public ReservedKeys: string[] = [];
public TestableFields: string[] = [];
public ResponseStatus: ResponseStatus;
public constructor(init?: Partial<FormAutomationsResponse>) { (Object as any).assign(this, init); }
}
export class FormAutomationsRequest
{
public FormUID: string;
public constructor(init?: Partial<FormAutomationsRequest>) { (Object as any).assign(this, init); }
}
TypeScript FormAutomationsRequest 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/forms/{FormUID}/automations HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Rules":[{"WorkflowId":0,"Name":"String","Sentence":"String","State":"String","StateText":"String","Numbers":"String","Warn":"String","AnyApplication":false,"AlsoOthers":false,"SharedText":"String","FromStarter":false,"EngineLink":"String"}],"Starters":[{"Key":"String","Name":"String","Text":"String","Added":false}],"Mapping":[{"Field":"String","FieldKey":"String","Target":"String","Tone":"String","Note":"String"}],"MapSummary":"String","CanAdd":false,"AddRefusal":"String","CanToggle":false,"CanRemove":false,"CanOpenEngine":false,"ReservedKeys":["String"],"TestableFields":["String"],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}