Required permission: | UpdateApplication |
POST | /DynamicsCRM/Application/Upsert/Multiple |
---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using regis.DynamicsCRM.Requests;
namespace regis.DynamicsCRM.Requests
{
public partial class CRMApplicationCreateRequest
{
public CRMApplicationCreateRequest()
{
language_tests = new List<CRMApplicationLanguageTestCreateRequest>{};
references = new List<CRMApplicationRefereeCreateRequest>{};
requirements = new List<CRMApplicationRequirementCreateRequest>{};
education = new List<CRMEducationUpsertRequest>{};
what_interests_you_about_regent = new List<string>{};
conditional_admission_reason = new List<string>{};
}
public virtual int regent_id { get; set; }
public virtual int import_id { get; set; }
public virtual string application_name { get; set; }
public virtual string academic_program { get; set; }
public virtual string start_term { get; set; }
public virtual string location { get; set; }
public virtual string addr1 { get; set; }
public virtual string addr2 { get; set; }
public virtual string city { get; set; }
public virtual string state { get; set; }
public virtual string country { get; set; }
public virtual string code { get; set; }
public virtual string former_name { get; set; }
public virtual string citizenship { get; set; }
public virtual string citizenship_other { get; set; }
public virtual string permanent_resident { get; set; }
public virtual string spouse_name { get; set; }
public virtual string children { get; set; }
public virtual bool native_english_speaker { get; set; }
public virtual string native_language { get; set; }
public virtual string birth_place { get; set; }
public virtual string residency_status { get; set; }
public virtual DateTime? language_test_exemption_request_date { get; set; }
public virtual DateTime? language_test_exemption_decision_date { get; set; }
public virtual string language_test_exemption_decision { get; set; }
public virtual string language_test_comment { get; set; }
public virtual List<CRMApplicationLanguageTestCreateRequest> language_tests { get; set; }
public virtual List<CRMApplicationRefereeCreateRequest> references { get; set; }
public virtual List<CRMApplicationRequirementCreateRequest> requirements { get; set; }
public virtual List<CRMEducationUpsertRequest> education { get; set; }
public virtual string church_attended { get; set; }
public virtual string pastor_first_name { get; set; }
public virtual string pastor_last_name { get; set; }
public virtual bool has_impairment { get; set; }
public virtual string impairment_description { get; set; }
public virtual bool apply_for_financial_aid { get; set; }
public virtual string financial_description { get; set; }
public virtual decimal? employment_years { get; set; }
public virtual string employment_description { get; set; }
public virtual decimal? church_volunteer_years { get; set; }
public virtual string church_volunteer_description { get; set; }
public virtual decimal? other_volunteer_years { get; set; }
public virtual string other_volunteer_description { get; set; }
public virtual string accomplishments_description { get; set; }
public virtual string what_other_graduate_schools_are_you_apply { get; set; }
public virtual string what_else_interests_you_about_regent { get; set; }
public virtual string heard_about_regent_from_book { get; set; }
public virtual string heard_about_regent_from_event { get; set; }
public virtual string heard_about_regent_from_organization { get; set; }
public virtual string heard_about_regent_from_person { get; set; }
public virtual string heard_about_regent_from_website_pub { get; set; }
public virtual List<string> what_interests_you_about_regent { get; set; }
public virtual string what_else_brought_you_to_regent { get; set; }
public virtual bool start_via_distance_ed { get; set; }
public virtual bool transfer_credits { get; set; }
public virtual string applicant_comments { get; set; }
public virtual decimal? cumulative_undergraduate_gpa { get; set; }
public virtual decimal? cumulative_graduate_gpa { get; set; }
public virtual bool conditional_admission { get; set; }
public virtual List<string> conditional_admission_reason { get; set; }
public virtual string admission_notes { get; set; }
public virtual string admission_decision_notes { get; set; }
public virtual string withdrawn_reason { get; set; }
public virtual DateTime? submitted { get; set; }
public virtual DateTime? paid { get; set; }
public virtual DateTime? reviewed { get; set; }
public virtual DateTime? completed { get; set; }
public virtual DateTime? rejected { get; set; }
public virtual DateTime? admitted { get; set; }
public virtual DateTime? postponed { get; set; }
public virtual DateTime? withdrawn { get; set; }
public virtual DateTime? confirmed { get; set; }
public virtual DateTime? read_theological_position { get; set; }
public virtual string current_status { get; set; }
public virtual string image_base64 { get; set; }
public virtual string promo_code { get; set; }
public virtual DateTime added_date { get; set; }
public virtual DateTime? last_contacted_date { get; set; }
public virtual string owning_username { get; set; }
}
public partial class CRMApplicationLanguageTestCreateRequest
{
public virtual string type { get; set; }
public virtual DateTime? test_date { get; set; }
public virtual decimal? score { get; set; }
public virtual bool applicant_defined { get; set; }
public virtual string status { get; set; }
}
public partial class CRMApplicationRefereeCreateRequest
{
public virtual int import_id { get; set; }
public virtual string first_name { get; set; }
public virtual string last_name { get; set; }
public virtual string job_title { get; set; }
public virtual string email { get; set; }
public virtual string phone { get; set; }
public virtual string type { get; set; }
public virtual string full_name { get; set; }
public virtual string position { get; set; }
public virtual string organization { get; set; }
public virtual string email_from_referee { get; set; }
public virtual string relationship { get; set; }
public virtual string relationship_details { get; set; }
public virtual string personal_evaluation { get; set; }
public virtual int? ability_question_1 { get; set; }
public virtual int? ability_question_2 { get; set; }
public virtual int? ability_question_3 { get; set; }
public virtual int? ability_question_4 { get; set; }
public virtual int? ability_question_5 { get; set; }
public virtual int? ability_question_6 { get; set; }
public virtual int? ability_question_7 { get; set; }
public virtual int? ability_question_8 { get; set; }
public virtual int? ability_question_9 { get; set; }
public virtual int? ability_question_10 { get; set; }
public virtual string qualify_assessment { get; set; }
public virtual string recommendation { get; set; }
public virtual string recommendation_details { get; set; }
public virtual bool is_regent_alum { get; set; }
public virtual bool is_complete { get; set; }
public virtual DateTime? email_sent { get; set; }
public virtual DateTime? submitted_date { get; set; }
}
public partial class CRMApplicationRequirementCreateRequest
{
public virtual string status { get; set; }
public virtual string requirement_name { get; set; }
public virtual DateTime? requested_date { get; set; }
public virtual DateTime? received_date { get; set; }
}
public partial class CRMApplicationUpsertMultipleRequest
{
public CRMApplicationUpsertMultipleRequest()
{
applications = new List<CRMApplicationCreateRequest>{};
}
public virtual List<CRMApplicationCreateRequest> applications { get; set; }
}
public partial class CRMEducationUpsertRequest
{
public virtual int regent_id { get; set; }
public virtual int? import_id { get; set; }
public virtual int? institution_regent_id { get; set; }
public virtual string application_guid { get; set; }
public virtual string degree_status { get; set; }
public virtual string degree_type { get; set; }
public virtual string unofficial_institution_name { get; set; }
public virtual string unofficial_degree_name { get; set; }
public virtual string degree_name { get; set; }
public virtual string degree_code { get; set; }
public virtual string description { get; set; }
public virtual string major { get; set; }
public virtual string second_major { get; set; }
public virtual decimal? cumulative_gpa { get; set; }
public virtual bool is_final { get; set; }
public virtual bool is_regis_external_degree { get; set; }
public virtual int? start_year { get; set; }
public virtual int? end_year { get; set; }
public virtual int? month_graduated { get; set; }
public virtual int? year_graduated { get; set; }
public virtual DateTime? added_date { get; set; }
}
}
C# CRMApplicationUpsertMultipleRequest 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/Application/Upsert/Multiple HTTP/1.1
Host: data.regent-college.edu
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
applications:
[
{
regent_id: 0,
import_id: 0,
application_name: String,
academic_program: String,
start_term: String,
location: String,
addr1: String,
addr2: String,
city: String,
state: String,
country: String,
code: String,
former_name: String,
citizenship: String,
citizenship_other: String,
permanent_resident: String,
spouse_name: String,
children: String,
native_english_speaker: False,
native_language: String,
birth_place: String,
residency_status: String,
language_test_exemption_request_date: 0001-01-01,
language_test_exemption_decision_date: 0001-01-01,
language_test_exemption_decision: String,
language_test_comment: String,
language_tests:
[
{
type: String,
test_date: 0001-01-01,
score: 0,
applicant_defined: False,
status: String
}
],
references:
[
{
import_id: 0,
first_name: String,
last_name: String,
job_title: String,
email: String,
phone: String,
type: String,
full_name: String,
position: String,
organization: String,
email_from_referee: String,
relationship: String,
relationship_details: String,
personal_evaluation: String,
ability_question_1: 0,
ability_question_2: 0,
ability_question_3: 0,
ability_question_4: 0,
ability_question_5: 0,
ability_question_6: 0,
ability_question_7: 0,
ability_question_8: 0,
ability_question_9: 0,
ability_question_10: 0,
qualify_assessment: String,
recommendation: String,
recommendation_details: String,
is_regent_alum: False,
is_complete: False,
email_sent: 0001-01-01,
submitted_date: 0001-01-01
}
],
requirements:
[
{
status: String,
requirement_name: String,
requested_date: 0001-01-01,
received_date: 0001-01-01
}
],
education:
[
{
regent_id: 0,
import_id: 0,
institution_regent_id: 0,
application_guid: String,
degree_status: String,
degree_type: String,
unofficial_institution_name: String,
unofficial_degree_name: String,
degree_name: String,
degree_code: String,
description: String,
major: String,
second_major: String,
cumulative_gpa: 0,
is_final: False,
is_regis_external_degree: False,
start_year: 0,
end_year: 0,
month_graduated: 0,
year_graduated: 0,
added_date: 0001-01-01
}
],
church_attended: String,
pastor_first_name: String,
pastor_last_name: String,
has_impairment: False,
impairment_description: String,
apply_for_financial_aid: False,
financial_description: String,
employment_years: 0,
employment_description: String,
church_volunteer_years: 0,
church_volunteer_description: String,
other_volunteer_years: 0,
other_volunteer_description: String,
accomplishments_description: String,
what_other_graduate_schools_are_you_apply: String,
what_else_interests_you_about_regent: String,
heard_about_regent_from_book: String,
heard_about_regent_from_event: String,
heard_about_regent_from_organization: String,
heard_about_regent_from_person: String,
heard_about_regent_from_website_pub: String,
what_interests_you_about_regent:
[
String
],
what_else_brought_you_to_regent: String,
start_via_distance_ed: False,
transfer_credits: False,
applicant_comments: String,
cumulative_undergraduate_gpa: 0,
cumulative_graduate_gpa: 0,
conditional_admission: False,
conditional_admission_reason:
[
String
],
admission_notes: String,
admission_decision_notes: String,
withdrawn_reason: String,
submitted: 0001-01-01,
paid: 0001-01-01,
reviewed: 0001-01-01,
completed: 0001-01-01,
rejected: 0001-01-01,
admitted: 0001-01-01,
postponed: 0001-01-01,
withdrawn: 0001-01-01,
confirmed: 0001-01-01,
read_theological_position: 0001-01-01,
current_status: String,
image_base64: String,
promo_code: String,
added_date: 0001-01-01,
last_contacted_date: 0001-01-01,
owning_username: String
}
]
}
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 } }