regis

<back to all web services

CRMAccountCreateRequest

Requires Authentication
Required role:REGISUserRole
The following routes are available for this service:
POST/DynamicsCRM/Account/Create
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class CRMAccountCreateRequest
    {
        public Integer regent_id = null;
        public String name = null;
        public String other_name = null;
        public String business_type = null;
        public String regent_friendly_church = null;
        public String educational_affiliation = null;
        public String reason_added = null;
        public String connection_to_regent = null;
        public String denomination = null;
        public String addr1 = null;
        public String addr2 = null;
        public String city = null;
        public String state = null;
        public String country = null;
        public String code = null;
        public String email = null;
        public String solicitation_method = null;
        public String solicitation_exceptions = null;
        public Boolean campaign_monitor_optin = null;
        public Boolean campaign_monitor_suppressed = null;
        public String campaign_monitor_lists = null;
        public String phone_home = null;
        public String phone_bus = null;
        public String phone_cell = null;
        public Boolean no_mail = null;
        public Boolean no_email = null;
        public Boolean no_bulk_email = null;
        public Boolean no_phone = null;
        public Boolean no_marketing_materials = null;
        public Boolean prefers_email = null;
        public Boolean prefers_phone = null;
        public String image_base64 = null;
        public String owning_username = null;
        
        public Integer getRegentId() { return regent_id; }
        public CRMAccountCreateRequest setRegentId(Integer value) { this.regent_id = value; return this; }
        public String getName() { return name; }
        public CRMAccountCreateRequest setName(String value) { this.name = value; return this; }
        public String getOtherName() { return other_name; }
        public CRMAccountCreateRequest setOtherName(String value) { this.other_name = value; return this; }
        public String getBusinessType() { return business_type; }
        public CRMAccountCreateRequest setBusinessType(String value) { this.business_type = value; return this; }
        public String getRegentFriendlyChurch() { return regent_friendly_church; }
        public CRMAccountCreateRequest setRegentFriendlyChurch(String value) { this.regent_friendly_church = value; return this; }
        public String getEducationalAffiliation() { return educational_affiliation; }
        public CRMAccountCreateRequest setEducationalAffiliation(String value) { this.educational_affiliation = value; return this; }
        public String getReasonAdded() { return reason_added; }
        public CRMAccountCreateRequest setReasonAdded(String value) { this.reason_added = value; return this; }
        public String getConnectionToRegent() { return connection_to_regent; }
        public CRMAccountCreateRequest setConnectionToRegent(String value) { this.connection_to_regent = value; return this; }
        public String getDenomination() { return denomination; }
        public CRMAccountCreateRequest setDenomination(String value) { this.denomination = value; return this; }
        public String getAddr1() { return addr1; }
        public CRMAccountCreateRequest setAddr1(String value) { this.addr1 = value; return this; }
        public String getAddr2() { return addr2; }
        public CRMAccountCreateRequest setAddr2(String value) { this.addr2 = value; return this; }
        public String getCity() { return city; }
        public CRMAccountCreateRequest setCity(String value) { this.city = value; return this; }
        public String getState() { return state; }
        public CRMAccountCreateRequest setState(String value) { this.state = value; return this; }
        public String getCountry() { return country; }
        public CRMAccountCreateRequest setCountry(String value) { this.country = value; return this; }
        public String getCode() { return code; }
        public CRMAccountCreateRequest setCode(String value) { this.code = value; return this; }
        public String getEmail() { return email; }
        public CRMAccountCreateRequest setEmail(String value) { this.email = value; return this; }
        public String getSolicitationMethod() { return solicitation_method; }
        public CRMAccountCreateRequest setSolicitationMethod(String value) { this.solicitation_method = value; return this; }
        public String getSolicitationExceptions() { return solicitation_exceptions; }
        public CRMAccountCreateRequest setSolicitationExceptions(String value) { this.solicitation_exceptions = value; return this; }
        public Boolean isCampaignMonitorOptin() { return campaign_monitor_optin; }
        public CRMAccountCreateRequest setCampaignMonitorOptin(Boolean value) { this.campaign_monitor_optin = value; return this; }
        public Boolean isCampaignMonitorSuppressed() { return campaign_monitor_suppressed; }
        public CRMAccountCreateRequest setCampaignMonitorSuppressed(Boolean value) { this.campaign_monitor_suppressed = value; return this; }
        public String getCampaignMonitorLists() { return campaign_monitor_lists; }
        public CRMAccountCreateRequest setCampaignMonitorLists(String value) { this.campaign_monitor_lists = value; return this; }
        public String getPhoneHome() { return phone_home; }
        public CRMAccountCreateRequest setPhoneHome(String value) { this.phone_home = value; return this; }
        public String getPhoneBus() { return phone_bus; }
        public CRMAccountCreateRequest setPhoneBus(String value) { this.phone_bus = value; return this; }
        public String getPhoneCell() { return phone_cell; }
        public CRMAccountCreateRequest setPhoneCell(String value) { this.phone_cell = value; return this; }
        public Boolean isNoMail() { return no_mail; }
        public CRMAccountCreateRequest setNoMail(Boolean value) { this.no_mail = value; return this; }
        public Boolean isNoEmail() { return no_email; }
        public CRMAccountCreateRequest setNoEmail(Boolean value) { this.no_email = value; return this; }
        public Boolean isNoBulkEmail() { return no_bulk_email; }
        public CRMAccountCreateRequest setNoBulkEmail(Boolean value) { this.no_bulk_email = value; return this; }
        public Boolean isNoPhone() { return no_phone; }
        public CRMAccountCreateRequest setNoPhone(Boolean value) { this.no_phone = value; return this; }
        public Boolean isNoMarketingMaterials() { return no_marketing_materials; }
        public CRMAccountCreateRequest setNoMarketingMaterials(Boolean value) { this.no_marketing_materials = value; return this; }
        public Boolean isPrefersEmail() { return prefers_email; }
        public CRMAccountCreateRequest setPrefersEmail(Boolean value) { this.prefers_email = value; return this; }
        public Boolean isPrefersPhone() { return prefers_phone; }
        public CRMAccountCreateRequest setPrefersPhone(Boolean value) { this.prefers_phone = value; return this; }
        public String getImageBase64() { return image_base64; }
        public CRMAccountCreateRequest setImageBase64(String value) { this.image_base64 = value; return this; }
        public String getOwningUsername() { return owning_username; }
        public CRMAccountCreateRequest setOwningUsername(String value) { this.owning_username = value; return this; }
    }

}

