Trendsic Platform Service

<back to all web services

FormOfficeOfferedRequest

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

public class dtos
{

    public static class FormOfficeOfferedRequest
    {
        public UUID FormUID = null;
        
        public UUID getFormUID() { return FormUID; }
        public FormOfficeOfferedRequest setFormUID(UUID value) { this.FormUID = value; return this; }
    }

    public static class FormOfficeOfferedResponse
    {
        public ArrayList<FormOfficeApp> Apps = new ArrayList<FormOfficeApp>();
        public ArrayList<FormInboxCount> Branches = new ArrayList<FormInboxCount>();
        public ArrayList<FormOfficeDraftRow> Drafts = new ArrayList<FormOfficeDraftRow>();
        public Boolean CanSearchContacts = null;
        public ResponseStatus ResponseStatus = null;
        
        public ArrayList<FormOfficeApp> getApps() { return Apps; }
        public FormOfficeOfferedResponse setApps(ArrayList<FormOfficeApp> value) { this.Apps = value; return this; }
        public ArrayList<FormInboxCount> getBranches() { return Branches; }
        public FormOfficeOfferedResponse setBranches(ArrayList<FormInboxCount> value) { this.Branches = value; return this; }
        public ArrayList<FormOfficeDraftRow> getDrafts() { return Drafts; }
        public FormOfficeOfferedResponse setDrafts(ArrayList<FormOfficeDraftRow> value) { this.Drafts = value; return this; }
        public Boolean isCanSearchContacts() { return CanSearchContacts; }
        public FormOfficeOfferedResponse setCanSearchContacts(Boolean value) { this.CanSearchContacts = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public FormOfficeOfferedResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class FormOfficeApp
    {
        public String FormUID = null;
        public String Name = null;
        public String Noun = null;
        public String DefaultBranchId = 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 static class FormInboxCount
    {
        public String V = null;
        public String L = null;
        public Integer N = null;
        
        public String getV() { return V; }
        public FormInboxCount setV(String value) { this.V = value; return this; }
        public String getL() { return L; }
        public FormInboxCount setL(String value) { this.L = value; return this; }
        public Integer getN() { return N; }
        public FormInboxCount setN(Integer value) { this.N = 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; }
    }

}

Java FormOfficeOfferedRequest 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/office HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<FormOfficeOfferedResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Apps>
    <FormOfficeApp>
      <DefaultBranchId>String</DefaultBranchId>
      <FormUID>String</FormUID>
      <Name>String</Name>
      <Noun>String</Noun>
    </FormOfficeApp>
  </Apps>
  <Branches>
    <FormInboxCount>
      <L>String</L>
      <N>0</N>
      <V>String</V>
    </FormInboxCount>
  </Branches>
  <CanSearchContacts>false</CanSearchContacts>
  <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>
  <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>
</FormOfficeOfferedResponse>