Required role: | REGISUserRole |
POST | /DynamicsCRM/Activity/Create/Multiple |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class CRMActivityCreateMultipleRequest
{
public Boolean is_contact = null;
public Boolean is_account = null;
public Boolean is_event = null;
public Boolean is_email = null;
public Boolean is_meeting = null;
public Boolean is_phonecall = null;
public Boolean is_letter = null;
public Boolean is_task = null;
public String related_username = null;
public ArrayList<CRMActivityCreateRequest> activities = null;
public Boolean getIsContact() { return is_contact; }
public CRMActivityCreateMultipleRequest setIsContact(Boolean value) { this.is_contact = value; return this; }
public Boolean getIsAccount() { return is_account; }
public CRMActivityCreateMultipleRequest setIsAccount(Boolean value) { this.is_account = value; return this; }
public Boolean getIsEvent() { return is_event; }
public CRMActivityCreateMultipleRequest setIsEvent(Boolean value) { this.is_event = value; return this; }
public Boolean getIsEmail() { return is_email; }
public CRMActivityCreateMultipleRequest setIsEmail(Boolean value) { this.is_email = value; return this; }
public Boolean getIsMeeting() { return is_meeting; }
public CRMActivityCreateMultipleRequest setIsMeeting(Boolean value) { this.is_meeting = value; return this; }
public Boolean getIsPhonecall() { return is_phonecall; }
public CRMActivityCreateMultipleRequest setIsPhonecall(Boolean value) { this.is_phonecall = value; return this; }
public Boolean getIsLetter() { return is_letter; }
public CRMActivityCreateMultipleRequest setIsLetter(Boolean value) { this.is_letter = value; return this; }
public Boolean getIsTask() { return is_task; }
public CRMActivityCreateMultipleRequest setIsTask(Boolean value) { this.is_task = value; return this; }
public String getRelatedUsername() { return related_username; }
public CRMActivityCreateMultipleRequest setRelatedUsername(String value) { this.related_username = value; return this; }
public ArrayList<CRMActivityCreateRequest> getActivities() { return activities; }
public CRMActivityCreateMultipleRequest setActivities(ArrayList<CRMActivityCreateRequest> value) { this.activities = value; return this; }
}
public static class CRMActivityCreateRequest
{
public Integer regent_id = null;
public String lead_guid = null;
public Integer import_id = null;
public String subject = null;
public String description = null;
public String phone_email = null;
public ArrayList<String> email_cc = null;
public String gmail_thread_index = null;
public String related_username = null;
public Date scheduled_start = null;
public Date scheduled_end = null;
public String event_location = null;
public String event_type = null;
public String event_participation = null;
public Boolean is_completed = null;
public Boolean is_contact = null;
public Boolean is_lead = null;
public Boolean is_account = null;
public Boolean is_email = null;
public Boolean is_letter = null;
public Boolean is_phonecall = null;
public Boolean is_task = null;
public Boolean is_meeting = null;
public Boolean is_event = null;
public Date date_of_occurrence = null;
public Date added_date = null;
public Integer getRegentId() { return regent_id; }
public CRMActivityCreateRequest setRegentId(Integer value) { this.regent_id = value; return this; }
public String getLeadGuid() { return lead_guid; }
public CRMActivityCreateRequest setLeadGuid(String value) { this.lead_guid = value; return this; }
public Integer getImportId() { return import_id; }
public CRMActivityCreateRequest setImportId(Integer value) { this.import_id = value; return this; }
public String getSubject() { return subject; }
public CRMActivityCreateRequest setSubject(String value) { this.subject = value; return this; }
public String getDescription() { return description; }
public CRMActivityCreateRequest setDescription(String value) { this.description = value; return this; }
public String getPhoneEmail() { return phone_email; }
public CRMActivityCreateRequest setPhoneEmail(String value) { this.phone_email = value; return this; }
public ArrayList<String> getEmailCc() { return email_cc; }
public CRMActivityCreateRequest setEmailCc(ArrayList<String> value) { this.email_cc = value; return this; }
public String getGmailThreadIndex() { return gmail_thread_index; }
public CRMActivityCreateRequest setGmailThreadIndex(String value) { this.gmail_thread_index = value; return this; }
public String getRelatedUsername() { return related_username; }
public CRMActivityCreateRequest setRelatedUsername(String value) { this.related_username = value; return this; }
public Date getScheduledStart() { return scheduled_start; }
public CRMActivityCreateRequest setScheduledStart(Date value) { this.scheduled_start = value; return this; }
public Date getScheduledEnd() { return scheduled_end; }
public CRMActivityCreateRequest setScheduledEnd(Date value) { this.scheduled_end = value; return this; }
public String getEventLocation() { return event_location; }
public CRMActivityCreateRequest setEventLocation(String value) { this.event_location = value; return this; }
public String getEventType() { return event_type; }
public CRMActivityCreateRequest setEventType(String value) { this.event_type = value; return this; }
public String getEventParticipation() { return event_participation; }
public CRMActivityCreateRequest setEventParticipation(String value) { this.event_participation = value; return this; }
public Boolean getIsCompleted() { return is_completed; }
public CRMActivityCreateRequest setIsCompleted(Boolean value) { this.is_completed = value; return this; }
public Boolean getIsContact() { return is_contact; }
public CRMActivityCreateRequest setIsContact(Boolean value) { this.is_contact = value; return this; }
public Boolean getIsLead() { return is_lead; }
public CRMActivityCreateRequest setIsLead(Boolean value) { this.is_lead = value; return this; }
public Boolean getIsAccount() { return is_account; }
public CRMActivityCreateRequest setIsAccount(Boolean value) { this.is_account = value; return this; }
public Boolean getIsEmail() { return is_email; }
public CRMActivityCreateRequest setIsEmail(Boolean value) { this.is_email = value; return this; }
public Boolean getIsLetter() { return is_letter; }
public CRMActivityCreateRequest setIsLetter(Boolean value) { this.is_letter = value; return this; }
public Boolean getIsPhonecall() { return is_phonecall; }
public CRMActivityCreateRequest setIsPhonecall(Boolean value) { this.is_phonecall = value; return this; }
public Boolean getIsTask() { return is_task; }
public CRMActivityCreateRequest setIsTask(Boolean value) { this.is_task = value; return this; }
public Boolean getIsMeeting() { return is_meeting; }
public CRMActivityCreateRequest setIsMeeting(Boolean value) { this.is_meeting = value; return this; }
public Boolean getIsEvent() { return is_event; }
public CRMActivityCreateRequest setIsEvent(Boolean value) { this.is_event = value; return this; }
public Date getDateOfOccurrence() { return date_of_occurrence; }
public CRMActivityCreateRequest setDateOfOccurrence(Date value) { this.date_of_occurrence = value; return this; }
public Date getAddedDate() { return added_date; }
public CRMActivityCreateRequest setAddedDate(Date value) { this.added_date = value; return this; }
}
}
Java CRMActivityCreateMultipleRequest 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/Activity/Create/Multiple HTTP/1.1
Host: data.regent-college.edu
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
is_contact: False,
is_account: False,
is_event: False,
is_email: False,
is_meeting: False,
is_phonecall: False,
is_letter: False,
is_task: False,
related_username: String,
activities:
[
{
regent_id: 0,
lead_guid: String,
import_id: 0,
subject: String,
description: String,
phone_email: String,
email_cc:
[
String
],
gmail_thread_index: String,
related_username: String,
scheduled_start: 0001-01-01,
scheduled_end: 0001-01-01,
event_location: String,
event_type: String,
event_participation: String,
is_completed: False,
is_contact: False,
is_lead: False,
is_account: False,
is_email: False,
is_letter: False,
is_phonecall: False,
is_task: False,
is_meeting: False,
is_event: False,
date_of_occurrence: 0001-01-01,
added_date: 0001-01-01
}
]
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { errorCode: String, message: String, stackTrace: String, errors: [ { errorCode: String, fieldName: String, message: String, meta: { String: String } } ], meta: { String: String } }