Trendsic Platform Service

<back to all web services

FormContactPanelRequest

Requires Authentication
The following routes are available for this service:
GET/v1/forms/contacts/{ContactId}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class FormContactPanelRequest
    {
        public Integer ContactId = null;
        
        public Integer getContactId() { return ContactId; }
        public FormContactPanelRequest setContactId(Integer value) { this.ContactId = value; return this; }
    }

    public static class FormContactPanelResponse
    {
        public ArrayList<FormContactPanelSub> Subs = new ArrayList<FormContactPanelSub>();
        public ArrayList<FormOfficeDraftRow> Drafts = new ArrayList<FormOfficeDraftRow>();
        public ArrayList<FormOfficeApp> Forms = new ArrayList<FormOfficeApp>();
        public Boolean CanStart = null;
        public String ContactName = null;
        public ResponseStatus ResponseStatus = null;
        
        public ArrayList<FormContactPanelSub> getSubs() { return Subs; }
        public FormContactPanelResponse setSubs(ArrayList<FormContactPanelSub> value) { this.Subs = value; return this; }
        public ArrayList<FormOfficeDraftRow> getDrafts() { return Drafts; }
        public FormContactPanelResponse setDrafts(ArrayList<FormOfficeDraftRow> value) { this.Drafts = value; return this; }
        public ArrayList<FormOfficeApp> getForms() { return Forms; }
        public FormContactPanelResponse setForms(ArrayList<FormOfficeApp> value) { this.Forms = value; return this; }
        public Boolean isCanStart() { return CanStart; }
        public FormContactPanelResponse setCanStart(Boolean value) { this.CanStart = value; return this; }
        public String getContactName() { return ContactName; }
        public FormContactPanelResponse setContactName(String value) { this.ContactName = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public FormContactPanelResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class FormContactPanelSub
    {
        public String SubmissionUID = null;
        public String Number = null;
        public String FormName = null;
        public String Stage = null;
        public String Tone = null;
        public String SubmittedAt = null;
        public String BranchName = null;
        
        public String getSubmissionUID() { return SubmissionUID; }
        public FormContactPanelSub setSubmissionUID(String value) { this.SubmissionUID = value; return this; }
        public String getNumber() { return Number; }
        public FormContactPanelSub setNumber(String value) { this.Number = value; return this; }
        public String getFormName() { return FormName; }
        public FormContactPanelSub setFormName(String value) { this.FormName = value; return this; }
        public String getStage() { return Stage; }
        public FormContactPanelSub setStage(String value) { this.Stage = value; return this; }
        public String getTone() { return Tone; }
        public FormContactPanelSub setTone(String value) { this.Tone = value; return this; }
        public String getSubmittedAt() { return SubmittedAt; }
        public FormContactPanelSub setSubmittedAt(String value) { this.SubmittedAt = value; return this; }
        public String getBranchName() { return BranchName; }
        public FormContactPanelSub setBranchName(String value) { this.BranchName = value; return this; }
    }

    public static class FormOfficeDraftRow
    {
        public String SubmissionUID = null;
        public String FormUID = null;
        public String FormName = null;
        public String ForName = null;
        public String BranchName = null;
        public Integer ContactId = null;
        public Integer Page = null;
        public Integer Pages = null;
        public String SavedBy = null;
        public String SavedAt = null;
        
        public String getSubmissionUID() { return SubmissionUID; }
        public FormOfficeDraftRow setSubmissionUID(String value) { this.SubmissionUID = value; return this; }
        public String getFormUID() { return FormUID; }
        public FormOfficeDraftRow setFormUID(String value) { this.FormUID = value; return this; }
        public String getFormName() { return FormName; }
        public FormOfficeDraftRow setFormName(String value) { this.FormName = value; return this; }
        public String getForName() { return ForName; }
        public FormOfficeDraftRow setForName(String value) { this.ForName = value; return this; }
        public String getBranchName() { return BranchName; }
        public FormOfficeDraftRow setBranchName(String value) { this.BranchName = value; return this; }
        public Integer getContactId() { return ContactId; }
        public FormOfficeDraftRow setContactId(Integer value) { this.ContactId = value; return this; }
        public Integer getPage() { return Page; }
        public FormOfficeDraftRow setPage(Integer value) { this.Page = value; return this; }
        public Integer getPages() { return Pages; }
        public FormOfficeDraftRow setPages(Integer value) { this.Pages = value; return this; }
        public String getSavedBy() { return SavedBy; }
        public FormOfficeDraftRow setSavedBy(String value) { this.SavedBy = value; return this; }
        public String getSavedAt() { return SavedAt; }
        public FormOfficeDraftRow setSavedAt(String value) { this.SavedAt = value; return this; }
    }

    public static class FormOfficeApp
    {
        public String FormUID = null;
        public String Name = null;
        public String Noun = null;
        public String DefaultBranchId = null;
        public Boolean IsRecord = null;
        public String RoleName = null;
        
        public String getFormUID() { return FormUID; }
        public FormOfficeApp setFormUID(String value) { this.FormUID = value; return this; }
        public String getName() { return Name; }
        public FormOfficeApp setName(String value) { this.Name = value; return this; }
        public String getNoun() { return Noun; }
        public FormOfficeApp setNoun(String value) { this.Noun = value; return this; }
        public String getDefaultBranchId() { return DefaultBranchId; }
        public FormOfficeApp setDefaultBranchId(String value) { this.DefaultBranchId = value; return this; }
        public Boolean getIsRecord() { return IsRecord; }
        public FormOfficeApp setIsRecord(Boolean value) { this.IsRecord = value; return this; }
        public String getRoleName() { return RoleName; }
        public FormOfficeApp setRoleName(String value) { this.RoleName = value; return this; }
    }

}

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

GET /v1/forms/contacts/{ContactId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<FormContactPanelResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <CanStart>false</CanStart>
  <ContactName>String</ContactName>
  <Drafts>
    <FormOfficeDraftRow>
      <BranchName>String</BranchName>
      <ContactId>0</ContactId>
      <ForName>String</ForName>
      <FormName>String</FormName>
      <FormUID>String</FormUID>
      <Page>0</Page>
      <Pages>0</Pages>
      <SavedAt>String</SavedAt>
      <SavedBy>String</SavedBy>
      <SubmissionUID>String</SubmissionUID>
    </FormOfficeDraftRow>
  </Drafts>
  <Forms>
    <FormOfficeApp>
      <DefaultBranchId>String</DefaultBranchId>
      <FormUID>String</FormUID>
      <IsRecord>false</IsRecord>
      <Name>String</Name>
      <Noun>String</Noun>
      <RoleName>String</RoleName>
    </FormOfficeApp>
  </Forms>
  <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>
  <Subs>
    <FormContactPanelSub>
      <BranchName>String</BranchName>
      <FormName>String</FormName>
      <Number>String</Number>
      <Stage>String</Stage>
      <SubmissionUID>String</SubmissionUID>
      <SubmittedAt>String</SubmittedAt>
      <Tone>String</Tone>
    </FormContactPanelSub>
  </Subs>
</FormContactPanelResponse>