Required permission: | UpdateApplication |
POST | /DynamicsCRM/Application/Upsert/Multiple |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*
open class CRMApplicationUpsertMultipleRequest
{
var applications:ArrayList<CRMApplicationCreateRequest> = ArrayList<CRMApplicationCreateRequest>()
}
open class CRMApplicationCreateRequest
{
var regent_id:Int? = null
var import_id:Int? = null
var application_name:String? = null
var academic_program:String? = null
var start_term:String? = null
var location:String? = null
var addr1:String? = null
var addr2:String? = null
var city:String? = null
var state:String? = null
var country:String? = null
var code:String? = null
var former_name:String? = null
var citizenship:String? = null
var citizenship_other:String? = null
var permanent_resident:String? = null
var spouse_name:String? = null
var children:String? = null
var native_english_speaker:Boolean? = null
var native_language:String? = null
var birth_place:String? = null
var residency_status:String? = null
var language_test_exemption_request_date:Date? = null
var language_test_exemption_decision_date:Date? = null
var language_test_exemption_decision:String? = null
var language_test_comment:String? = null
var language_tests:ArrayList<CRMApplicationLanguageTestCreateRequest> = ArrayList<CRMApplicationLanguageTestCreateRequest>()
var references:ArrayList<CRMApplicationRefereeCreateRequest> = ArrayList<CRMApplicationRefereeCreateRequest>()
var requirements:ArrayList<CRMApplicationRequirementCreateRequest> = ArrayList<CRMApplicationRequirementCreateRequest>()
var education:ArrayList<CRMEducationUpsertRequest> = ArrayList<CRMEducationUpsertRequest>()
var church_attended:String? = null
var pastor_first_name:String? = null
var pastor_last_name:String? = null
var has_impairment:Boolean? = null
var impairment_description:String? = null
var apply_for_financial_aid:Boolean? = null
var financial_description:String? = null
var employment_years:BigDecimal? = null
var employment_description:String? = null
var church_volunteer_years:BigDecimal? = null
var church_volunteer_description:String? = null
var other_volunteer_years:BigDecimal? = null
var other_volunteer_description:String? = null
var accomplishments_description:String? = null
var what_other_graduate_schools_are_you_apply:String? = null
var what_else_interests_you_about_regent:String? = null
var heard_about_regent_from_book:String? = null
var heard_about_regent_from_event:String? = null
var heard_about_regent_from_organization:String? = null
var heard_about_regent_from_person:String? = null
var heard_about_regent_from_website_pub:String? = null
var what_interests_you_about_regent:ArrayList<String> = ArrayList<String>()
var what_else_brought_you_to_regent:String? = null
var start_via_distance_ed:Boolean? = null
var transfer_credits:Boolean? = null
var applicant_comments:String? = null
var cumulative_undergraduate_gpa:BigDecimal? = null
var cumulative_graduate_gpa:BigDecimal? = null
var conditional_admission:Boolean? = null
var conditional_admission_reason:ArrayList<String> = ArrayList<String>()
var admission_notes:String? = null
var admission_decision_notes:String? = null
var withdrawn_reason:String? = null
var submitted:Date? = null
var paid:Date? = null
var reviewed:Date? = null
var completed:Date? = null
var rejected:Date? = null
var admitted:Date? = null
var postponed:Date? = null
var withdrawn:Date? = null
var confirmed:Date? = null
var read_theological_position:Date? = null
var current_status:String? = null
var image_base64:String? = null
var promo_code:String? = null
var added_date:Date? = null
var last_contacted_date:Date? = null
var owning_username:String? = null
}
open class CRMApplicationLanguageTestCreateRequest
{
@SerializedName("type") var Type:String? = null
var test_date:Date? = null
var score:BigDecimal? = null
var applicant_defined:Boolean? = null
var status:String? = null
}
open class CRMApplicationRefereeCreateRequest
{
var import_id:Int? = null
var first_name:String? = null
var last_name:String? = null
var job_title:String? = null
var email:String? = null
var phone:String? = null
@SerializedName("type") var Type:String? = null
var full_name:String? = null
var position:String? = null
var organization:String? = null
var email_from_referee:String? = null
var relationship:String? = null
var relationship_details:String? = null
var personal_evaluation:String? = null
var ability_question_1:Int? = null
var ability_question_2:Int? = null
var ability_question_3:Int? = null
var ability_question_4:Int? = null
var ability_question_5:Int? = null
var ability_question_6:Int? = null
var ability_question_7:Int? = null
var ability_question_8:Int? = null
var ability_question_9:Int? = null
var ability_question_10:Int? = null
var qualify_assessment:String? = null
var recommendation:String? = null
var recommendation_details:String? = null
var is_regent_alum:Boolean? = null
var is_complete:Boolean? = null
var email_sent:Date? = null
var submitted_date:Date? = null
}
open class CRMApplicationRequirementCreateRequest
{
var status:String? = null
var requirement_name:String? = null
var requested_date:Date? = null
var received_date:Date? = null
}
open class CRMEducationUpsertRequest
{
var regent_id:Int? = null
var import_id:Int? = null
var institution_regent_id:Int? = null
var application_guid:String? = null
var degree_status:String? = null
var degree_type:String? = null
var unofficial_institution_name:String? = null
var unofficial_degree_name:String? = null
var degree_name:String? = null
var degree_code:String? = null
var description:String? = null
var major:String? = null
var second_major:String? = null
var cumulative_gpa:BigDecimal? = null
var is_final:Boolean? = null
var is_regis_external_degree:Boolean? = null
var start_year:Int? = null
var end_year:Int? = null
var month_graduated:Int? = null
var year_graduated:Int? = null
var added_date:Date? = null
}
Kotlin CRMApplicationUpsertMultipleRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<CRMApplicationUpsertMultipleRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.DynamicsCRM.Requests">
<applications>
<CRMApplicationCreateRequest>
<academic_program>String</academic_program>
<accomplishments_description>String</accomplishments_description>
<added_date>0001-01-01T00:00:00</added_date>
<addr1>String</addr1>
<addr2>String</addr2>
<admission_decision_notes>String</admission_decision_notes>
<admission_notes>String</admission_notes>
<admitted>0001-01-01T00:00:00</admitted>
<applicant_comments>String</applicant_comments>
<application_name>String</application_name>
<apply_for_financial_aid>false</apply_for_financial_aid>
<birth_place>String</birth_place>
<children>String</children>
<church_attended>String</church_attended>
<church_volunteer_description>String</church_volunteer_description>
<church_volunteer_years>0</church_volunteer_years>
<citizenship>String</citizenship>
<citizenship_other>String</citizenship_other>
<city>String</city>
<code>String</code>
<completed>0001-01-01T00:00:00</completed>
<conditional_admission>false</conditional_admission>
<conditional_admission_reason xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</conditional_admission_reason>
<confirmed>0001-01-01T00:00:00</confirmed>
<country>String</country>
<cumulative_graduate_gpa>0</cumulative_graduate_gpa>
<cumulative_undergraduate_gpa>0</cumulative_undergraduate_gpa>
<current_status>String</current_status>
<education>
<CRMEducationUpsertRequest>
<added_date>0001-01-01T00:00:00</added_date>
<application_guid>String</application_guid>
<cumulative_gpa>0</cumulative_gpa>
<degree_code>String</degree_code>
<degree_name>String</degree_name>
<degree_status>String</degree_status>
<degree_type>String</degree_type>
<description>String</description>
<end_year>0</end_year>
<import_id>0</import_id>
<institution_regent_id>0</institution_regent_id>
<is_final>false</is_final>
<is_regis_external_degree>false</is_regis_external_degree>
<major>String</major>
<month_graduated>0</month_graduated>
<regent_id>0</regent_id>
<second_major>String</second_major>
<start_year>0</start_year>
<unofficial_degree_name>String</unofficial_degree_name>
<unofficial_institution_name>String</unofficial_institution_name>
<year_graduated>0</year_graduated>
</CRMEducationUpsertRequest>
</education>
<employment_description>String</employment_description>
<employment_years>0</employment_years>
<financial_description>String</financial_description>
<former_name>String</former_name>
<has_impairment>false</has_impairment>
<heard_about_regent_from_book>String</heard_about_regent_from_book>
<heard_about_regent_from_event>String</heard_about_regent_from_event>
<heard_about_regent_from_organization>String</heard_about_regent_from_organization>
<heard_about_regent_from_person>String</heard_about_regent_from_person>
<heard_about_regent_from_website_pub>String</heard_about_regent_from_website_pub>
<image_base64>String</image_base64>
<impairment_description>String</impairment_description>
<import_id>0</import_id>
<language_test_comment>String</language_test_comment>
<language_test_exemption_decision>String</language_test_exemption_decision>
<language_test_exemption_decision_date>0001-01-01T00:00:00</language_test_exemption_decision_date>
<language_test_exemption_request_date>0001-01-01T00:00:00</language_test_exemption_request_date>
<language_tests>
<CRMApplicationLanguageTestCreateRequest>
<applicant_defined>false</applicant_defined>
<score>0</score>
<status>String</status>
<test_date>0001-01-01T00:00:00</test_date>
<type>String</type>
</CRMApplicationLanguageTestCreateRequest>
</language_tests>
<last_contacted_date>0001-01-01T00:00:00</last_contacted_date>
<location>String</location>
<native_english_speaker>false</native_english_speaker>
<native_language>String</native_language>
<other_volunteer_description>String</other_volunteer_description>
<other_volunteer_years>0</other_volunteer_years>
<owning_username>String</owning_username>
<paid>0001-01-01T00:00:00</paid>
<pastor_first_name>String</pastor_first_name>
<pastor_last_name>String</pastor_last_name>
<permanent_resident>String</permanent_resident>
<postponed>0001-01-01T00:00:00</postponed>
<promo_code>String</promo_code>
<read_theological_position>0001-01-01T00:00:00</read_theological_position>
<references>
<CRMApplicationRefereeCreateRequest>
<ability_question_1>0</ability_question_1>
<ability_question_10>0</ability_question_10>
<ability_question_2>0</ability_question_2>
<ability_question_3>0</ability_question_3>
<ability_question_4>0</ability_question_4>
<ability_question_5>0</ability_question_5>
<ability_question_6>0</ability_question_6>
<ability_question_7>0</ability_question_7>
<ability_question_8>0</ability_question_8>
<ability_question_9>0</ability_question_9>
<email>String</email>
<email_from_referee>String</email_from_referee>
<email_sent>0001-01-01T00:00:00</email_sent>
<first_name>String</first_name>
<full_name>String</full_name>
<import_id>0</import_id>
<is_complete>false</is_complete>
<is_regent_alum>false</is_regent_alum>
<job_title>String</job_title>
<last_name>String</last_name>
<organization>String</organization>
<personal_evaluation>String</personal_evaluation>
<phone>String</phone>
<position>String</position>
<qualify_assessment>String</qualify_assessment>
<recommendation>String</recommendation>
<recommendation_details>String</recommendation_details>
<relationship>String</relationship>
<relationship_details>String</relationship_details>
<submitted_date>0001-01-01T00:00:00</submitted_date>
<type>String</type>
</CRMApplicationRefereeCreateRequest>
</references>
<regent_id>0</regent_id>
<rejected>0001-01-01T00:00:00</rejected>
<requirements>
<CRMApplicationRequirementCreateRequest>
<received_date>0001-01-01T00:00:00</received_date>
<requested_date>0001-01-01T00:00:00</requested_date>
<requirement_name>String</requirement_name>
<status>String</status>
</CRMApplicationRequirementCreateRequest>
</requirements>
<residency_status>String</residency_status>
<reviewed>0001-01-01T00:00:00</reviewed>
<spouse_name>String</spouse_name>
<start_term>String</start_term>
<start_via_distance_ed>false</start_via_distance_ed>
<state>String</state>
<submitted>0001-01-01T00:00:00</submitted>
<transfer_credits>false</transfer_credits>
<what_else_brought_you_to_regent>String</what_else_brought_you_to_regent>
<what_else_interests_you_about_regent>String</what_else_interests_you_about_regent>
<what_interests_you_about_regent xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</what_interests_you_about_regent>
<what_other_graduate_schools_are_you_apply>String</what_other_graduate_schools_are_you_apply>
<withdrawn>0001-01-01T00:00:00</withdrawn>
<withdrawn_reason>String</withdrawn_reason>
</CRMApplicationCreateRequest>
</applications>
</CRMApplicationUpsertMultipleRequest>
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>