Trendsic Platform Service

<back to all web services

ReminderRequest

Requires Authentication
Requires any of the roles:Agent, Administrator, Agent, Administrator, Agent, Administrator, Agent, Administrator
The following routes are available for this service:
GET,DELETE,OPTIONS/v1/Reminder/{ReminderId}
POST,PUT,OPTIONS/v1/Reminder
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class ReminderRequest
    {
        public ArrayList<ReminderExtended> Reminder = new ArrayList<ReminderExtended>();
        public UUID ReminderId = null;
        public Boolean RemindOwner = null;
        public String AgentName = null;
        public Boolean CCAVP = null;
        public Boolean IsAdminReminder = null;
        public Integer AdminAgentId = null;
        
        public ArrayList<ReminderExtended> getReminder() { return Reminder; }
        public ReminderRequest setReminder(ArrayList<ReminderExtended> value) { this.Reminder = value; return this; }
        public UUID getReminderId() { return ReminderId; }
        public ReminderRequest setReminderId(UUID value) { this.ReminderId = value; return this; }
        public Boolean isRemindOwner() { return RemindOwner; }
        public ReminderRequest setRemindOwner(Boolean value) { this.RemindOwner = value; return this; }
        public String getAgentName() { return AgentName; }
        public ReminderRequest setAgentName(String value) { this.AgentName = value; return this; }
        public Boolean isCcavp() { return CCAVP; }
        public ReminderRequest setCcavp(Boolean value) { this.CCAVP = value; return this; }
        public Boolean getIsAdminReminder() { return IsAdminReminder; }
        public ReminderRequest setIsAdminReminder(Boolean value) { this.IsAdminReminder = value; return this; }
        public Integer getAdminAgentId() { return AdminAgentId; }
        public ReminderRequest setAdminAgentId(Integer value) { this.AdminAgentId = value; return this; }
    }

    public static class ReminderExtended extends Reminder
    {
        public String AgentName = null;
        public String RecordAgentName = null;
        public Integer RecordAgentID = null;
        public Boolean IsAdmin = null;
        public Integer AgentID = null;
        
        public String getAgentName() { return AgentName; }
        public ReminderExtended setAgentName(String value) { this.AgentName = value; return this; }
        public String getRecordAgentName() { return RecordAgentName; }
        public ReminderExtended setRecordAgentName(String value) { this.RecordAgentName = value; return this; }
        public Integer getRecordAgentID() { return RecordAgentID; }
        public ReminderExtended setRecordAgentID(Integer value) { this.RecordAgentID = value; return this; }
        public Boolean getIsAdmin() { return IsAdmin; }
        public ReminderExtended setIsAdmin(Boolean value) { this.IsAdmin = value; return this; }
        public Integer getAgentID() { return AgentID; }
        public ReminderExtended setAgentID(Integer value) { this.AgentID = value; return this; }
    }

    public static class Reminder
    {
        public UUID ReminderId = null;
        public String TableName = null;
        public String FieldName = null;
        public Integer RecordId = null;
        public Date ReminderDate = null;
        public String ReminderNote = null;
        public Date CreatedDate = null;
        public String CreatedBy = null;
        public Date CompletedDate = null;
        
        public UUID getReminderId() { return ReminderId; }
        public Reminder setReminderId(UUID value) { this.ReminderId = value; return this; }
        public String getTableName() { return TableName; }
        public Reminder setTableName(String value) { this.TableName = value; return this; }
        public String getFieldName() { return FieldName; }
        public Reminder setFieldName(String value) { this.FieldName = value; return this; }
        public Integer getRecordId() { return RecordId; }
        public Reminder setRecordId(Integer value) { this.RecordId = value; return this; }
        public Date getReminderDate() { return ReminderDate; }
        public Reminder setReminderDate(Date value) { this.ReminderDate = value; return this; }
        public String getReminderNote() { return ReminderNote; }
        public Reminder setReminderNote(String value) { this.ReminderNote = value; return this; }
        public Date getCreatedDate() { return CreatedDate; }
        public Reminder setCreatedDate(Date value) { this.CreatedDate = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public Reminder setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public Date getCompletedDate() { return CompletedDate; }
        public Reminder setCompletedDate(Date value) { this.CompletedDate = value; return this; }
    }

    public static class ReminderResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<ReminderExtended> Reminder = new ArrayList<ReminderExtended>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public ReminderResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<ReminderExtended> getReminder() { return Reminder; }
        public ReminderResponse setReminder(ArrayList<ReminderExtended> value) { this.Reminder = value; return this; }
    }

}

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

<ReminderRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <AdminAgentId>0</AdminAgentId>
  <AgentName>String</AgentName>
  <CCAVP>false</CCAVP>
  <IsAdminReminder>false</IsAdminReminder>
  <RemindOwner>false</RemindOwner>
  <Reminder>
    <ReminderExtended>
      <CompletedDate>0001-01-01T00:00:00</CompletedDate>
      <CreatedBy>String</CreatedBy>
      <CreatedDate>0001-01-01T00:00:00</CreatedDate>
      <FieldName>String</FieldName>
      <RecordId>0</RecordId>
      <ReminderDate>0001-01-01T00:00:00</ReminderDate>
      <ReminderId>00000000-0000-0000-0000-000000000000</ReminderId>
      <ReminderNote>String</ReminderNote>
      <TableName>String</TableName>
      <AgentID>0</AgentID>
      <AgentName>String</AgentName>
      <IsAdmin>false</IsAdmin>
      <RecordAgentID>0</RecordAgentID>
      <RecordAgentName>String</RecordAgentName>
    </ReminderExtended>
  </Reminder>
  <ReminderId>00000000-0000-0000-0000-000000000000</ReminderId>
</ReminderRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ReminderResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Reminder>
    <ReminderExtended>
      <CompletedDate>0001-01-01T00:00:00</CompletedDate>
      <CreatedBy>String</CreatedBy>
      <CreatedDate>0001-01-01T00:00:00</CreatedDate>
      <FieldName>String</FieldName>
      <RecordId>0</RecordId>
      <ReminderDate>0001-01-01T00:00:00</ReminderDate>
      <ReminderId>00000000-0000-0000-0000-000000000000</ReminderId>
      <ReminderNote>String</ReminderNote>
      <TableName>String</TableName>
      <AgentID>0</AgentID>
      <AgentName>String</AgentName>
      <IsAdmin>false</IsAdmin>
      <RecordAgentID>0</RecordAgentID>
      <RecordAgentName>String</RecordAgentName>
    </ReminderExtended>
  </Reminder>
  <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>
</ReminderResponse>