Required role: | REGISUserRole |
POST | /DynamicsCRM/Connection/Create/Multiple |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class CRMConnectionCreateMultipleRequest
{
public ArrayList<CRMConnectionCreateRequest> connections = null;
public ArrayList<CRMConnectionCreateRequest> getConnections() { return connections; }
public CRMConnectionCreateMultipleRequest setConnections(ArrayList<CRMConnectionCreateRequest> value) { this.connections = value; return this; }
}
public static class CRMConnectionCreateRequest
{
public Integer first_regent_id = null;
public Integer second_regent_id = null;
public Boolean is_contact_to_account = null;
public Boolean is_contact_to_contact = null;
public Boolean is_account_to_account = null;
public Boolean is_account_to_contact = null;
public String first_role = null;
public String second_role = null;
public String connection_category = null;
public String description = null;
public Integer getFirstRegentId() { return first_regent_id; }
public CRMConnectionCreateRequest setFirstRegentId(Integer value) { this.first_regent_id = value; return this; }
public Integer getSecondRegentId() { return second_regent_id; }
public CRMConnectionCreateRequest setSecondRegentId(Integer value) { this.second_regent_id = value; return this; }
public Boolean getIsContactToAccount() { return is_contact_to_account; }
public CRMConnectionCreateRequest setIsContactToAccount(Boolean value) { this.is_contact_to_account = value; return this; }
public Boolean getIsContactToContact() { return is_contact_to_contact; }
public CRMConnectionCreateRequest setIsContactToContact(Boolean value) { this.is_contact_to_contact = value; return this; }
public Boolean getIsAccountToAccount() { return is_account_to_account; }
public CRMConnectionCreateRequest setIsAccountToAccount(Boolean value) { this.is_account_to_account = value; return this; }
public Boolean getIsAccountToContact() { return is_account_to_contact; }
public CRMConnectionCreateRequest setIsAccountToContact(Boolean value) { this.is_account_to_contact = value; return this; }
public String getFirstRole() { return first_role; }
public CRMConnectionCreateRequest setFirstRole(String value) { this.first_role = value; return this; }
public String getSecondRole() { return second_role; }
public CRMConnectionCreateRequest setSecondRole(String value) { this.second_role = value; return this; }
public String getConnectionCategory() { return connection_category; }
public CRMConnectionCreateRequest setConnectionCategory(String value) { this.connection_category = value; return this; }
public String getDescription() { return description; }
public CRMConnectionCreateRequest setDescription(String value) { this.description = value; return this; }
}
}
Java CRMConnectionCreateMultipleRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /DynamicsCRM/Connection/Create/Multiple HTTP/1.1
Host: data.regent-college.edu
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"connections":[{"first_regent_id":0,"second_regent_id":0,"is_contact_to_account":false,"is_contact_to_contact":false,"is_account_to_account":false,"is_account_to_contact":false,"first_role":"String","second_role":"String","connection_category":"String","description":"String"}]}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}