Trendsic Platform Service

<back to all web services

FormGoSentRemoveRequest

Requires Authentication
The following routes are available for this service:
POST/v1/forms/go-sent/remove
import 'package:servicestack/servicestack.dart';

class FormGoSentRow implements IConvertible
{
    int? Id;
    String? Name;
    String? Position;
    String? FirstSentAt;
    String? FirstSentBy;
    String? LastSentAt;
    String? LastSentBy;
    int? Times;
    String? How;
    String? Went;
    String? Where;
    bool? CanRemove;

    FormGoSentRow({this.Id,this.Name,this.Position,this.FirstSentAt,this.FirstSentBy,this.LastSentAt,this.LastSentBy,this.Times,this.How,this.Went,this.Where,this.CanRemove});
    FormGoSentRow.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        Name = json['Name'];
        Position = json['Position'];
        FirstSentAt = json['FirstSentAt'];
        FirstSentBy = json['FirstSentBy'];
        LastSentAt = json['LastSentAt'];
        LastSentBy = json['LastSentBy'];
        Times = json['Times'];
        How = json['How'];
        Went = json['Went'];
        Where = json['Where'];
        CanRemove = json['CanRemove'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'Name': Name,
        'Position': Position,
        'FirstSentAt': FirstSentAt,
        'FirstSentBy': FirstSentBy,
        'LastSentAt': LastSentAt,
        'LastSentBy': LastSentBy,
        'Times': Times,
        'How': How,
        'Went': Went,
        'Where': Where,
        'CanRemove': CanRemove
    };

    getTypeName() => "FormGoSentRow";
    TypeContext? context = _ctx;
}

class FormGoSentResponse implements IConvertible
{
    List<FormGoSentRow>? Rows = [];
    String? Message;
    ResponseStatus? ResponseStatus;

    FormGoSentResponse({this.Rows,this.Message,this.ResponseStatus});
    FormGoSentResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Rows = JsonConverters.fromJson(json['Rows'],'List<FormGoSentRow>',context!);
        Message = json['Message'];
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Rows': JsonConverters.toJson(Rows,'List<FormGoSentRow>',context!),
        'Message': Message,
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
    };

    getTypeName() => "FormGoSentResponse";
    TypeContext? context = _ctx;
}

class FormGoSentRemoveRequest implements IConvertible
{
    String? FormUID;
    int? Worker;

    FormGoSentRemoveRequest({this.FormUID,this.Worker});
    FormGoSentRemoveRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        FormUID = json['FormUID'];
        Worker = json['Worker'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'FormUID': FormUID,
        'Worker': Worker
    };

    getTypeName() => "FormGoSentRemoveRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'FormGoSentRow': TypeInfo(TypeOf.Class, create:() => FormGoSentRow()),
    'FormGoSentResponse': TypeInfo(TypeOf.Class, create:() => FormGoSentResponse()),
    'List<FormGoSentRow>': TypeInfo(TypeOf.Class, create:() => <FormGoSentRow>[]),
    'FormGoSentRemoveRequest': TypeInfo(TypeOf.Class, create:() => FormGoSentRemoveRequest()),
});

Dart FormGoSentRemoveRequest 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-sent/remove HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<FormGoSentRemoveRequest 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>
  <Worker>0</Worker>
</FormGoSentRemoveRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<FormGoSentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Message>String</Message>
  <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>
  <Rows>
    <FormGoSentRow>
      <CanRemove>false</CanRemove>
      <FirstSentAt>String</FirstSentAt>
      <FirstSentBy>String</FirstSentBy>
      <How>String</How>
      <Id>0</Id>
      <LastSentAt>String</LastSentAt>
      <LastSentBy>String</LastSentBy>
      <Name>String</Name>
      <Position>String</Position>
      <Times>0</Times>
      <Went>String</Went>
      <Where>String</Where>
    </FormGoSentRow>
  </Rows>
</FormGoSentResponse>