Required role: | REGISUserRole |
POST | /DynamicsCRM/Lead/Search |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class CRMLeadSearchRequest
{
public String email = null;
public String getEmail() { return email; }
public CRMLeadSearchRequest setEmail(String value) { this.email = value; return this; }
}
public static class CRMLeadResponse
{
public ResponseStatus responseStatus = null;
public String guid = null;
public String first_name = null;
public String last_name = null;
public String middle_name = null;
public String preferred_name = null;
public String former_name = null;
public String prefix = null;
public String spouse_name = 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 citizenship = null;
public String citizenship_other = null;
public String permanent_resident = null;
public Date dob = null;
public String denomination = null;
public String gender = null;
public String marital_status = null;
public Boolean send_admissions_marketing_materials = null;
public String email = null;
public String email_secondary = null;
public String phone_home = null;
public String phone_bus = null;
public String phone_cell = null;
public String added_by = null;
public Date added_date = null;
public String changed_by = null;
public Date changed_date = null;
public String owner_full_name = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public CRMLeadResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public String getGuid() { return guid; }
public CRMLeadResponse setGuid(String value) { this.guid = value; return this; }
public String getFirstName() { return first_name; }
public CRMLeadResponse setFirstName(String value) { this.first_name = value; return this; }
public String getLastName() { return last_name; }
public CRMLeadResponse setLastName(String value) { this.last_name = value; return this; }
public String getMiddleName() { return middle_name; }
public CRMLeadResponse setMiddleName(String value) { this.middle_name = value; return this; }
public String getPreferredName() { return preferred_name; }
public CRMLeadResponse setPreferredName(String value) { this.preferred_name = value; return this; }
public String getFormerName() { return former_name; }
public CRMLeadResponse setFormerName(String value) { this.former_name = value; return this; }
public String getPrefix() { return prefix; }
public CRMLeadResponse setPrefix(String value) { this.prefix = value; return this; }
public String getSpouseName() { return spouse_name; }
public CRMLeadResponse setSpouseName(String value) { this.spouse_name = value; return this; }
public String getAddr1() { return addr1; }
public CRMLeadResponse setAddr1(String value) { this.addr1 = value; return this; }
public String getAddr2() { return addr2; }
public CRMLeadResponse setAddr2(String value) { this.addr2 = value; return this; }
public String getCity() { return city; }
public CRMLeadResponse setCity(String value) { this.city = value; return this; }
public String getState() { return state; }
public CRMLeadResponse setState(String value) { this.state = value; return this; }
public String getCountry() { return country; }
public CRMLeadResponse setCountry(String value) { this.country = value; return this; }
public String getCode() { return code; }
public CRMLeadResponse setCode(String value) { this.code = value; return this; }
public String getCitizenship() { return citizenship; }
public CRMLeadResponse setCitizenship(String value) { this.citizenship = value; return this; }
public String getCitizenshipOther() { return citizenship_other; }
public CRMLeadResponse setCitizenshipOther(String value) { this.citizenship_other = value; return this; }
public String getPermanentResident() { return permanent_resident; }
public CRMLeadResponse setPermanentResident(String value) { this.permanent_resident = value; return this; }
public Date getDob() { return dob; }
public CRMLeadResponse setDob(Date value) { this.dob = value; return this; }
public String getDenomination() { return denomination; }
public CRMLeadResponse setDenomination(String value) { this.denomination = value; return this; }
public String getGender() { return gender; }
public CRMLeadResponse setGender(String value) { this.gender = value; return this; }
public String getMaritalStatus() { return marital_status; }
public CRMLeadResponse setMaritalStatus(String value) { this.marital_status = value; return this; }
public Boolean isSendAdmissionsMarketingMaterials() { return send_admissions_marketing_materials; }
public CRMLeadResponse setSendAdmissionsMarketingMaterials(Boolean value) { this.send_admissions_marketing_materials = value; return this; }
public String getEmail() { return email; }
public CRMLeadResponse setEmail(String value) { this.email = value; return this; }
public String getEmailSecondary() { return email_secondary; }
public CRMLeadResponse setEmailSecondary(String value) { this.email_secondary = value; return this; }
public String getPhoneHome() { return phone_home; }
public CRMLeadResponse setPhoneHome(String value) { this.phone_home = value; return this; }
public String getPhoneBus() { return phone_bus; }
public CRMLeadResponse setPhoneBus(String value) { this.phone_bus = value; return this; }
public String getPhoneCell() { return phone_cell; }
public CRMLeadResponse setPhoneCell(String value) { this.phone_cell = value; return this; }
public String getAddedBy() { return added_by; }
public CRMLeadResponse setAddedBy(String value) { this.added_by = value; return this; }
public Date getAddedDate() { return added_date; }
public CRMLeadResponse setAddedDate(Date value) { this.added_date = value; return this; }
public String getChangedBy() { return changed_by; }
public CRMLeadResponse setChangedBy(String value) { this.changed_by = value; return this; }
public Date getChangedDate() { return changed_date; }
public CRMLeadResponse setChangedDate(Date value) { this.changed_date = value; return this; }
public String getOwnerFullName() { return owner_full_name; }
public CRMLeadResponse setOwnerFullName(String value) { this.owner_full_name = value; return this; }
}
}
Java CRMLeadSearchRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /DynamicsCRM/Lead/Search HTTP/1.1
Host: data.regent-college.edu
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
email: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { responseStatus: { errorCode: String, message: String, stackTrace: String, errors: [ { errorCode: String, fieldName: String, message: String, meta: { String: String } } ], meta: { String: String } }, guid: String, first_name: String, last_name: String, middle_name: String, preferred_name: String, former_name: String, prefix: String, spouse_name: String, addr1: String, addr2: String, city: String, state: String, country: String, code: String, citizenship: String, citizenship_other: String, permanent_resident: String, dob: 0001-01-01, denomination: String, gender: String, marital_status: String, send_admissions_marketing_materials: False, email: String, email_secondary: String, phone_home: String, phone_bus: String, phone_cell: String, added_by: String, added_date: 0001-01-01, changed_by: String, changed_date: 0001-01-01, owner_full_name: String }