Trendsic Platform Service

<back to all web services

FormGoSendPreviewRequest

Requires Authentication
The following routes are available for this service:
POST/v1/forms/go-send/preview
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class FormGoSendPreviewRequest
    {
        public UUID FormUID = null;
        public String Mode = null;
        public ArrayList<String> Positions = new ArrayList<String>();
        public ArrayList<Integer> Workers = new ArrayList<Integer>();
        public Boolean WithRows = null;
        
        public UUID getFormUID() { return FormUID; }
        public FormGoSendPreviewRequest setFormUID(UUID value) { this.FormUID = value; return this; }
        public String getMode() { return Mode; }
        public FormGoSendPreviewRequest setMode(String value) { this.Mode = value; return this; }
        public ArrayList<String> getPositions() { return Positions; }
        public FormGoSendPreviewRequest setPositions(ArrayList<String> value) { this.Positions = value; return this; }
        public ArrayList<Integer> getWorkers() { return Workers; }
        public FormGoSendPreviewRequest setWorkers(ArrayList<Integer> value) { this.Workers = value; return this; }
        public Boolean isWithRows() { return WithRows; }
        public FormGoSendPreviewRequest setWithRows(Boolean value) { this.WithRows = value; return this; }
    }

    public static class FormGoSendPreviewResponse
    {
        public ArrayList<FormGoPosition> Positions = new ArrayList<FormGoPosition>();
        public ArrayList<FormGoSendWorker> Workers = new ArrayList<FormGoSendWorker>();
        public Integer Send = null;
        public Integer Skipped = null;
        public String Consequence = null;
        public String SendLabel = null;
        public String Refusal = null;
        public String SendOff = null;
        public Integer Max = null;
        public ResponseStatus ResponseStatus = null;
        
        public ArrayList<FormGoPosition> getPositions() { return Positions; }
        public FormGoSendPreviewResponse setPositions(ArrayList<FormGoPosition> value) { this.Positions = value; return this; }
        public ArrayList<FormGoSendWorker> getWorkers() { return Workers; }
        public FormGoSendPreviewResponse setWorkers(ArrayList<FormGoSendWorker> value) { this.Workers = value; return this; }
        public Integer getSend() { return Send; }
        public FormGoSendPreviewResponse setSend(Integer value) { this.Send = value; return this; }
        public Integer getSkipped() { return Skipped; }
        public FormGoSendPreviewResponse setSkipped(Integer value) { this.Skipped = value; return this; }
        public String getConsequence() { return Consequence; }
        public FormGoSendPreviewResponse setConsequence(String value) { this.Consequence = value; return this; }
        public String getSendLabel() { return SendLabel; }
        public FormGoSendPreviewResponse setSendLabel(String value) { this.SendLabel = value; return this; }
        public String getRefusal() { return Refusal; }
        public FormGoSendPreviewResponse setRefusal(String value) { this.Refusal = value; return this; }
        public String getSendOff() { return SendOff; }
        public FormGoSendPreviewResponse setSendOff(String value) { this.SendOff = value; return this; }
        public Integer getMax() { return Max; }
        public FormGoSendPreviewResponse setMax(Integer value) { this.Max = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public FormGoSendPreviewResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class FormGoPosition
    {
        public String SkillUID = null;
        public String Name = null;
        public Boolean Active = null;
        public Boolean Ticked = null;
        public Integer Count = null;
        
        public String getSkillUID() { return SkillUID; }
        public FormGoPosition setSkillUID(String value) { this.SkillUID = value; return this; }
        public String getName() { return Name; }
        public FormGoPosition setName(String value) { this.Name = value; return this; }
        public Boolean isActive() { return Active; }
        public FormGoPosition setActive(Boolean value) { this.Active = value; return this; }
        public Boolean isTicked() { return Ticked; }
        public FormGoPosition setTicked(Boolean value) { this.Ticked = value; return this; }
        public Integer getCount() { return Count; }
        public FormGoPosition setCount(Integer value) { this.Count = value; return this; }
    }

    public static class FormGoSendWorker
    {
        public Integer Id = null;
        public String Name = null;
        public String Position = null;
        public Boolean Submitted = null;
        
        public Integer getId() { return Id; }
        public FormGoSendWorker setId(Integer value) { this.Id = value; return this; }
        public String getName() { return Name; }
        public FormGoSendWorker setName(String value) { this.Name = value; return this; }
        public String getPosition() { return Position; }
        public FormGoSendWorker setPosition(String value) { this.Position = value; return this; }
        public Boolean isSubmitted() { return Submitted; }
        public FormGoSendWorker setSubmitted(Boolean value) { this.Submitted = value; return this; }
    }

}

Java FormGoSendPreviewRequest 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/go-send/preview HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<FormGoSendPreviewRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <FormUID>00000000-0000-0000-0000-000000000000</FormUID>
  <Mode>String</Mode>
  <Positions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </Positions>
  <WithRows>false</WithRows>
  <Workers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>0</d2p1:int>
  </Workers>
</FormGoSendPreviewRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<FormGoSendPreviewResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Consequence>String</Consequence>
  <Max>0</Max>
  <Positions>
    <FormGoPosition>
      <Active>false</Active>
      <Count>0</Count>
      <Name>String</Name>
      <SkillUID>String</SkillUID>
      <Ticked>false</Ticked>
    </FormGoPosition>
  </Positions>
  <Refusal>String</Refusal>
  <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>
  <Send>0</Send>
  <SendLabel>String</SendLabel>
  <SendOff>String</SendOff>
  <Skipped>0</Skipped>
  <Workers>
    <FormGoSendWorker>
      <Id>0</Id>
      <Name>String</Name>
      <Position>String</Position>
      <Submitted>false</Submitted>
    </FormGoSendWorker>
  </Workers>
</FormGoSendPreviewResponse>