regis

<back to all web services

CRMAccountUpsertMultipleRequest

Requires Authentication
Required role:REGISUserRole
The following routes are available for this service:
POST/DynamicsCRM/Account/Upsert/Multiple
"use strict";
export class CRMAccountCreateRequest {
    /** @param {{regent_id?:number,name?:string,other_name?:string,business_type?:string,regent_friendly_church?:string,educational_affiliation?:string,reason_added?:string,connection_to_regent?:string,denomination?:string,addr1?:string,addr2?:string,city?:string,state?:string,country?:string,code?:string,email?:string,solicitation_method?:string,solicitation_exceptions?:string,campaign_monitor_optin?:boolean,campaign_monitor_suppressed?:boolean,campaign_monitor_lists?:string,phone_home?:string,phone_bus?:string,phone_cell?:string,no_mail?:boolean,no_email?:boolean,no_bulk_email?:boolean,no_phone?:boolean,no_marketing_materials?:boolean,prefers_email?:boolean,prefers_phone?:boolean,image_base64?:string,owning_username?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {?number} */
    regent_id;
    /** @type {string} */
    name;
    /** @type {string} */
    other_name;
    /** @type {string} */
    business_type;
    /** @type {string} */
    regent_friendly_church;
    /** @type {string} */
    educational_affiliation;
    /** @type {string} */
    reason_added;
    /** @type {string} */
    connection_to_regent;
    /** @type {string} */
    denomination;
    /** @type {string} */
    addr1;
    /** @type {string} */
    addr2;
    /** @type {string} */
    city;
    /** @type {string} */
    state;
    /** @type {string} */
    country;
    /** @type {string} */
    code;
    /** @type {string} */
    email;
    /** @type {string} */
    solicitation_method;
    /** @type {string} */
    solicitation_exceptions;
    /** @type {boolean} */
    campaign_monitor_optin;
    /** @type {boolean} */
    campaign_monitor_suppressed;
    /** @type {string} */
    campaign_monitor_lists;
    /** @type {string} */
    phone_home;
    /** @type {string} */
    phone_bus;
    /** @type {string} */
    phone_cell;
    /** @type {boolean} */
    no_mail;
    /** @type {boolean} */
    no_email;
    /** @type {boolean} */
    no_bulk_email;
    /** @type {boolean} */
    no_phone;
    /** @type {boolean} */
    no_marketing_materials;
    /** @type {boolean} */
    prefers_email;
    /** @type {boolean} */
    prefers_phone;
    /** @type {string} */
    image_base64;
    /** @type {string} */
    owning_username;
}
export class CRMAccountUpsertMultipleRequest {
    /** @param {{accounts?:CRMAccountCreateRequest[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {CRMAccountCreateRequest[]} */
    accounts;
}

JavaScript CRMAccountUpsertMultipleRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /DynamicsCRM/Account/Upsert/Multiple HTTP/1.1 
Host: data.regent-college.edu 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"accounts":[{"regent_id":0,"name":"String","other_name":"String","business_type":"String","regent_friendly_church":"String","educational_affiliation":"String","reason_added":"String","connection_to_regent":"String","denomination":"String","addr1":"String","addr2":"String","city":"String","state":"String","country":"String","code":"String","email":"String","solicitation_method":"String","solicitation_exceptions":"String","campaign_monitor_optin":false,"campaign_monitor_suppressed":false,"campaign_monitor_lists":"String","phone_home":"String","phone_bus":"String","phone_cell":"String","no_mail":false,"no_email":false,"no_bulk_email":false,"no_phone":false,"no_marketing_materials":false,"prefers_email":false,"prefers_phone":false,"image_base64":"String","owning_username":"String"}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}