Trendsic Platform Service

<back to all web services

FormOfficeStartRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/forms/office/drafts
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class FormOfficeStartRequest
    {
        public UUID FormUID = null;
        public Integer ContactId = null;
        public String Name = null;
        public String Email = null;
        public String Mobile = null;
        public String BranchId = null;
        
        public UUID getFormUID() { return FormUID; }
        public FormOfficeStartRequest setFormUID(UUID value) { this.FormUID = value; return this; }
        public Integer getContactId() { return ContactId; }
        public FormOfficeStartRequest setContactId(Integer value) { this.ContactId = value; return this; }
        public String getName() { return Name; }
        public FormOfficeStartRequest setName(String value) { this.Name = value; return this; }
        public String getEmail() { return Email; }
        public FormOfficeStartRequest setEmail(String value) { this.Email = value; return this; }
        public String getMobile() { return Mobile; }
        public FormOfficeStartRequest setMobile(String value) { this.Mobile = value; return this; }
        public String getBranchId() { return BranchId; }
        public FormOfficeStartRequest setBranchId(String value) { this.BranchId = value; return this; }
    }

    public static class FormOfficeDraftResponse
    {
        public String SubmissionUID = null;
        public String FormUID = null;
        public String FormName = null;
        public String AppJson = null;
        public String AnswersJson = null;
        public Integer Page = null;
        public Integer Rev = null;
        public String TenantName = null;
        public String Today = null;
        public String ForName = null;
        public String BranchName = null;
        public String FilledByName = null;
        public String SignedInName = null;
        public Boolean ContactLinked = null;
        public String Outcome = null;
        public String OutcomeWaiting = null;
        public ResponseStatus ResponseStatus = null;
        
        public String getSubmissionUID() { return SubmissionUID; }
        public FormOfficeDraftResponse setSubmissionUID(String value) { this.SubmissionUID = value; return this; }
        public String getFormUID() { return FormUID; }
        public FormOfficeDraftResponse setFormUID(String value) { this.FormUID = value; return this; }
        public String getFormName() { return FormName; }
        public FormOfficeDraftResponse setFormName(String value) { this.FormName = value; return this; }
        public String getAppJson() { return AppJson; }
        public FormOfficeDraftResponse setAppJson(String value) { this.AppJson = value; return this; }
        public String getAnswersJson() { return AnswersJson; }
        public FormOfficeDraftResponse setAnswersJson(String value) { this.AnswersJson = value; return this; }
        public Integer getPage() { return Page; }
        public FormOfficeDraftResponse setPage(Integer value) { this.Page = value; return this; }
        public Integer getRev() { return Rev; }
        public FormOfficeDraftResponse setRev(Integer value) { this.Rev = value; return this; }
        public String getTenantName() { return TenantName; }
        public FormOfficeDraftResponse setTenantName(String value) { this.TenantName = value; return this; }
        public String getToday() { return Today; }
        public FormOfficeDraftResponse setToday(String value) { this.Today = value; return this; }
        public String getForName() { return ForName; }
        public FormOfficeDraftResponse setForName(String value) { this.ForName = value; return this; }
        public String getBranchName() { return BranchName; }
        public FormOfficeDraftResponse setBranchName(String value) { this.BranchName = value; return this; }
        public String getFilledByName() { return FilledByName; }
        public FormOfficeDraftResponse setFilledByName(String value) { this.FilledByName = value; return this; }
        public String getSignedInName() { return SignedInName; }
        public FormOfficeDraftResponse setSignedInName(String value) { this.SignedInName = value; return this; }
        public Boolean isContactLinked() { return ContactLinked; }
        public FormOfficeDraftResponse setContactLinked(Boolean value) { this.ContactLinked = value; return this; }
        public String getOutcome() { return Outcome; }
        public FormOfficeDraftResponse setOutcome(String value) { this.Outcome = value; return this; }
        public String getOutcomeWaiting() { return OutcomeWaiting; }
        public FormOfficeDraftResponse setOutcomeWaiting(String value) { this.OutcomeWaiting = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public FormOfficeDraftResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

}

Java FormOfficeStartRequest 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.

POST /v1/forms/office/drafts HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<FormOfficeStartRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <BranchId>String</BranchId>
  <ContactId>0</ContactId>
  <Email>String</Email>
  <FormUID>00000000-0000-0000-0000-000000000000</FormUID>
  <Mobile>String</Mobile>
  <Name>String</Name>
</FormOfficeStartRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<FormOfficeDraftResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <AnswersJson>String</AnswersJson>
  <AppJson>String</AppJson>
  <BranchName>String</BranchName>
  <ContactLinked>false</ContactLinked>
  <FilledByName>String</FilledByName>
  <ForName>String</ForName>
  <FormName>String</FormName>
  <FormUID>String</FormUID>
  <Outcome>String</Outcome>
  <OutcomeWaiting>String</OutcomeWaiting>
  <Page>0</Page>
  <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>
  <Rev>0</Rev>
  <SignedInName>String</SignedInName>
  <SubmissionUID>String</SubmissionUID>
  <TenantName>String</TenantName>
  <Today>String</Today>
</FormOfficeDraftResponse>