Java CRMAccountCreateRequest 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 /DynamicsCRM/Account/Create HTTP/1.1 
Host: data.regent-college.edu 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<CRMAccountCreateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.DynamicsCRM.Requests">
  <addr1>String</addr1>
  <addr2>String</addr2>
  <business_type>String</business_type>
  <campaign_monitor_lists>String</campaign_monitor_lists>
  <campaign_monitor_optin>false</campaign_monitor_optin>
  <campaign_monitor_suppressed>false</campaign_monitor_suppressed>
  <city>String</city>
  <code>String</code>
  <connection_to_regent>String</connection_to_regent>
  <country>String</country>
  <denomination>String</denomination>
  <educational_affiliation>String</educational_affiliation>
  <email>String</email>
  <image_base64>String</image_base64>
  <name>String</name>
  <no_bulk_email>false</no_bulk_email>
  <no_email>false</no_email>
  <no_mail>false</no_mail>
  <no_marketing_materials>false</no_marketing_materials>
  <no_phone>false</no_phone>
  <other_name>String</other_name>
  <owning_username>String</owning_username>
  <phone_bus>String</phone_bus>
  <phone_cell>String</phone_cell>
  <phone_home>String</phone_home>
  <prefers_email>false</prefers_email>
  <prefers_phone>false</prefers_phone>
  <reason_added>String</reason_added>
  <regent_friendly_church>String</regent_friendly_church>
  <regent_id>0</regent_id>
  <solicitation_exceptions>String</solicitation_exceptions>
  <solicitation_method>String</solicitation_method>
  <state>String</state>
</CRMAccountCreateRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ResponseStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
  <ErrorCode>String</ErrorCode>
  <Message>String</Message>
  <StackTrace>String</StackTrace>
  <Errors>
    <ResponseError>
      <ErrorCode>String</ErrorCode>
      <FieldName>String</FieldName>
      <Message>String</Message>
      <Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:KeyValueOfstringstring>
          <d4p1:Key>String</d4p1:Key>
          <d4p1:Value>String</d4p1:Value>
        </d4p1:KeyValueOfstringstring>
      </Meta>
    </ResponseError>
  </Errors>
  <Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Meta>
</ResponseStatus>