public async System.Threading.Tasks.Task TestCRUD() { string initialName = "InitialName"; string changedName = "ChangedName"; // register and login as our first user var loginUser1 = randomNewUserName("TestAccountUser", 6); await Login(loginUser1); // C - Create var request = new HttpRequestMessage(HttpMethod.Post, "/api/" + service); MicrosoftDynamicsCRMaccount account = new MicrosoftDynamicsCRMaccount() { Name = initialName, AdoxioExternalid = Guid.NewGuid().ToString() }; ViewModels.Account viewmodel_account = account.ToViewModel(); viewmodel_account.businessType = "PublicCorporation"; string jsonString = JsonConvert.SerializeObject(viewmodel_account); request.Content = new StringContent(jsonString, Encoding.UTF8, "application/json"); var response = await _client.SendAsync(request); jsonString = await response.Content.ReadAsStringAsync(); response.EnsureSuccessStatusCode(); // parse as JSON. ViewModels.Account responseViewModel = JsonConvert.DeserializeObject <ViewModels.Account>(jsonString); // name should match. Assert.Equal(initialName, responseViewModel.name); Guid id = new Guid(responseViewModel.id); //String strid = responseViewModel.externalId; //Assert.Equal(strid, viewmodel_account.externalId); // R - Read request = new HttpRequestMessage(HttpMethod.Get, "/api/" + service + "/" + id); response = await _client.SendAsync(request); response.EnsureSuccessStatusCode(); jsonString = await response.Content.ReadAsStringAsync(); responseViewModel = JsonConvert.DeserializeObject <ViewModels.Account>(jsonString); Assert.Equal(initialName, responseViewModel.name); account.Accountid = id.ToString(); // get legal entity record for account request = new HttpRequestMessage(HttpMethod.Get, "/api/legalentities/applicant"); response = await _client.SendAsync(request); response.EnsureSuccessStatusCode(); jsonString = await response.Content.ReadAsStringAsync(); ViewModels.LegalEntity legalentityViewModel = JsonConvert.DeserializeObject <ViewModels.LegalEntity>(jsonString); Assert.Equal(id.ToString(), legalentityViewModel.account.id); // U - Update account.Name = changedName; request = new HttpRequestMessage(HttpMethod.Put, "/api/" + service + "/" + id) { Content = new StringContent(JsonConvert.SerializeObject(account.ToViewModel()), Encoding.UTF8, "application/json") }; response = await _client.SendAsync(request); jsonString = await response.Content.ReadAsStringAsync(); response.EnsureSuccessStatusCode(); // verify that the update persisted. request = new HttpRequestMessage(HttpMethod.Get, "/api/" + service + "/" + id); response = await _client.SendAsync(request); response.EnsureSuccessStatusCode(); jsonString = await response.Content.ReadAsStringAsync(); responseViewModel = JsonConvert.DeserializeObject <ViewModels.Account>(jsonString); Assert.Equal(changedName, responseViewModel.name); // D - Delete request = new HttpRequestMessage(HttpMethod.Post, "/api/" + service + "/" + id + "/delete"); response = await _client.SendAsync(request); string responseText = await response.Content.ReadAsStringAsync(); response.EnsureSuccessStatusCode(); // second delete should return a 404. request = new HttpRequestMessage(HttpMethod.Post, "/api/" + service + "/" + id + "/delete"); response = await _client.SendAsync(request); Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); // should get a 404 if we try a get now. request = new HttpRequestMessage(HttpMethod.Get, "/api/" + service + "/" + id); response = await _client.SendAsync(request); Assert.Equal(HttpStatusCode.NotFound, response.StatusCode); await Logout(); }
/// <summary> /// Update entity in accounts /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='accountid'> /// key: accountid of account /// </param> /// <param name='body'> /// New property values /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static HttpOperationResponse UpdateWithHttpMessages(this IAccounts operations, string accountid, MicrosoftDynamicsCRMaccount body, Dictionary <string, List <string> > customHeaders = null) { return(operations.UpdateWithHttpMessagesAsync(accountid, body, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }
/// <summary> /// Copy values from a ViewModel to a Dynamics Account. /// If parameter copyIfNull is false then do not copy a null value. Mainly applies to updates to the account. /// updateIfNull defaults to true /// </summary> /// <param name="toDynamics"></param> /// <param name="fromVM"></param> /// <param name="copyIfNull"></param> public static void CopyValues(this MicrosoftDynamicsCRMaccount toDynamics, ViewModels.Account fromVM, Boolean copyIfNull) { if (copyIfNull || (!copyIfNull && fromVM.name != null)) { toDynamics.Name = fromVM.name; } if (copyIfNull || (!copyIfNull && fromVM.description != null)) { toDynamics.Description = fromVM.description; } if (copyIfNull || (!copyIfNull && fromVM.externalId != null)) { toDynamics.AdoxioExternalid = fromVM.externalId; } if (copyIfNull || (!copyIfNull && fromVM.bcIncorporationNumber != null)) { toDynamics.AdoxioBcincorporationnumber = fromVM.bcIncorporationNumber; } if (copyIfNull || (!copyIfNull && fromVM.dateOfIncorporationInBC != null)) { toDynamics.AdoxioDateofincorporationinbc = fromVM.dateOfIncorporationInBC; } if (copyIfNull || (!copyIfNull && fromVM.businessNumber != null)) { toDynamics.Accountnumber = fromVM.businessNumber; } if (copyIfNull || (!copyIfNull && fromVM.pstNumber != null)) { toDynamics.AdoxioPstnumber = fromVM.pstNumber; } if (copyIfNull || (!copyIfNull && fromVM.contactEmail != null)) { toDynamics.Emailaddress1 = fromVM.contactEmail; } if (copyIfNull || (!copyIfNull && fromVM.contactPhone != null)) { toDynamics.Telephone1 = fromVM.contactPhone; } if (copyIfNull || (!copyIfNull && fromVM.mailingAddressName != null)) { toDynamics.Address1Name = fromVM.mailingAddressName; } if (copyIfNull || (!copyIfNull && fromVM.mailingAddressStreet != null)) { toDynamics.Address1Line1 = fromVM.mailingAddressStreet; } if (copyIfNull || (!copyIfNull && fromVM.mailingAddressCity != null)) { toDynamics.Address1City = fromVM.mailingAddressCity; } if (copyIfNull || (!copyIfNull && fromVM.mailingAddressCountry != null)) { toDynamics.Address1County = fromVM.mailingAddressCountry; } if (copyIfNull || (!copyIfNull && fromVM.mailingAddressCountry != null)) { toDynamics.Address1Stateorprovince = fromVM.mailingAddressProvince; } if (copyIfNull || (!copyIfNull && fromVM.mailingAddresPostalCode != null)) { toDynamics.Address1Postalcode = fromVM.mailingAddresPostalCode; } // business type must be set only during creation, not in update (removed from copyValues() ) // toDynamics.AdoxioBusinesstype = (int)Enum.Parse(typeof(ViewModels.Adoxio_applicanttypecodes), fromVM.businessType, true); }
/// <summary> /// Add new entity to accounts /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// New entity /// </param> /// <param name='prefer'> /// Required in order for the service to return a JSON representation of the /// object. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <MicrosoftDynamicsCRMaccount> CreateAsync(this IAccounts operations, MicrosoftDynamicsCRMaccount body, string prefer = "return=representation", CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(body, prefer, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Update entity in accounts /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='accountid'> /// key: accountid of account /// </param> /// <param name='body'> /// New property values /// </param> public static void Update(this IAccounts operations, string accountid, MicrosoftDynamicsCRMaccount body) { operations.UpdateAsync(accountid, body).GetAwaiter().GetResult(); }
/// <summary> /// Initializes a new instance of the MicrosoftDynamicsCRMannotation /// class. /// </summary> public MicrosoftDynamicsCRMannotation(int?importsequencenumber = default(int?), string _modifiedbyValue = default(string), string _owningbusinessunitValue = default(string), string documentbody = default(string), byte[] documentbodyBinary = default(byte[]), string _modifiedonbehalfbyValue = default(string), string subject = default(string), System.DateTimeOffset?createdon = default(System.DateTimeOffset?), string annotationid = default(string), string mimetype = default(string), string _createdonbehalfbyValue = default(string), string objecttypecode = default(string), System.DateTimeOffset?overriddencreatedon = default(System.DateTimeOffset?), System.DateTimeOffset?modifiedon = default(System.DateTimeOffset?), string _owneridValue = default(string), string langid = default(string), string _objectidValue = default(string), bool?isdocument = default(bool?), string _owningteamValue = default(string), string versionnumber = default(string), int?filesize = default(int?), string _owninguserValue = default(string), string notetext = default(string), string stepid = default(string), string filename = default(string), string _createdbyValue = default(string), MicrosoftDynamicsCRMknowledgearticle objectidKnowledgearticle = default(MicrosoftDynamicsCRMknowledgearticle), MicrosoftDynamicsCRMknowledgebaserecord objectidKnowledgebaserecord = default(MicrosoftDynamicsCRMknowledgebaserecord), MicrosoftDynamicsCRMmsdynSolutioncomponentdatasource objectidMsdynSolutioncomponentdatasource = default(MicrosoftDynamicsCRMmsdynSolutioncomponentdatasource), MicrosoftDynamicsCRMlead objectidLead = default(MicrosoftDynamicsCRMlead), MicrosoftDynamicsCRMproduct objectidProduct = default(MicrosoftDynamicsCRMproduct), MicrosoftDynamicsCRMbookableresource objectidBookableresource = default(MicrosoftDynamicsCRMbookableresource), MicrosoftDynamicsCRMbookableresourcebooking objectidBookableresourcebooking = default(MicrosoftDynamicsCRMbookableresourcebooking), MicrosoftDynamicsCRMbookableresourcebookingheader objectidBookableresourcebookingheader = default(MicrosoftDynamicsCRMbookableresourcebookingheader), MicrosoftDynamicsCRMbookableresourcecategoryassn objectidBookableresourcecategoryassn = default(MicrosoftDynamicsCRMbookableresourcecategoryassn), MicrosoftDynamicsCRMbookableresourcecharacteristic objectidBookableresourcecharacteristic = default(MicrosoftDynamicsCRMbookableresourcecharacteristic), MicrosoftDynamicsCRMbookableresourcegroup objectidBookableresourcegroup = default(MicrosoftDynamicsCRMbookableresourcegroup), MicrosoftDynamicsCRMbulkoperation objectidBulkoperation = default(MicrosoftDynamicsCRMbulkoperation), MicrosoftDynamicsCRMcampaign objectidCampaign = default(MicrosoftDynamicsCRMcampaign), MicrosoftDynamicsCRMcampaignactivity objectidCampaignactivity = default(MicrosoftDynamicsCRMcampaignactivity), MicrosoftDynamicsCRMcampaignresponse objectidCampaignresponse = default(MicrosoftDynamicsCRMcampaignresponse), MicrosoftDynamicsCRMlist objectidList = default(MicrosoftDynamicsCRMlist), MicrosoftDynamicsCRMcontract objectidContract = default(MicrosoftDynamicsCRMcontract), MicrosoftDynamicsCRMcontractdetail objectidContractdetail = default(MicrosoftDynamicsCRMcontractdetail), MicrosoftDynamicsCRMentitlement objectidEntitlement = default(MicrosoftDynamicsCRMentitlement), MicrosoftDynamicsCRMentitlementchannel objectidEntitlementchannel = default(MicrosoftDynamicsCRMentitlementchannel), MicrosoftDynamicsCRMentitlementtemplate objectidEntitlementtemplate = default(MicrosoftDynamicsCRMentitlementtemplate), MicrosoftDynamicsCRMequipment objectidEquipment = default(MicrosoftDynamicsCRMequipment), MicrosoftDynamicsCRMincident objectidIncident = default(MicrosoftDynamicsCRMincident), MicrosoftDynamicsCRMincidentresolution objectidIncidentresolution = default(MicrosoftDynamicsCRMincidentresolution), MicrosoftDynamicsCRMresourcespec objectidResourcespec = default(MicrosoftDynamicsCRMresourcespec), MicrosoftDynamicsCRMservice objectidService = default(MicrosoftDynamicsCRMservice), MicrosoftDynamicsCRMserviceappointment objectidServiceappointment = default(MicrosoftDynamicsCRMserviceappointment), MicrosoftDynamicsCRMinvoice objectidInvoice = default(MicrosoftDynamicsCRMinvoice), MicrosoftDynamicsCRMopportunity objectidOpportunity = default(MicrosoftDynamicsCRMopportunity), MicrosoftDynamicsCRMopportunityclose objectidOpportunityclose = default(MicrosoftDynamicsCRMopportunityclose), MicrosoftDynamicsCRMorderclose objectidOrderclose = default(MicrosoftDynamicsCRMorderclose), MicrosoftDynamicsCRMquote objectidQuote = default(MicrosoftDynamicsCRMquote), MicrosoftDynamicsCRMquoteclose objectidQuoteclose = default(MicrosoftDynamicsCRMquoteclose), MicrosoftDynamicsCRMsalesorder objectidSalesorder = default(MicrosoftDynamicsCRMsalesorder), MicrosoftDynamicsCRMcompetitor objectidCompetitor = default(MicrosoftDynamicsCRMcompetitor), MicrosoftDynamicsCRMmsdynPostalbum objectidMsdynPostalbum = default(MicrosoftDynamicsCRMmsdynPostalbum), MicrosoftDynamicsCRMcsuComplaints objectidCsuComplaints = default(MicrosoftDynamicsCRMcsuComplaints), MicrosoftDynamicsCRMcsuCasetask objectidCsuCasetask = default(MicrosoftDynamicsCRMcsuCasetask), MicrosoftDynamicsCRMcsuVehicledetail objectidCsuVehicledetail = default(MicrosoftDynamicsCRMcsuVehicledetail), MicrosoftDynamicsCRMaccount objectidAccount = default(MicrosoftDynamicsCRMaccount), MicrosoftDynamicsCRMsystemuser modifiedonbehalfby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMkbarticle objectidKbarticle = default(MicrosoftDynamicsCRMkbarticle), MicrosoftDynamicsCRMappointment objectidAppointment = default(MicrosoftDynamicsCRMappointment), MicrosoftDynamicsCRMbusinessunit owningbusinessunit = default(MicrosoftDynamicsCRMbusinessunit), IList <MicrosoftDynamicsCRMbulkdeletefailure> annotationBulkDeleteFailures = default(IList <MicrosoftDynamicsCRMbulkdeletefailure>), MicrosoftDynamicsCRMsla objectidSla = default(MicrosoftDynamicsCRMsla), MicrosoftDynamicsCRMcalendar objectidCalendar = default(MicrosoftDynamicsCRMcalendar), MicrosoftDynamicsCRMsystemuser createdby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMfax objectidFax = default(MicrosoftDynamicsCRMfax), MicrosoftDynamicsCRMcontact objectidContact = default(MicrosoftDynamicsCRMcontact), MicrosoftDynamicsCRMsystemuser owninguser = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMletter objectidLetter = default(MicrosoftDynamicsCRMletter), MicrosoftDynamicsCRMprincipal ownerid = default(MicrosoftDynamicsCRMprincipal), MicrosoftDynamicsCRMgoal objectidGoal = default(MicrosoftDynamicsCRMgoal), MicrosoftDynamicsCRMtask objectidTask = default(MicrosoftDynamicsCRMtask), MicrosoftDynamicsCRMemail objectidEmail = default(MicrosoftDynamicsCRMemail), MicrosoftDynamicsCRMworkflow objectidWorkflow = default(MicrosoftDynamicsCRMworkflow), MicrosoftDynamicsCRMsystemuser createdonbehalfby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser modifiedby = default(MicrosoftDynamicsCRMsystemuser), IList <MicrosoftDynamicsCRMasyncoperation> annotationAsyncOperations = default(IList <MicrosoftDynamicsCRMasyncoperation>), IList <MicrosoftDynamicsCRMprocesssession> annotationProcessSessions = default(IList <MicrosoftDynamicsCRMprocesssession>), MicrosoftDynamicsCRMmailbox objectidMailbox = default(MicrosoftDynamicsCRMmailbox), MicrosoftDynamicsCRMsocialactivity objectidSocialactivity = default(MicrosoftDynamicsCRMsocialactivity), MicrosoftDynamicsCRMteam owningteam = default(MicrosoftDynamicsCRMteam), MicrosoftDynamicsCRMduplicaterule objectidDuplicaterule = default(MicrosoftDynamicsCRMduplicaterule), IList <MicrosoftDynamicsCRMsyncerror> annotationSyncErrors = default(IList <MicrosoftDynamicsCRMsyncerror>), MicrosoftDynamicsCRMphonecall objectidPhonecall = default(MicrosoftDynamicsCRMphonecall), MicrosoftDynamicsCRMemailserverprofile objectidEmailserverprofile = default(MicrosoftDynamicsCRMemailserverprofile), MicrosoftDynamicsCRMrecurringappointmentmaster objectidRecurringappointmentmaster = default(MicrosoftDynamicsCRMrecurringappointmentmaster)) { Importsequencenumber = importsequencenumber; this._modifiedbyValue = _modifiedbyValue; this._owningbusinessunitValue = _owningbusinessunitValue; Documentbody = documentbody; DocumentbodyBinary = documentbodyBinary; this._modifiedonbehalfbyValue = _modifiedonbehalfbyValue; Subject = subject; Createdon = createdon; Annotationid = annotationid; Mimetype = mimetype; this._createdonbehalfbyValue = _createdonbehalfbyValue; Objecttypecode = objecttypecode; Overriddencreatedon = overriddencreatedon; Modifiedon = modifiedon; this._owneridValue = _owneridValue; Langid = langid; this._objectidValue = _objectidValue; Isdocument = isdocument; this._owningteamValue = _owningteamValue; Versionnumber = versionnumber; Filesize = filesize; this._owninguserValue = _owninguserValue; Notetext = notetext; Stepid = stepid; Filename = filename; this._createdbyValue = _createdbyValue; ObjectidKnowledgearticle = objectidKnowledgearticle; ObjectidKnowledgebaserecord = objectidKnowledgebaserecord; ObjectidMsdynSolutioncomponentdatasource = objectidMsdynSolutioncomponentdatasource; ObjectidLead = objectidLead; ObjectidProduct = objectidProduct; ObjectidBookableresource = objectidBookableresource; ObjectidBookableresourcebooking = objectidBookableresourcebooking; ObjectidBookableresourcebookingheader = objectidBookableresourcebookingheader; ObjectidBookableresourcecategoryassn = objectidBookableresourcecategoryassn; ObjectidBookableresourcecharacteristic = objectidBookableresourcecharacteristic; ObjectidBookableresourcegroup = objectidBookableresourcegroup; ObjectidBulkoperation = objectidBulkoperation; ObjectidCampaign = objectidCampaign; ObjectidCampaignactivity = objectidCampaignactivity; ObjectidCampaignresponse = objectidCampaignresponse; ObjectidList = objectidList; ObjectidContract = objectidContract; ObjectidContractdetail = objectidContractdetail; ObjectidEntitlement = objectidEntitlement; ObjectidEntitlementchannel = objectidEntitlementchannel; ObjectidEntitlementtemplate = objectidEntitlementtemplate; ObjectidEquipment = objectidEquipment; ObjectidIncident = objectidIncident; ObjectidIncidentresolution = objectidIncidentresolution; ObjectidResourcespec = objectidResourcespec; ObjectidService = objectidService; ObjectidServiceappointment = objectidServiceappointment; ObjectidInvoice = objectidInvoice; ObjectidOpportunity = objectidOpportunity; ObjectidOpportunityclose = objectidOpportunityclose; ObjectidOrderclose = objectidOrderclose; ObjectidQuote = objectidQuote; ObjectidQuoteclose = objectidQuoteclose; ObjectidSalesorder = objectidSalesorder; ObjectidCompetitor = objectidCompetitor; ObjectidMsdynPostalbum = objectidMsdynPostalbum; ObjectidCsuComplaints = objectidCsuComplaints; ObjectidCsuCasetask = objectidCsuCasetask; ObjectidCsuVehicledetail = objectidCsuVehicledetail; ObjectidAccount = objectidAccount; Modifiedonbehalfby = modifiedonbehalfby; ObjectidKbarticle = objectidKbarticle; ObjectidAppointment = objectidAppointment; Owningbusinessunit = owningbusinessunit; AnnotationBulkDeleteFailures = annotationBulkDeleteFailures; ObjectidSla = objectidSla; ObjectidCalendar = objectidCalendar; Createdby = createdby; ObjectidFax = objectidFax; ObjectidContact = objectidContact; Owninguser = owninguser; ObjectidLetter = objectidLetter; Ownerid = ownerid; ObjectidGoal = objectidGoal; ObjectidTask = objectidTask; ObjectidEmail = objectidEmail; ObjectidWorkflow = objectidWorkflow; Createdonbehalfby = createdonbehalfby; Modifiedby = modifiedby; AnnotationAsyncOperations = annotationAsyncOperations; AnnotationProcessSessions = annotationProcessSessions; ObjectidMailbox = objectidMailbox; ObjectidSocialactivity = objectidSocialactivity; Owningteam = owningteam; ObjectidDuplicaterule = objectidDuplicaterule; AnnotationSyncErrors = annotationSyncErrors; ObjectidPhonecall = objectidPhonecall; ObjectidEmailserverprofile = objectidEmailserverprofile; ObjectidRecurringappointmentmaster = objectidRecurringappointmentmaster; CustomInit(); }
public static void CreateAccountDocumentLocation(this IDynamicsClient _dynamicsClient, MicrosoftDynamicsCRMaccount account, string folderName, string name) { var parentDocumentLibraryReference = _dynamicsClient.GetDocumentLocationReferenceByRelativeURL("account"); var accountUri = _dynamicsClient.GetEntityURI("accounts", account.Accountid); // now create a document location to link them. // Create the SharePointDocumentLocation entity var mdcsdl = new MicrosoftDynamicsCRMsharepointdocumentlocation { RegardingobjectIdAccountODataBind = accountUri, ParentsiteorlocationSharepointdocumentlocationODataBind = _dynamicsClient.GetEntityURI("sharepointdocumentlocations", parentDocumentLibraryReference), Relativeurl = folderName, Description = "Account Files", Name = name }; var sharepointdocumentlocationid = _dynamicsClient.DocumentLocationExistsWithCleanup(mdcsdl); if (sharepointdocumentlocationid == null) { try { mdcsdl = _dynamicsClient.Sharepointdocumentlocations.Create(mdcsdl); } catch (HttpOperationException odee) { Log.Error(odee, "Error creating SharepointDocumentLocation"); mdcsdl = null; } if (mdcsdl != null) { var sharePointLocationData = _dynamicsClient.GetEntityURI("sharepointdocumentlocations", mdcsdl.Sharepointdocumentlocationid); var oDataId = new Odataid { OdataidProperty = sharePointLocationData }; try { _dynamicsClient.Accounts.AddReference(account.Accountid, "Account_SharepointDocumentLocation", oDataId); } catch (HttpOperationException odee) { Log.Error(odee, "Error adding reference to SharepointDocumentLocation"); } } } }
private async Task CreateAccountDocumentLocation(MicrosoftDynamicsCRMaccount account) { string serverRelativeUrl = account.GetServerUrl(_sharePointFileManager); string name = ""; if (string.IsNullOrEmpty(account.BcgovDoingbusinessasname)) { name = account.Accountid; } else { name = account.BcgovDoingbusinessasname; } name += " Account Files"; // create a SharePointDocumentLocation link string folderName = "_" + account.Accountid; // Create the folder bool folderExists = await _sharePointFileManager.FolderExists(SharePointFileManager.AccountDocumentListTitle, folderName); if (!folderExists) { try { var folder = await _sharePointFileManager.CreateFolder(SharePointFileManager.AccountDocumentListTitle, folderName); } catch (Exception e) { _logger.LogError("Error creating Sharepoint Folder"); _logger.LogError($"List is: {SharePointFileManager.AccountDocumentListTitle}"); _logger.LogError($"FolderName is: {folderName}"); throw e; } } // now create a document location to link them. // Create the SharePointDocumentLocation entity MicrosoftDynamicsCRMsharepointdocumentlocation mdcsdl = new MicrosoftDynamicsCRMsharepointdocumentlocation() { Relativeurl = folderName, Description = "Account Files", Name = name }; try { mdcsdl = _dynamicsClient.Sharepointdocumentlocations.Create(mdcsdl); } catch (OdataerrorException odee) { _logger.LogError("Error creating SharepointDocumentLocation"); _logger.LogError("Request:"); _logger.LogError(odee.Request.Content); _logger.LogError("Response:"); _logger.LogError(odee.Response.Content); mdcsdl = null; } if (mdcsdl != null) { // set the parent document library. string parentDocumentLibraryReference = GetDocumentLocationReferenceByRelativeURL("account"); string accountUri = _dynamicsClient.GetEntityURI("accounts", account.Accountid); // add a regardingobjectid. var patchSharePointDocumentLocationIncident = new MicrosoftDynamicsCRMsharepointdocumentlocation() { RegardingobjectIdAccountODataBind = accountUri, ParentsiteorlocationSharepointdocumentlocationODataBind = _dynamicsClient.GetEntityURI("sharepointdocumentlocations", parentDocumentLibraryReference), Relativeurl = folderName, Description = "Account Files", }; try { _dynamicsClient.Sharepointdocumentlocations.Update(mdcsdl.Sharepointdocumentlocationid, patchSharePointDocumentLocationIncident); } catch (OdataerrorException odee) { _logger.LogError("Error adding reference SharepointDocumentLocation to account"); _logger.LogError("Request:"); _logger.LogError(odee.Request.Content); _logger.LogError("Response:"); _logger.LogError(odee.Response.Content); } string sharePointLocationData = _dynamicsClient.GetEntityURI("sharepointdocumentlocations", mdcsdl.Sharepointdocumentlocationid); OdataId oDataId = new OdataId() { OdataIdProperty = sharePointLocationData }; try { _dynamicsClient.Accounts.AddReference(account.Accountid, "Account_SharepointDocumentLocation", oDataId); } catch (OdataerrorException odee) { _logger.LogError("Error adding reference to SharepointDocumentLocation"); _logger.LogError("Request:"); _logger.LogError(odee.Request.Content); _logger.LogError("Response:"); _logger.LogError(odee.Response.Content); } } }
/// <summary> /// Initializes a new instance of the /// MicrosoftDynamicsCRMbookableresource class. /// </summary> public MicrosoftDynamicsCRMbookableresource(System.DateTimeOffset?createdon = default(System.DateTimeOffset?), string _calendaridValue = default(string), string _accountidValue = default(string), string _owninguserValue = default(string), string _owningbusinessunitValue = default(string), string _owningteamValue = default(string), int?statecode = default(int?), string stageid = default(string), int?resourcetype = default(int?), string name = default(string), int?timezoneruleversionnumber = default(int?), string versionnumber = default(string), string _useridValue = default(string), string _modifiedbyValue = default(string), string _createdonbehalfbyValue = default(string), int?statuscode = default(int?), string _transactioncurrencyidValue = default(string), string bookableresourceid = default(string), string _contactidValue = default(string), System.DateTimeOffset?modifiedon = default(System.DateTimeOffset?), string _modifiedonbehalfbyValue = default(string), int?timezone = default(int?), string _owneridValue = default(string), int?importsequencenumber = default(int?), string _createdbyValue = default(string), string traversedpath = default(string), string processid = default(string), System.DateTimeOffset?overriddencreatedon = default(System.DateTimeOffset?), int?utcconversiontimezonecode = default(int?), decimal?exchangerate = default(decimal?), MicrosoftDynamicsCRMsystemuser createdbyname = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser createdonbehalfbyname = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser modifiedbyname = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser modifiedonbehalfbyname = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser owninguser = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMteam owningteam = default(MicrosoftDynamicsCRMteam), MicrosoftDynamicsCRMprincipal ownerid = default(MicrosoftDynamicsCRMprincipal), MicrosoftDynamicsCRMbusinessunit owningbusinessunit = default(MicrosoftDynamicsCRMbusinessunit), IList <MicrosoftDynamicsCRMsyncerror> bookableResourceSyncErrors = default(IList <MicrosoftDynamicsCRMsyncerror>), IList <MicrosoftDynamicsCRMduplicaterecord> bookableresourceDuplicateMatchingRecord = default(IList <MicrosoftDynamicsCRMduplicaterecord>), IList <MicrosoftDynamicsCRMduplicaterecord> bookableresourceDuplicateBaseRecord = default(IList <MicrosoftDynamicsCRMduplicaterecord>), IList <MicrosoftDynamicsCRMasyncoperation> bookableresourceAsyncOperations = default(IList <MicrosoftDynamicsCRMasyncoperation>), IList <MicrosoftDynamicsCRMmailboxtrackingfolder> bookableresourceMailboxTrackingFolders = default(IList <MicrosoftDynamicsCRMmailboxtrackingfolder>), IList <MicrosoftDynamicsCRMprocesssession> bookableresourceProcessSession = default(IList <MicrosoftDynamicsCRMprocesssession>), IList <MicrosoftDynamicsCRMbulkdeletefailure> bookableresourceBulkDeleteFailures = default(IList <MicrosoftDynamicsCRMbulkdeletefailure>), IList <MicrosoftDynamicsCRMprincipalobjectattributeaccess> bookableresourcePrincipalObjectAttributeAccesses = default(IList <MicrosoftDynamicsCRMprincipalobjectattributeaccess>), IList <MicrosoftDynamicsCRMannotation> bookableresourceAnnotations = default(IList <MicrosoftDynamicsCRMannotation>), MicrosoftDynamicsCRMaccount accountId = default(MicrosoftDynamicsCRMaccount), IList <MicrosoftDynamicsCRMbookableresourcebooking> bookableresourceBookableresourcebookingResource = default(IList <MicrosoftDynamicsCRMbookableresourcebooking>), IList <MicrosoftDynamicsCRMbookableresourcecategoryassn> bookableresourceBookableresourcecategoryassnResource = default(IList <MicrosoftDynamicsCRMbookableresourcecategoryassn>), IList <MicrosoftDynamicsCRMbookableresourcecharacteristic> bookableresourceBookableresourcecharacteristicResource = default(IList <MicrosoftDynamicsCRMbookableresourcecharacteristic>), IList <MicrosoftDynamicsCRMbookableresourcegroup> bookableresourceBookableresourcegroupChildResource = default(IList <MicrosoftDynamicsCRMbookableresourcegroup>), IList <MicrosoftDynamicsCRMbookableresourcegroup> bookableresourceBookableresourcegroupParentResource = default(IList <MicrosoftDynamicsCRMbookableresourcegroup>), MicrosoftDynamicsCRMcalendar calendarid = default(MicrosoftDynamicsCRMcalendar), MicrosoftDynamicsCRMcontact contactId = default(MicrosoftDynamicsCRMcontact), MicrosoftDynamicsCRMsystemuser userId = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMtransactioncurrency transactioncurrencyid = default(MicrosoftDynamicsCRMtransactioncurrency)) { Createdon = createdon; this._calendaridValue = _calendaridValue; this._accountidValue = _accountidValue; this._owninguserValue = _owninguserValue; this._owningbusinessunitValue = _owningbusinessunitValue; this._owningteamValue = _owningteamValue; Statecode = statecode; Stageid = stageid; Resourcetype = resourcetype; Name = name; Timezoneruleversionnumber = timezoneruleversionnumber; Versionnumber = versionnumber; this._useridValue = _useridValue; this._modifiedbyValue = _modifiedbyValue; this._createdonbehalfbyValue = _createdonbehalfbyValue; Statuscode = statuscode; this._transactioncurrencyidValue = _transactioncurrencyidValue; Bookableresourceid = bookableresourceid; this._contactidValue = _contactidValue; Modifiedon = modifiedon; this._modifiedonbehalfbyValue = _modifiedonbehalfbyValue; Timezone = timezone; this._owneridValue = _owneridValue; Importsequencenumber = importsequencenumber; this._createdbyValue = _createdbyValue; Traversedpath = traversedpath; Processid = processid; Overriddencreatedon = overriddencreatedon; Utcconversiontimezonecode = utcconversiontimezonecode; Exchangerate = exchangerate; Createdbyname = createdbyname; Createdonbehalfbyname = createdonbehalfbyname; Modifiedbyname = modifiedbyname; Modifiedonbehalfbyname = modifiedonbehalfbyname; Owninguser = owninguser; Owningteam = owningteam; Ownerid = ownerid; Owningbusinessunit = owningbusinessunit; BookableResourceSyncErrors = bookableResourceSyncErrors; BookableresourceDuplicateMatchingRecord = bookableresourceDuplicateMatchingRecord; BookableresourceDuplicateBaseRecord = bookableresourceDuplicateBaseRecord; BookableresourceAsyncOperations = bookableresourceAsyncOperations; BookableresourceMailboxTrackingFolders = bookableresourceMailboxTrackingFolders; BookableresourceProcessSession = bookableresourceProcessSession; BookableresourceBulkDeleteFailures = bookableresourceBulkDeleteFailures; BookableresourcePrincipalObjectAttributeAccesses = bookableresourcePrincipalObjectAttributeAccesses; BookableresourceAnnotations = bookableresourceAnnotations; AccountId = accountId; BookableresourceBookableresourcebookingResource = bookableresourceBookableresourcebookingResource; BookableresourceBookableresourcecategoryassnResource = bookableresourceBookableresourcecategoryassnResource; BookableresourceBookableresourcecharacteristicResource = bookableresourceBookableresourcecharacteristicResource; BookableresourceBookableresourcegroupChildResource = bookableresourceBookableresourcegroupChildResource; BookableresourceBookableresourcegroupParentResource = bookableresourceBookableresourcegroupParentResource; Calendarid = calendarid; ContactId = contactId; UserId = userId; Transactioncurrencyid = transactioncurrencyid; CustomInit(); }
public async Task <IActionResult> UpdateAccount([FromBody] ViewModels.Account item, string id) { if (!string.IsNullOrEmpty(id) && Guid.TryParse(id, out Guid accountId)) { _logger.LogInformation(LoggingEvents.HttpPut, "Begin method " + this.GetType().Name + "." + MethodBase.GetCurrentMethod().ReflectedType.Name); _logger.LogDebug(LoggingEvents.HttpPut, "Account parameter: " + JsonConvert.SerializeObject(item)); _logger.LogDebug(LoggingEvents.HttpPut, "id parameter: " + id); if (!UserDynamicsExtensions.CurrentUserHasAccessToAccount(accountId, _httpContextAccessor, _dynamicsClient)) { _logger.LogWarning(LoggingEvents.NotFound, "Current user has NO access to the account."); return(NotFound()); } MicrosoftDynamicsCRMaccount account = _dynamicsClient.GetAccountByIdWithChildren(accountId); if (account == null) { _logger.LogWarning(LoggingEvents.NotFound, "Account NOT found."); return(new NotFoundResult()); } // handle the contacts. UpdateContacts(item); // we are doing a patch, so wipe out the record. MicrosoftDynamicsCRMaccount patchAccount = new MicrosoftDynamicsCRMaccount(); // copy values over from the data provided patchAccount.CopyValues(item); if (item.primaryContact != null && item.primaryContact.id != null && (account._primarycontactidValue == null || account._primarycontactidValue != item.primaryContact.id)) { patchAccount.PrimaryContactidODataBind = _dynamicsClient.GetEntityURI("contacts", item.primaryContact.id); } else { if (account._primarycontactidValue != null && !item.primaryContact.HasValue()) { // remove the reference. try { // pass null as recordId to remove the single value navigation property _dynamicsClient.Accounts.RemoveReference(accountId.ToString(), "primarycontactid", null); } catch (OdataerrorException odee) { _logger.LogError(LoggingEvents.Error, "Error updating the account."); _logger.LogError("Request:"); _logger.LogError(odee.Request.Content); _logger.LogError("Response:"); _logger.LogError(odee.Response.Content); throw new OdataerrorException("Error updating the account."); } // delete the contact. try { _dynamicsClient.Contacts.Delete(account._primarycontactidValue); } catch (OdataerrorException odee) { _logger.LogError(LoggingEvents.Error, "Error removing primary contact"); _logger.LogError("Request:"); _logger.LogError(odee.Request.Content); _logger.LogError("Response:"); _logger.LogError(odee.Response.Content); throw new OdataerrorException("Error updating the account."); } } } if (item.additionalContact != null && item.additionalContact.id != null && (account._bcgovAdditionalcontactValue == null || account._bcgovAdditionalcontactValue != item.additionalContact.id)) { patchAccount.AdditionalContactODataBind = _dynamicsClient.GetEntityURI("contacts", item.additionalContact.id); } else { if (account._bcgovAdditionalcontactValue != null && !item.additionalContact.HasValue()) { // remove the reference. try { // pass null as recordId to remove the single value navigation property _dynamicsClient.Accounts.RemoveReference(accountId.ToString(), "bcgov_AdditionalContact", null); } catch (OdataerrorException odee) { _logger.LogError(LoggingEvents.Error, "Error updating the account."); _logger.LogError("Request:"); _logger.LogError(odee.Request.Content); _logger.LogError("Response:"); _logger.LogError(odee.Response.Content); throw new OdataerrorException("Error updating the account."); } // delete the contact. try { _dynamicsClient.Contacts.Delete(account._bcgovAdditionalcontactValue); } catch (OdataerrorException odee) { _logger.LogError(LoggingEvents.Error, "Error removing additional contact"); _logger.LogError("Request:"); _logger.LogError(odee.Request.Content); _logger.LogError("Response:"); _logger.LogError(odee.Response.Content); throw new OdataerrorException("Error updating the account."); } } } try { await _dynamicsClient.Accounts.UpdateAsync(accountId.ToString(), patchAccount); } catch (OdataerrorException odee) { _logger.LogError(LoggingEvents.Error, "Error updating the account."); _logger.LogError("Request:"); _logger.LogError(odee.Request.Content); _logger.LogError("Response:"); _logger.LogError(odee.Response.Content); throw new OdataerrorException("Error updating the account."); } // purge any existing non bceid accounts. _dynamicsClient.DeleteNonBceidBusinessContactLinkForAccount(_logger, accountId.ToString()); // create the business contact links. if (item.primaryContact != null) { _dynamicsClient.CreateBusinessContactLink(_logger, item.primaryContact.id, accountId.ToString(), null, (int?)ContactTypeCodes.Primary, item.primaryContact.title); } if (item.additionalContact != null) { _dynamicsClient.CreateBusinessContactLink(_logger, item.additionalContact.id, accountId.ToString(), null, (int?)ContactTypeCodes.Additional, item.additionalContact.title); } // populate child items in the account. patchAccount = _dynamicsClient.GetAccountByIdWithChildren(accountId); var updatedAccount = patchAccount.ToViewModel(); _logger.LogDebug(LoggingEvents.HttpPut, "updatedAccount: " + JsonConvert.SerializeObject(updatedAccount, Formatting.Indented, new JsonSerializerSettings { ReferenceLoopHandling = ReferenceLoopHandling.Ignore })); return(Json(updatedAccount)); } else { return(new BadRequestResult()); } }
public async Task <IActionResult> CreateAccount([FromBody] ViewModels.Account item) { _logger.LogInformation(LoggingEvents.HttpPost, "Begin method " + this.GetType().Name + "." + MethodBase.GetCurrentMethod().ReflectedType.Name); _logger.LogDebug(LoggingEvents.HttpPost, "Account parameters: " + JsonConvert.SerializeObject(item)); ViewModels.Account result = null; // get UserSettings from the session string temp = _httpContextAccessor.HttpContext.Session.GetString("UserSettings"); UserSettings userSettings = JsonConvert.DeserializeObject <UserSettings>(temp); _logger.LogDebug(LoggingEvents.HttpPost, "UserSettings: " + JsonConvert.SerializeObject(userSettings)); // get account Siteminder GUID string accountSiteminderGuid = userSettings.SiteMinderBusinessGuid; if (accountSiteminderGuid == null || accountSiteminderGuid.Length == 0) { _logger.LogError(LoggingEvents.Error, "No account Siteminder Guid exernal id"); throw new Exception("Error. No accountSiteminderGuid exernal id"); } // validate contact Siteminder GUID string contactSiteminderGuid = userSettings.SiteMinderGuid; if (contactSiteminderGuid == null || contactSiteminderGuid.Length == 0) { _logger.LogError(LoggingEvents.Error, "No Contact Siteminder Guid exernal id"); throw new Exception("Error. No ContactSiteminderGuid exernal id"); } // get BCeID record for the current user Gov.Jag.PillPressRegistry.Interfaces.BCeIDBusiness bceidBusiness = await _bceid.ProcessBusinessQuery(userSettings.SiteMinderGuid); var cleanNumber = BusinessNumberSanitizer.SanitizeNumber(bceidBusiness?.businessNumber); if (cleanNumber != null) { bceidBusiness.businessNumber = cleanNumber; } _logger.LogDebug(LoggingEvents.HttpGet, "BCeId business: " + JsonConvert.SerializeObject(bceidBusiness)); MicrosoftDynamicsCRMcontact userContact = null; // see if the contact exists. try { userContact = _dynamicsClient.GetContactByExternalId(contactSiteminderGuid); } catch (OdataerrorException odee) { _logger.LogError(LoggingEvents.Error, "Error getting contact by Siteminder Guid."); _logger.LogError("Request:"); _logger.LogError(odee.Request.Content); _logger.LogError("Response:"); _logger.LogError(odee.Response.Content); throw new OdataerrorException("Error getting contact by Siteminder Guid"); } if (userContact == null) { // create the user contact record. userContact = new MicrosoftDynamicsCRMcontact(); // Adoxio_externalid is where we will store the guid from siteminder. string sanitizedContactSiteminderId = GuidUtility.SanitizeGuidString(contactSiteminderGuid); userContact.Externaluseridentifier = sanitizedContactSiteminderId; userContact.BcgovBceiduserguid = sanitizedContactSiteminderId; userContact.Fullname = userSettings.UserDisplayName; userContact.Nickname = userSettings.UserDisplayName; // ENABLE FOR BC SERVICE CARD SUPPORT /* * if (! Guid.TryParse(userSettings.UserId, out tryParseOutGuid)) * { * userContact.Externaluseridentifier = userSettings.UserId; * } */ if (bceidBusiness != null) { // set contact according to item userContact.Firstname = bceidBusiness.individualFirstname; userContact.Middlename = bceidBusiness.individualMiddlename; userContact.Lastname = bceidBusiness.individualSurname; userContact.Emailaddress1 = bceidBusiness.contactEmail; userContact.Telephone1 = bceidBusiness.contactPhone; userContact.BcgovBceid = bceidBusiness.userId; userContact.BcgovBceidemail = bceidBusiness.contactEmail; } else { userContact.Firstname = userSettings.UserDisplayName.GetFirstName(); userContact.Lastname = userSettings.UserDisplayName.GetLastName(); } userContact.Statuscode = 1; _logger.LogDebug(LoggingEvents.HttpGet, "Account is NOT null. Only a new user."); try { userContact = await _dynamicsClient.Contacts.CreateAsync(userContact); } catch (OdataerrorException odee) { _logger.LogError(LoggingEvents.Error, "Error creating user contact."); _logger.LogError("Request:"); _logger.LogError(odee.Request.Content); _logger.LogError("Response:"); _logger.LogError(odee.Response.Content); throw new OdataerrorException("Error creating user contact."); } } // this may be an existing account, as this service is used during the account confirmation process. MicrosoftDynamicsCRMaccount account = await _dynamicsClient.GetAccountBySiteminderBusinessGuid(accountSiteminderGuid); _logger.LogDebug(LoggingEvents.HttpGet, "Account by siteminder business guid: " + JsonConvert.SerializeObject(account)); if (account == null) { _logger.LogDebug(LoggingEvents.HttpGet, "Creating account"); // create a new account account = new MicrosoftDynamicsCRMaccount(); account.CopyValues(item); // business type must be set only during creation, not in update (removed from copyValues() ) // by convention we strip out any dashes present in the guid, and force it to uppercase. string sanitizedAccountSiteminderId = GuidUtility.SanitizeGuidString(accountSiteminderGuid); account.BcgovBceid = sanitizedAccountSiteminderId; UpdateContacts(item); // For Pill Press the Primary Contact is not set to default to the first user. if (item.primaryContact != null && !(string.IsNullOrEmpty(item.primaryContact.id))) { // add as a reference. account.PrimaryContactidODataBind = _dynamicsClient.GetEntityURI("contacts", item.primaryContact.id); } // Additional Contact if (item.additionalContact != null && !(string.IsNullOrEmpty(item.additionalContact.id))) { // add as a reference. account.AdditionalContactODataBind = _dynamicsClient.GetEntityURI("contacts", item.additionalContact.id); } if (bceidBusiness != null) { account.Name = bceidBusiness.legalName; account.BcgovDoingbusinessasname = bceidBusiness.legalName; account.Emailaddress1 = bceidBusiness.contactEmail; account.Telephone1 = bceidBusiness.contactPhone; // do not set the address from BCeID for Pill Press. /* * account.Address1City = bceidBusiness.addressCity; * account.Address1Postalcode = bceidBusiness.addressPostal; * account.Address1Line1 = bceidBusiness.addressLine1; * account.Address1Line2 = bceidBusiness.addressLine2; * account.Address1Postalcode = bceidBusiness.addressPostal; */ } else // likely a dev login. { account.Name = userSettings.BusinessLegalName; account.BcgovDoingbusinessasname = userSettings.BusinessLegalName; } // set the Province and Country if they are not set. if (string.IsNullOrEmpty(account.Address1Stateorprovince)) { account.Address1Stateorprovince = "British Columbia"; } if (string.IsNullOrEmpty(account.Address1Country)) { account.Address1Country = "Canada"; } string accountString = JsonConvert.SerializeObject(account); _logger.LogDebug("Account before creation in dynamics --> " + accountString); try { account = await _dynamicsClient.Accounts.CreateAsync(account); } catch (OdataerrorException odee) { _logger.LogError(LoggingEvents.Error, "Error creating Account."); _logger.LogError("Request:"); _logger.LogError(odee.Request.Content); _logger.LogError("Response:"); _logger.LogError(odee.Response.Content); throw new OdataerrorException("Error creating Account"); } // create a document location await CreateAccountDocumentLocation(account); // populate child elements. account = _dynamicsClient.GetAccountByIdWithChildren(Guid.Parse(account.Accountid)); accountString = JsonConvert.SerializeObject(accountString); _logger.LogDebug("Account Entity after creation in dynamics --> " + accountString); } // always patch the userContact so it relates to the account. _logger.LogDebug(LoggingEvents.Save, "Patching the userContact so it relates to the account."); // parent customer id relationship will be created using the method here: //https://msdn.microsoft.com/en-us/library/mt607875.aspx MicrosoftDynamicsCRMcontact patchUserContact = new MicrosoftDynamicsCRMcontact(); patchUserContact.ParentCustomerIdAccountODataBind = _dynamicsClient.GetEntityURI("accounts", account.Accountid); try { await _dynamicsClient.Contacts.UpdateAsync(userContact.Contactid, patchUserContact); } catch (OdataerrorException odee) { _logger.LogError(LoggingEvents.Error, "Error binding contact to account"); _logger.LogError("Request:"); _logger.LogError(odee.Request.Content); _logger.LogError("Response:"); _logger.LogError(odee.Response.Content); throw new OdataerrorException("Error binding contact to account"); } // if we have not yet authenticated, then this is the new record for the user. if (userSettings.IsNewUserRegistration) { userSettings.AccountId = account.Accountid.ToString(); userSettings.ContactId = userContact.Contactid.ToString(); // we can now authenticate. if (userSettings.AuthenticatedUser == null) { Models.User user = new Models.User(); user.Active = true; user.AccountId = Guid.Parse(userSettings.AccountId); user.ContactId = Guid.Parse(userSettings.ContactId); user.UserType = userSettings.UserType; user.SmUserId = userSettings.UserId; userSettings.AuthenticatedUser = user; } // create the bridge entity for the BCeID user _dynamicsClient.CreateBusinessContactLink(_logger, userSettings.ContactId, userSettings.AccountId, null, (int?)ContactTypeCodes.BCeID, "BCeID"); userSettings.IsNewUserRegistration = false; string userSettingsString = JsonConvert.SerializeObject(userSettings); _logger.LogDebug("userSettingsString --> " + userSettingsString); // add the user to the session. _httpContextAccessor.HttpContext.Session.SetString("UserSettings", userSettingsString); _logger.LogDebug("user added to session. "); } else { _logger.LogError(LoggingEvents.Error, "Invalid user registration."); throw new Exception("Invalid user registration."); } // create the business contact links. if (item.primaryContact != null) { _dynamicsClient.CreateBusinessContactLink(_logger, item.primaryContact.id, account.Accountid, null, (int?)ContactTypeCodes.Primary, item.primaryContact.title); } if (item.additionalContact != null) { _dynamicsClient.CreateBusinessContactLink(_logger, item.additionalContact.id, account.Accountid, null, (int?)ContactTypeCodes.Additional, item.additionalContact.title); } //account.Accountid = id; result = account.ToViewModel(); _logger.LogDebug(LoggingEvents.HttpPost, "result: " + JsonConvert.SerializeObject(result, Formatting.Indented, new JsonSerializerSettings { ReferenceLoopHandling = ReferenceLoopHandling.Ignore })); return(Json(result)); }
/// <summary> /// Initializes a new instance of the MicrosoftDynamicsCRMpostfollow /// class. /// </summary> public MicrosoftDynamicsCRMpostfollow(string _owningteamValue = default(string), string _owneridValue = default(string), string postfollowid = default(string), string _owninguserValue = default(string), string _regardingobjectidValue = default(string), int?utcconversiontimezonecode = default(int?), int?timezoneruleversionnumber = default(int?), string _owningbusinessunitValue = default(string), string _createdbyValue = default(string), System.DateTimeOffset?createdon = default(System.DateTimeOffset?), int?yammerpoststate = default(int?), string versionnumber = default(string), string _createdonbehalfbyValue = default(string), MicrosoftDynamicsCRMtask regardingobjectidTask = default(MicrosoftDynamicsCRMtask), MicrosoftDynamicsCRMappointment regardingobjectidAppointment = default(MicrosoftDynamicsCRMappointment), MicrosoftDynamicsCRMphonecall regardingobjectidPhonecall = default(MicrosoftDynamicsCRMphonecall), MicrosoftDynamicsCRMrecurringappointmentmaster regardingobjectidRecurringappointmentmaster = default(MicrosoftDynamicsCRMrecurringappointmentmaster), MicrosoftDynamicsCRMlead regardingobjectidLead = default(MicrosoftDynamicsCRMlead), MicrosoftDynamicsCRMincident regardingobjectidIncident = default(MicrosoftDynamicsCRMincident), MicrosoftDynamicsCRMopportunity regardingobjectidOpportunity = default(MicrosoftDynamicsCRMopportunity), MicrosoftDynamicsCRMcompetitor regardingobjectidCompetitor = default(MicrosoftDynamicsCRMcompetitor), MicrosoftDynamicsCRMcsuVehicledetail regardingobjectidCsuVehicledetail = default(MicrosoftDynamicsCRMcsuVehicledetail), MicrosoftDynamicsCRMsystemuser createdby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMaccount regardingobjectidAccount = default(MicrosoftDynamicsCRMaccount), MicrosoftDynamicsCRMcontact regardingobjectidContact = default(MicrosoftDynamicsCRMcontact), MicrosoftDynamicsCRMsystemuser regardingobjectidSystemuser = default(MicrosoftDynamicsCRMsystemuser), IList <MicrosoftDynamicsCRMasyncoperation> postFollowAsyncOperations = default(IList <MicrosoftDynamicsCRMasyncoperation>), MicrosoftDynamicsCRMprincipal ownerid = default(MicrosoftDynamicsCRMprincipal), MicrosoftDynamicsCRMbusinessunit owningbusinessunit = default(MicrosoftDynamicsCRMbusinessunit), MicrosoftDynamicsCRMteam owningteam = default(MicrosoftDynamicsCRMteam), MicrosoftDynamicsCRMsystemuser owninguser = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser createdonbehalfby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMqueue regardingobjectidQueue = default(MicrosoftDynamicsCRMqueue), IList <MicrosoftDynamicsCRMsyncerror> postFollowSyncErrors = default(IList <MicrosoftDynamicsCRMsyncerror>), MicrosoftDynamicsCRMprocesssession regardingobjectidProcesssession = default(MicrosoftDynamicsCRMprocesssession), MicrosoftDynamicsCRMknowledgearticle regardingobjectidKnowledgearticle = default(MicrosoftDynamicsCRMknowledgearticle)) { this._owningteamValue = _owningteamValue; this._owneridValue = _owneridValue; Postfollowid = postfollowid; this._owninguserValue = _owninguserValue; this._regardingobjectidValue = _regardingobjectidValue; Utcconversiontimezonecode = utcconversiontimezonecode; Timezoneruleversionnumber = timezoneruleversionnumber; this._owningbusinessunitValue = _owningbusinessunitValue; this._createdbyValue = _createdbyValue; Createdon = createdon; Yammerpoststate = yammerpoststate; Versionnumber = versionnumber; this._createdonbehalfbyValue = _createdonbehalfbyValue; RegardingobjectidTask = regardingobjectidTask; RegardingobjectidAppointment = regardingobjectidAppointment; RegardingobjectidPhonecall = regardingobjectidPhonecall; RegardingobjectidRecurringappointmentmaster = regardingobjectidRecurringappointmentmaster; RegardingobjectidLead = regardingobjectidLead; RegardingobjectidIncident = regardingobjectidIncident; RegardingobjectidOpportunity = regardingobjectidOpportunity; RegardingobjectidCompetitor = regardingobjectidCompetitor; RegardingobjectidCsuVehicledetail = regardingobjectidCsuVehicledetail; Createdby = createdby; RegardingobjectidAccount = regardingobjectidAccount; RegardingobjectidContact = regardingobjectidContact; RegardingobjectidSystemuser = regardingobjectidSystemuser; PostFollowAsyncOperations = postFollowAsyncOperations; Ownerid = ownerid; Owningbusinessunit = owningbusinessunit; Owningteam = owningteam; Owninguser = owninguser; Createdonbehalfby = createdonbehalfby; RegardingobjectidQueue = regardingobjectidQueue; PostFollowSyncErrors = postFollowSyncErrors; RegardingobjectidProcesssession = regardingobjectidProcesssession; RegardingobjectidKnowledgearticle = regardingobjectidKnowledgearticle; CustomInit(); }
/// <summary> /// Initializes a new instance of the /// MicrosoftDynamicsCRMactivitypointer class. /// </summary> public MicrosoftDynamicsCRMactivitypointer(System.DateTimeOffset?lastonholdtime = default(System.DateTimeOffset?), string _owningteamValue = default(string), string exchangeitemid = default(string), bool?ismapiprivate = default(bool?), System.DateTimeOffset?createdon = default(System.DateTimeOffset?), string seriesid = default(string), string _regardingobjectidValue = default(string), System.DateTimeOffset?deliverylastattemptedon = default(System.DateTimeOffset?), bool?isbilled = default(bool?), bool?isworkflowcreated = default(bool?), string _sendermailboxidValue = default(string), System.DateTimeOffset?scheduledend = default(System.DateTimeOffset?), string description = default(string), int?onholdtime = default(int?), string _modifiedbyValue = default(string), int?community = default(int?), System.DateTimeOffset?sortdate = default(System.DateTimeOffset?), int?instancetypecode = default(int?), int?timezoneruleversionnumber = default(int?), string _createdonbehalfbyValue = default(string), string _createdbyValue = default(string), string _transactioncurrencyidValue = default(string), string versionnumber = default(string), string processid = default(string), int?prioritycode = default(int?), string _serviceidValue = default(string), string _slaidValue = default(string), string stageid = default(string), System.DateTimeOffset?actualstart = default(System.DateTimeOffset?), string _owningbusinessunitValue = default(string), string _owninguserValue = default(string), int?utcconversiontimezonecode = default(int?), string exchangeweblink = default(string), int?scheduleddurationminutes = default(int?), System.DateTimeOffset?senton = default(System.DateTimeOffset?), System.DateTimeOffset?scheduledstart = default(System.DateTimeOffset?), string _slainvokedidValue = default(string), int?statecode = default(int?), string subject = default(string), System.DateTimeOffset?postponeactivityprocessinguntil = default(System.DateTimeOffset?), string _modifiedonbehalfbyValue = default(string), decimal?exchangerate = default(decimal?), bool?isregularactivity = default(bool?), int?deliveryprioritycode = default(int?), int?actualdurationminutes = default(int?), string traversedpath = default(string), string activityid = default(string), string activitytypecode = default(string), string activityadditionalparams = default(string), System.DateTimeOffset?modifiedon = default(System.DateTimeOffset?), string _owneridValue = default(string), bool?leftvoicemail = default(bool?), int?statuscode = default(int?), System.DateTimeOffset?actualend = default(System.DateTimeOffset?), MicrosoftDynamicsCRMinteractionforemail regardingobjectidNewInteractionforemail = default(MicrosoftDynamicsCRMinteractionforemail), MicrosoftDynamicsCRMknowledgebaserecord regardingobjectidKnowledgebaserecord = default(MicrosoftDynamicsCRMknowledgebaserecord), MicrosoftDynamicsCRMlead regardingobjectidLead = default(MicrosoftDynamicsCRMlead), MicrosoftDynamicsCRMbookableresourcebooking regardingobjectidBookableresourcebooking = default(MicrosoftDynamicsCRMbookableresourcebooking), MicrosoftDynamicsCRMbookableresourcebookingheader regardingobjectidBookableresourcebookingheader = default(MicrosoftDynamicsCRMbookableresourcebookingheader), IList <MicrosoftDynamicsCRMbulkoperation> activityPointerBulkOperation = default(IList <MicrosoftDynamicsCRMbulkoperation>), MicrosoftDynamicsCRMbulkoperation regardingobjectidBulkoperation = default(MicrosoftDynamicsCRMbulkoperation), MicrosoftDynamicsCRMcampaign regardingobjectidCampaign = default(MicrosoftDynamicsCRMcampaign), IList <MicrosoftDynamicsCRMcampaignactivity> activityPointerCampaignactivity = default(IList <MicrosoftDynamicsCRMcampaignactivity>), MicrosoftDynamicsCRMcampaignactivity regardingobjectidCampaignactivity = default(MicrosoftDynamicsCRMcampaignactivity), IList <MicrosoftDynamicsCRMcampaignresponse> activityPointerCampaignresponse = default(IList <MicrosoftDynamicsCRMcampaignresponse>), IList <MicrosoftDynamicsCRMbulkoperationlog> activityPointerBulkOperationLogs = default(IList <MicrosoftDynamicsCRMbulkoperationlog>), IList <MicrosoftDynamicsCRMbulkoperationlog> createdActivityBulkOperationLogs = default(IList <MicrosoftDynamicsCRMbulkoperationlog>), IList <MicrosoftDynamicsCRMcampaignactivityitem> activityPointerCampaignActivityItems = default(IList <MicrosoftDynamicsCRMcampaignactivityitem>), IList <MicrosoftDynamicsCRMcampaignresponse> activityCampaignresponse = default(IList <MicrosoftDynamicsCRMcampaignresponse>), MicrosoftDynamicsCRMcontract regardingobjectidContract = default(MicrosoftDynamicsCRMcontract), MicrosoftDynamicsCRMentitlement regardingobjectidEntitlement = default(MicrosoftDynamicsCRMentitlement), MicrosoftDynamicsCRMentitlementtemplate regardingobjectidEntitlementtemplate = default(MicrosoftDynamicsCRMentitlementtemplate), MicrosoftDynamicsCRMincident regardingobjectidIncident = default(MicrosoftDynamicsCRMincident), IList <MicrosoftDynamicsCRMincidentresolution> activityPointerIncidentResolution = default(IList <MicrosoftDynamicsCRMincidentresolution>), IList <MicrosoftDynamicsCRMserviceappointment> activityPointerServiceAppointment = default(IList <MicrosoftDynamicsCRMserviceappointment>), MicrosoftDynamicsCRMsite regardingobjectidSite = default(MicrosoftDynamicsCRMsite), MicrosoftDynamicsCRMservice serviceid = default(MicrosoftDynamicsCRMservice), MicrosoftDynamicsCRMinvoice regardingobjectidInvoice = default(MicrosoftDynamicsCRMinvoice), MicrosoftDynamicsCRMopportunity regardingobjectidOpportunity = default(MicrosoftDynamicsCRMopportunity), IList <MicrosoftDynamicsCRMopportunityclose> activityPointerOpportunityClose = default(IList <MicrosoftDynamicsCRMopportunityclose>), IList <MicrosoftDynamicsCRMorderclose> activityPointerOrderClose = default(IList <MicrosoftDynamicsCRMorderclose>), MicrosoftDynamicsCRMquote regardingobjectidQuote = default(MicrosoftDynamicsCRMquote), IList <MicrosoftDynamicsCRMquoteclose> activityPointerQuoteClose = default(IList <MicrosoftDynamicsCRMquoteclose>), MicrosoftDynamicsCRMsalesorder regardingobjectidSalesorder = default(MicrosoftDynamicsCRMsalesorder), MicrosoftDynamicsCRMmsdynPostalbum regardingobjectidMsdynPostalbum = default(MicrosoftDynamicsCRMmsdynPostalbum), MicrosoftDynamicsCRMcsuComplaints regardingobjectidCsuComplaints = default(MicrosoftDynamicsCRMcsuComplaints), MicrosoftDynamicsCRMcsuSubjectofcomplaint regardingobjectidCsuSubjectofcomplaint = default(MicrosoftDynamicsCRMcsuSubjectofcomplaint), IList <MicrosoftDynamicsCRMcsuCasetask> activityPointerCsuCasetask = default(IList <MicrosoftDynamicsCRMcsuCasetask>), MicrosoftDynamicsCRMcsuVehicledetail regardingobjectidCsuVehicledetail = default(MicrosoftDynamicsCRMcsuVehicledetail), MicrosoftDynamicsCRMaccount regardingobjectidAccount = default(MicrosoftDynamicsCRMaccount), MicrosoftDynamicsCRMsystemuser createdby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMcontact regardingobjectidContact = default(MicrosoftDynamicsCRMcontact), IList <MicrosoftDynamicsCRMsocialactivity> activityPointerSocialactivity = default(IList <MicrosoftDynamicsCRMsocialactivity>), IList <MicrosoftDynamicsCRMrecurringappointmentmaster> activityPointerRecurringappointmentmaster = default(IList <MicrosoftDynamicsCRMrecurringappointmentmaster>), IList <MicrosoftDynamicsCRMemail> activityPointerEmail = default(IList <MicrosoftDynamicsCRMemail>), MicrosoftDynamicsCRMmailbox sendermailboxid = default(MicrosoftDynamicsCRMmailbox), MicrosoftDynamicsCRMtransactioncurrency transactioncurrencyid = default(MicrosoftDynamicsCRMtransactioncurrency), IList <MicrosoftDynamicsCRMqueueitem> activityPointerQueueItem = default(IList <MicrosoftDynamicsCRMqueueitem>), MicrosoftDynamicsCRMprincipal ownerid = default(MicrosoftDynamicsCRMprincipal), MicrosoftDynamicsCRMsystemuser owninguser = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsla slaActivitypointerSla = default(MicrosoftDynamicsCRMsla), MicrosoftDynamicsCRMbusinessunit owningbusinessunit = default(MicrosoftDynamicsCRMbusinessunit), MicrosoftDynamicsCRMknowledgearticle regardingobjectidKnowledgearticle = default(MicrosoftDynamicsCRMknowledgearticle), MicrosoftDynamicsCRMsystemuser modifiedonbehalfby = default(MicrosoftDynamicsCRMsystemuser), IList <MicrosoftDynamicsCRMactivitymimeattachment> activityPointerActivityMimeAttachment = default(IList <MicrosoftDynamicsCRMactivitymimeattachment>), IList <MicrosoftDynamicsCRMfax> activityPointerFax = default(IList <MicrosoftDynamicsCRMfax>), MicrosoftDynamicsCRMsystemuser createdonbehalfby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser modifiedby = default(MicrosoftDynamicsCRMsystemuser), IList <MicrosoftDynamicsCRMtask> activityPointerTask = default(IList <MicrosoftDynamicsCRMtask>), IList <MicrosoftDynamicsCRMphonecall> activityPointerPhonecall = default(IList <MicrosoftDynamicsCRMphonecall>), IList <MicrosoftDynamicsCRMappointment> activityPointerAppointment = default(IList <MicrosoftDynamicsCRMappointment>), IList <MicrosoftDynamicsCRMletter> activityPointerLetter = default(IList <MicrosoftDynamicsCRMletter>), IList <MicrosoftDynamicsCRMconnection> activitypointerConnections2 = default(IList <MicrosoftDynamicsCRMconnection>), IList <MicrosoftDynamicsCRMslakpiinstance> slakpiinstanceActivitypointer = default(IList <MicrosoftDynamicsCRMslakpiinstance>), MicrosoftDynamicsCRMteam owningteam = default(MicrosoftDynamicsCRMteam), IList <MicrosoftDynamicsCRMbulkdeletefailure> activityPointerBulkDeleteFailures = default(IList <MicrosoftDynamicsCRMbulkdeletefailure>), MicrosoftDynamicsCRMsla slainvokedidActivitypointerSla = default(MicrosoftDynamicsCRMsla), IList <MicrosoftDynamicsCRMconnection> activitypointerConnections1 = default(IList <MicrosoftDynamicsCRMconnection>), IList <MicrosoftDynamicsCRMasyncoperation> activityPointerAsyncOperations = default(IList <MicrosoftDynamicsCRMasyncoperation>), IList <MicrosoftDynamicsCRMrecurrencerule> activityPointerRecurrencerule = default(IList <MicrosoftDynamicsCRMrecurrencerule>), IList <MicrosoftDynamicsCRMactivityparty> activitypointerActivityParties = default(IList <MicrosoftDynamicsCRMactivityparty>)) { Lastonholdtime = lastonholdtime; this._owningteamValue = _owningteamValue; Exchangeitemid = exchangeitemid; Ismapiprivate = ismapiprivate; Createdon = createdon; Seriesid = seriesid; this._regardingobjectidValue = _regardingobjectidValue; Deliverylastattemptedon = deliverylastattemptedon; Isbilled = isbilled; Isworkflowcreated = isworkflowcreated; this._sendermailboxidValue = _sendermailboxidValue; Scheduledend = scheduledend; Description = description; Onholdtime = onholdtime; this._modifiedbyValue = _modifiedbyValue; Community = community; Sortdate = sortdate; Instancetypecode = instancetypecode; Timezoneruleversionnumber = timezoneruleversionnumber; this._createdonbehalfbyValue = _createdonbehalfbyValue; this._createdbyValue = _createdbyValue; this._transactioncurrencyidValue = _transactioncurrencyidValue; Versionnumber = versionnumber; Processid = processid; Prioritycode = prioritycode; this._serviceidValue = _serviceidValue; this._slaidValue = _slaidValue; Stageid = stageid; Actualstart = actualstart; this._owningbusinessunitValue = _owningbusinessunitValue; this._owninguserValue = _owninguserValue; Utcconversiontimezonecode = utcconversiontimezonecode; Exchangeweblink = exchangeweblink; Scheduleddurationminutes = scheduleddurationminutes; Senton = senton; Scheduledstart = scheduledstart; this._slainvokedidValue = _slainvokedidValue; Statecode = statecode; Subject = subject; Postponeactivityprocessinguntil = postponeactivityprocessinguntil; this._modifiedonbehalfbyValue = _modifiedonbehalfbyValue; Exchangerate = exchangerate; Isregularactivity = isregularactivity; Deliveryprioritycode = deliveryprioritycode; Actualdurationminutes = actualdurationminutes; Traversedpath = traversedpath; Activityid = activityid; Activitytypecode = activitytypecode; Activityadditionalparams = activityadditionalparams; Modifiedon = modifiedon; this._owneridValue = _owneridValue; Leftvoicemail = leftvoicemail; Statuscode = statuscode; Actualend = actualend; RegardingobjectidNewInteractionforemail = regardingobjectidNewInteractionforemail; RegardingobjectidKnowledgebaserecord = regardingobjectidKnowledgebaserecord; RegardingobjectidLead = regardingobjectidLead; RegardingobjectidBookableresourcebooking = regardingobjectidBookableresourcebooking; RegardingobjectidBookableresourcebookingheader = regardingobjectidBookableresourcebookingheader; ActivityPointerBulkOperation = activityPointerBulkOperation; RegardingobjectidBulkoperation = regardingobjectidBulkoperation; RegardingobjectidCampaign = regardingobjectidCampaign; ActivityPointerCampaignactivity = activityPointerCampaignactivity; RegardingobjectidCampaignactivity = regardingobjectidCampaignactivity; ActivityPointerCampaignresponse = activityPointerCampaignresponse; ActivityPointerBulkOperationLogs = activityPointerBulkOperationLogs; CreatedActivityBulkOperationLogs = createdActivityBulkOperationLogs; ActivityPointerCampaignActivityItems = activityPointerCampaignActivityItems; ActivityCampaignresponse = activityCampaignresponse; RegardingobjectidContract = regardingobjectidContract; RegardingobjectidEntitlement = regardingobjectidEntitlement; RegardingobjectidEntitlementtemplate = regardingobjectidEntitlementtemplate; RegardingobjectidIncident = regardingobjectidIncident; ActivityPointerIncidentResolution = activityPointerIncidentResolution; ActivityPointerServiceAppointment = activityPointerServiceAppointment; RegardingobjectidSite = regardingobjectidSite; Serviceid = serviceid; RegardingobjectidInvoice = regardingobjectidInvoice; RegardingobjectidOpportunity = regardingobjectidOpportunity; ActivityPointerOpportunityClose = activityPointerOpportunityClose; ActivityPointerOrderClose = activityPointerOrderClose; RegardingobjectidQuote = regardingobjectidQuote; ActivityPointerQuoteClose = activityPointerQuoteClose; RegardingobjectidSalesorder = regardingobjectidSalesorder; RegardingobjectidMsdynPostalbum = regardingobjectidMsdynPostalbum; RegardingobjectidCsuComplaints = regardingobjectidCsuComplaints; RegardingobjectidCsuSubjectofcomplaint = regardingobjectidCsuSubjectofcomplaint; ActivityPointerCsuCasetask = activityPointerCsuCasetask; RegardingobjectidCsuVehicledetail = regardingobjectidCsuVehicledetail; RegardingobjectidAccount = regardingobjectidAccount; Createdby = createdby; RegardingobjectidContact = regardingobjectidContact; ActivityPointerSocialactivity = activityPointerSocialactivity; ActivityPointerRecurringappointmentmaster = activityPointerRecurringappointmentmaster; ActivityPointerEmail = activityPointerEmail; Sendermailboxid = sendermailboxid; Transactioncurrencyid = transactioncurrencyid; ActivityPointerQueueItem = activityPointerQueueItem; Ownerid = ownerid; Owninguser = owninguser; SlaActivitypointerSla = slaActivitypointerSla; Owningbusinessunit = owningbusinessunit; RegardingobjectidKnowledgearticle = regardingobjectidKnowledgearticle; Modifiedonbehalfby = modifiedonbehalfby; ActivityPointerActivityMimeAttachment = activityPointerActivityMimeAttachment; ActivityPointerFax = activityPointerFax; Createdonbehalfby = createdonbehalfby; Modifiedby = modifiedby; ActivityPointerTask = activityPointerTask; ActivityPointerPhonecall = activityPointerPhonecall; ActivityPointerAppointment = activityPointerAppointment; ActivityPointerLetter = activityPointerLetter; ActivitypointerConnections2 = activitypointerConnections2; SlakpiinstanceActivitypointer = slakpiinstanceActivitypointer; Owningteam = owningteam; ActivityPointerBulkDeleteFailures = activityPointerBulkDeleteFailures; SlainvokedidActivitypointerSla = slainvokedidActivitypointerSla; ActivitypointerConnections1 = activitypointerConnections1; ActivityPointerAsyncOperations = activityPointerAsyncOperations; ActivityPointerRecurrencerule = activityPointerRecurrencerule; ActivitypointerActivityParties = activitypointerActivityParties; CustomInit(); }
/// <summary> /// Initializes a new instance of the MicrosoftDynamicsCRMphonecall /// class. /// </summary> public MicrosoftDynamicsCRMphonecall(string subcategory = default(string), bool?directioncode = default(bool?), System.DateTimeOffset?overriddencreatedon = default(System.DateTimeOffset?), string category = default(string), string subscriptionid = default(string), string phonenumber = default(string), int?importsequencenumber = default(int?), IList <MicrosoftDynamicsCRMpostregarding> phonecallPostRegardings = default(IList <MicrosoftDynamicsCRMpostregarding>), IList <MicrosoftDynamicsCRMpostfollow> phonecallPostFollows = default(IList <MicrosoftDynamicsCRMpostfollow>), MicrosoftDynamicsCRMknowledgebaserecord regardingobjectidKnowledgebaserecordPhonecall = default(MicrosoftDynamicsCRMknowledgebaserecord), MicrosoftDynamicsCRMlead regardingobjectidLeadPhonecall = default(MicrosoftDynamicsCRMlead), MicrosoftDynamicsCRMbookableresourcebooking regardingobjectidBookableresourcebookingPhonecall = default(MicrosoftDynamicsCRMbookableresourcebooking), MicrosoftDynamicsCRMbookableresourcebookingheader regardingobjectidBookableresourcebookingheaderPhonecall = default(MicrosoftDynamicsCRMbookableresourcebookingheader), MicrosoftDynamicsCRMbulkoperation regardingobjectidBulkoperationPhonecall = default(MicrosoftDynamicsCRMbulkoperation), MicrosoftDynamicsCRMcampaign regardingobjectidCampaignPhonecall = default(MicrosoftDynamicsCRMcampaign), MicrosoftDynamicsCRMcampaignactivity regardingobjectidCampaignactivityPhonecall = default(MicrosoftDynamicsCRMcampaignactivity), IList <MicrosoftDynamicsCRMcampaignresponse> phonecallCampaignresponse = default(IList <MicrosoftDynamicsCRMcampaignresponse>), MicrosoftDynamicsCRMcontract regardingobjectidContractPhonecall = default(MicrosoftDynamicsCRMcontract), MicrosoftDynamicsCRMentitlement regardingobjectidEntitlementPhonecall = default(MicrosoftDynamicsCRMentitlement), MicrosoftDynamicsCRMentitlementtemplate regardingobjectidEntitlementtemplatePhonecall = default(MicrosoftDynamicsCRMentitlementtemplate), MicrosoftDynamicsCRMincident regardingobjectidIncidentPhonecall = default(MicrosoftDynamicsCRMincident), MicrosoftDynamicsCRMsite regardingobjectidSitePhonecall = default(MicrosoftDynamicsCRMsite), MicrosoftDynamicsCRMservice serviceidPhonecall = default(MicrosoftDynamicsCRMservice), MicrosoftDynamicsCRMinvoice regardingobjectidInvoicePhonecall = default(MicrosoftDynamicsCRMinvoice), MicrosoftDynamicsCRMopportunity regardingobjectidOpportunityPhonecall = default(MicrosoftDynamicsCRMopportunity), MicrosoftDynamicsCRMquote regardingobjectidQuotePhonecall = default(MicrosoftDynamicsCRMquote), MicrosoftDynamicsCRMsalesorder regardingobjectidSalesorderPhonecall = default(MicrosoftDynamicsCRMsalesorder), MicrosoftDynamicsCRMmsdynPostalbum regardingobjectidMsdynPostalbumPhonecall = default(MicrosoftDynamicsCRMmsdynPostalbum), MicrosoftDynamicsCRMcsuComplaints regardingobjectidCsuComplaintsPhonecall = default(MicrosoftDynamicsCRMcsuComplaints), MicrosoftDynamicsCRMcsuSubjectofcomplaint regardingobjectidCsuSubjectofcomplaintPhonecall = default(MicrosoftDynamicsCRMcsuSubjectofcomplaint), MicrosoftDynamicsCRMcsuVehicledetail regardingobjectidCsuVehicledetailPhonecall = default(MicrosoftDynamicsCRMcsuVehicledetail), IList <MicrosoftDynamicsCRMactioncard> phonecallActioncard = default(IList <MicrosoftDynamicsCRMactioncard>), MicrosoftDynamicsCRMtransactioncurrency transactioncurrencyidPhonecall = default(MicrosoftDynamicsCRMtransactioncurrency), MicrosoftDynamicsCRMcontact regardingobjectidContactPhonecall = default(MicrosoftDynamicsCRMcontact), MicrosoftDynamicsCRMsla slaPhonecallSla = default(MicrosoftDynamicsCRMsla), IList <MicrosoftDynamicsCRMbulkdeletefailure> phoneCallBulkDeleteFailures = default(IList <MicrosoftDynamicsCRMbulkdeletefailure>), MicrosoftDynamicsCRMsystemuser modifiedonbehalfbyPhonecall = default(MicrosoftDynamicsCRMsystemuser), IList <MicrosoftDynamicsCRMasyncoperation> phoneCallAsyncOperations = default(IList <MicrosoftDynamicsCRMasyncoperation>), MicrosoftDynamicsCRMaccount regardingobjectidAccountPhonecall = default(MicrosoftDynamicsCRMaccount), MicrosoftDynamicsCRMsystemuser createdbyPhonecall = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser createdonbehalfbyPhonecall = default(MicrosoftDynamicsCRMsystemuser), IList <MicrosoftDynamicsCRMactivityparty> phonecallActivityParties = default(IList <MicrosoftDynamicsCRMactivityparty>), IList <MicrosoftDynamicsCRMprocesssession> phoneCallProcessSessions = default(IList <MicrosoftDynamicsCRMprocesssession>), MicrosoftDynamicsCRMbusinessunit owningbusinessunitPhonecall = default(MicrosoftDynamicsCRMbusinessunit), IList <MicrosoftDynamicsCRMduplicaterecord> phoneCallDuplicateMatchingRecord = default(IList <MicrosoftDynamicsCRMduplicaterecord>), MicrosoftDynamicsCRMknowledgearticle regardingobjectidKnowledgearticlePhonecall = default(MicrosoftDynamicsCRMknowledgearticle), MicrosoftDynamicsCRMprocessstage stageidProcessstage = default(MicrosoftDynamicsCRMprocessstage), IList <MicrosoftDynamicsCRMduplicaterecord> phoneCallDuplicateBaseRecord = default(IList <MicrosoftDynamicsCRMduplicaterecord>), IList <MicrosoftDynamicsCRMconnection> phonecallConnections1 = default(IList <MicrosoftDynamicsCRMconnection>), MicrosoftDynamicsCRMactivitypointer activityidActivitypointer = default(MicrosoftDynamicsCRMactivitypointer), IList <MicrosoftDynamicsCRMslakpiinstance> slakpiinstancePhonecall = default(IList <MicrosoftDynamicsCRMslakpiinstance>), MicrosoftDynamicsCRMsla slainvokedidPhonecallSla = default(MicrosoftDynamicsCRMsla), IList <MicrosoftDynamicsCRMsyncerror> phoneCallSyncErrors = default(IList <MicrosoftDynamicsCRMsyncerror>), MicrosoftDynamicsCRMsystemuser modifiedbyPhonecall = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMteam owningteamPhonecall = default(MicrosoftDynamicsCRMteam), IList <MicrosoftDynamicsCRMqueueitem> phoneCallQueueItem = default(IList <MicrosoftDynamicsCRMqueueitem>), IList <MicrosoftDynamicsCRMannotation> phoneCallAnnotation = default(IList <MicrosoftDynamicsCRMannotation>), IList <MicrosoftDynamicsCRMconnection> phonecallConnections2 = default(IList <MicrosoftDynamicsCRMconnection>), MicrosoftDynamicsCRMsystemuser owninguserPhonecall = default(MicrosoftDynamicsCRMsystemuser), IList <MicrosoftDynamicsCRMprincipalobjectattributeaccess> phonecallPrincipalobjectattributeaccess = default(IList <MicrosoftDynamicsCRMprincipalobjectattributeaccess>)) { Subcategory = subcategory; Directioncode = directioncode; Overriddencreatedon = overriddencreatedon; Category = category; Subscriptionid = subscriptionid; Phonenumber = phonenumber; Importsequencenumber = importsequencenumber; PhonecallPostRegardings = phonecallPostRegardings; PhonecallPostFollows = phonecallPostFollows; RegardingobjectidKnowledgebaserecordPhonecall = regardingobjectidKnowledgebaserecordPhonecall; RegardingobjectidLeadPhonecall = regardingobjectidLeadPhonecall; RegardingobjectidBookableresourcebookingPhonecall = regardingobjectidBookableresourcebookingPhonecall; RegardingobjectidBookableresourcebookingheaderPhonecall = regardingobjectidBookableresourcebookingheaderPhonecall; RegardingobjectidBulkoperationPhonecall = regardingobjectidBulkoperationPhonecall; RegardingobjectidCampaignPhonecall = regardingobjectidCampaignPhonecall; RegardingobjectidCampaignactivityPhonecall = regardingobjectidCampaignactivityPhonecall; PhonecallCampaignresponse = phonecallCampaignresponse; RegardingobjectidContractPhonecall = regardingobjectidContractPhonecall; RegardingobjectidEntitlementPhonecall = regardingobjectidEntitlementPhonecall; RegardingobjectidEntitlementtemplatePhonecall = regardingobjectidEntitlementtemplatePhonecall; RegardingobjectidIncidentPhonecall = regardingobjectidIncidentPhonecall; RegardingobjectidSitePhonecall = regardingobjectidSitePhonecall; ServiceidPhonecall = serviceidPhonecall; RegardingobjectidInvoicePhonecall = regardingobjectidInvoicePhonecall; RegardingobjectidOpportunityPhonecall = regardingobjectidOpportunityPhonecall; RegardingobjectidQuotePhonecall = regardingobjectidQuotePhonecall; RegardingobjectidSalesorderPhonecall = regardingobjectidSalesorderPhonecall; RegardingobjectidMsdynPostalbumPhonecall = regardingobjectidMsdynPostalbumPhonecall; RegardingobjectidCsuComplaintsPhonecall = regardingobjectidCsuComplaintsPhonecall; RegardingobjectidCsuSubjectofcomplaintPhonecall = regardingobjectidCsuSubjectofcomplaintPhonecall; RegardingobjectidCsuVehicledetailPhonecall = regardingobjectidCsuVehicledetailPhonecall; PhonecallActioncard = phonecallActioncard; TransactioncurrencyidPhonecall = transactioncurrencyidPhonecall; RegardingobjectidContactPhonecall = regardingobjectidContactPhonecall; SlaPhonecallSla = slaPhonecallSla; PhoneCallBulkDeleteFailures = phoneCallBulkDeleteFailures; ModifiedonbehalfbyPhonecall = modifiedonbehalfbyPhonecall; PhoneCallAsyncOperations = phoneCallAsyncOperations; RegardingobjectidAccountPhonecall = regardingobjectidAccountPhonecall; CreatedbyPhonecall = createdbyPhonecall; CreatedonbehalfbyPhonecall = createdonbehalfbyPhonecall; PhonecallActivityParties = phonecallActivityParties; PhoneCallProcessSessions = phoneCallProcessSessions; OwningbusinessunitPhonecall = owningbusinessunitPhonecall; PhoneCallDuplicateMatchingRecord = phoneCallDuplicateMatchingRecord; RegardingobjectidKnowledgearticlePhonecall = regardingobjectidKnowledgearticlePhonecall; StageidProcessstage = stageidProcessstage; PhoneCallDuplicateBaseRecord = phoneCallDuplicateBaseRecord; PhonecallConnections1 = phonecallConnections1; ActivityidActivitypointer = activityidActivitypointer; SlakpiinstancePhonecall = slakpiinstancePhonecall; SlainvokedidPhonecallSla = slainvokedidPhonecallSla; PhoneCallSyncErrors = phoneCallSyncErrors; ModifiedbyPhonecall = modifiedbyPhonecall; OwningteamPhonecall = owningteamPhonecall; PhoneCallQueueItem = phoneCallQueueItem; PhoneCallAnnotation = phoneCallAnnotation; PhonecallConnections2 = phonecallConnections2; OwninguserPhonecall = owninguserPhonecall; PhonecallPrincipalobjectattributeaccess = phonecallPrincipalobjectattributeaccess; CustomInit(); }
/// <summary> /// Initializes a new instance of the /// MicrosoftDynamicsCRMsharepointdocumentlocation class. /// </summary> public MicrosoftDynamicsCRMsharepointdocumentlocation(string description = default(string), string _owneridValue = default(string), System.DateTimeOffset?createdon = default(System.DateTimeOffset?), int?statuscode = default(int?), string _owningbusinessunitValue = default(string), string userid = default(string), string _transactioncurrencyidValue = default(string), int?locationtype = default(int?), string _owninguserValue = default(string), string absoluteurl = default(string), int?importsequencenumber = default(int?), string _createdbyValue = default(string), string name = default(string), string _modifiedonbehalfbyValue = default(string), string _regardingobjectidValue = default(string), string _parentsiteorlocationValue = default(string), string versionnumber = default(string), int?timezoneruleversionnumber = default(int?), int?utcconversiontimezonecode = default(int?), int?statecode = default(int?), string _owningteamValue = default(string), decimal?exchangerate = default(decimal?), string sitecollectionid = default(string), System.DateTimeOffset?overriddencreatedon = default(System.DateTimeOffset?), string relativeurl = default(string), System.DateTimeOffset?modifiedon = default(System.DateTimeOffset?), string _modifiedbyValue = default(string), string sharepointdocumentlocationid = default(string), string _createdonbehalfbyValue = default(string), int?servicetype = default(int?), MicrosoftDynamicsCRMknowledgearticle regardingobjectidKnowledgearticle = default(MicrosoftDynamicsCRMknowledgearticle), MicrosoftDynamicsCRMsystemuser owninguser = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMteam owningteam = default(MicrosoftDynamicsCRMteam), MicrosoftDynamicsCRMprincipal ownerid = default(MicrosoftDynamicsCRMprincipal), MicrosoftDynamicsCRMbusinessunit owningbusinessunit = default(MicrosoftDynamicsCRMbusinessunit), MicrosoftDynamicsCRMlead regardingobjectidLead = default(MicrosoftDynamicsCRMlead), MicrosoftDynamicsCRMproduct regardingobjectidProduct = default(MicrosoftDynamicsCRMproduct), MicrosoftDynamicsCRMopportunity regardingobjectidOpportunity = default(MicrosoftDynamicsCRMopportunity), MicrosoftDynamicsCRMquote regardingobjectidQuote = default(MicrosoftDynamicsCRMquote), MicrosoftDynamicsCRMsalesliterature regardingobjectidSalesliterature = default(MicrosoftDynamicsCRMsalesliterature), MicrosoftDynamicsCRMcsuComplaints regardingobjectidCsuComplaints = default(MicrosoftDynamicsCRMcsuComplaints), MicrosoftDynamicsCRMincident regardingobjectidIncident = default(MicrosoftDynamicsCRMincident), MicrosoftDynamicsCRMaccount regardingobjectidAccount = default(MicrosoftDynamicsCRMaccount), IList <MicrosoftDynamicsCRMprincipalobjectattributeaccess> sharepointdocumentlocationPrincipalobjectattributeaccess = default(IList <MicrosoftDynamicsCRMprincipalobjectattributeaccess>), MicrosoftDynamicsCRMsharepointdocumentlocation parentsiteorlocationSharepointdocumentlocation = default(MicrosoftDynamicsCRMsharepointdocumentlocation), IList <MicrosoftDynamicsCRMsharepointdocumentlocation> sharepointdocumentlocationParentSharepointdocumentlocation = default(IList <MicrosoftDynamicsCRMsharepointdocumentlocation>), MicrosoftDynamicsCRMsystemuser createdonbehalfby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser modifiedby = default(MicrosoftDynamicsCRMsystemuser), IList <MicrosoftDynamicsCRMduplicaterecord> sharePointDocumentLocationDuplicateBaseRecord = default(IList <MicrosoftDynamicsCRMduplicaterecord>), MicrosoftDynamicsCRMsystemuser createdby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsharepointsite parentsiteorlocationSharepointsite = default(MicrosoftDynamicsCRMsharepointsite), MicrosoftDynamicsCRMsystemuser modifiedonbehalfby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMkbarticle regardingobjectidKbarticle = default(MicrosoftDynamicsCRMkbarticle), IList <MicrosoftDynamicsCRMduplicaterecord> sharePointDocumentLocationDuplicateMatchingRecord = default(IList <MicrosoftDynamicsCRMduplicaterecord>), IList <MicrosoftDynamicsCRMprocesssession> sharePointDocumentLocationProcessSessions = default(IList <MicrosoftDynamicsCRMprocesssession>), MicrosoftDynamicsCRMtransactioncurrency transactioncurrencyid = default(MicrosoftDynamicsCRMtransactioncurrency), IList <MicrosoftDynamicsCRMsyncerror> sharePointDocumentLocationSyncErrors = default(IList <MicrosoftDynamicsCRMsyncerror>), IList <MicrosoftDynamicsCRMasyncoperation> sharePointDocumentLocationAsyncOperations = default(IList <MicrosoftDynamicsCRMasyncoperation>)) { Description = description; this._owneridValue = _owneridValue; Createdon = createdon; Statuscode = statuscode; this._owningbusinessunitValue = _owningbusinessunitValue; Userid = userid; this._transactioncurrencyidValue = _transactioncurrencyidValue; Locationtype = locationtype; this._owninguserValue = _owninguserValue; Absoluteurl = absoluteurl; Importsequencenumber = importsequencenumber; this._createdbyValue = _createdbyValue; Name = name; this._modifiedonbehalfbyValue = _modifiedonbehalfbyValue; this._regardingobjectidValue = _regardingobjectidValue; this._parentsiteorlocationValue = _parentsiteorlocationValue; Versionnumber = versionnumber; Timezoneruleversionnumber = timezoneruleversionnumber; Utcconversiontimezonecode = utcconversiontimezonecode; Statecode = statecode; this._owningteamValue = _owningteamValue; Exchangerate = exchangerate; Sitecollectionid = sitecollectionid; Overriddencreatedon = overriddencreatedon; Relativeurl = relativeurl; Modifiedon = modifiedon; this._modifiedbyValue = _modifiedbyValue; Sharepointdocumentlocationid = sharepointdocumentlocationid; this._createdonbehalfbyValue = _createdonbehalfbyValue; Servicetype = servicetype; RegardingobjectidKnowledgearticle = regardingobjectidKnowledgearticle; Owninguser = owninguser; Owningteam = owningteam; Ownerid = ownerid; Owningbusinessunit = owningbusinessunit; RegardingobjectidLead = regardingobjectidLead; RegardingobjectidProduct = regardingobjectidProduct; RegardingobjectidOpportunity = regardingobjectidOpportunity; RegardingobjectidQuote = regardingobjectidQuote; RegardingobjectidSalesliterature = regardingobjectidSalesliterature; RegardingobjectidCsuComplaints = regardingobjectidCsuComplaints; RegardingobjectidIncident = regardingobjectidIncident; RegardingobjectidAccount = regardingobjectidAccount; SharepointdocumentlocationPrincipalobjectattributeaccess = sharepointdocumentlocationPrincipalobjectattributeaccess; ParentsiteorlocationSharepointdocumentlocation = parentsiteorlocationSharepointdocumentlocation; SharepointdocumentlocationParentSharepointdocumentlocation = sharepointdocumentlocationParentSharepointdocumentlocation; Createdonbehalfby = createdonbehalfby; Modifiedby = modifiedby; SharePointDocumentLocationDuplicateBaseRecord = sharePointDocumentLocationDuplicateBaseRecord; Createdby = createdby; ParentsiteorlocationSharepointsite = parentsiteorlocationSharepointsite; Modifiedonbehalfby = modifiedonbehalfby; RegardingobjectidKbarticle = regardingobjectidKbarticle; SharePointDocumentLocationDuplicateMatchingRecord = sharePointDocumentLocationDuplicateMatchingRecord; SharePointDocumentLocationProcessSessions = sharePointDocumentLocationProcessSessions; Transactioncurrencyid = transactioncurrencyid; SharePointDocumentLocationSyncErrors = sharePointDocumentLocationSyncErrors; SharePointDocumentLocationAsyncOperations = sharePointDocumentLocationAsyncOperations; CustomInit(); }
/// <summary> /// Initializes a new instance of the /// MicrosoftDynamicsCRMslakpiinstance class. /// </summary> public MicrosoftDynamicsCRMslakpiinstance(string versionnumber = default(string), string _owningbusinessunitValue = default(string), System.DateTimeOffset?computedfailuretime = default(System.DateTimeOffset?), string _regardingValue = default(string), string name = default(string), int?warningtimereached = default(int?), System.DateTimeOffset?warningtime = default(System.DateTimeOffset?), string _owneridValue = default(string), System.DateTimeOffset?succeededon = default(System.DateTimeOffset?), string _createdonbehalfbyValue = default(string), string _modifiedonbehalfbyValue = default(string), System.DateTimeOffset?modifiedon = default(System.DateTimeOffset?), decimal?exchangerate = default(decimal?), System.DateTimeOffset?failuretime = default(System.DateTimeOffset?), string slakpiinstanceid = default(string), string _createdbyValue = default(string), string description = default(string), System.DateTimeOffset?createdon = default(System.DateTimeOffset?), string _transactioncurrencyidValue = default(string), int?status = default(int?), string _owninguserValue = default(string), string _owningteamValue = default(string), System.DateTimeOffset?computedwarningtime = default(System.DateTimeOffset?), string _modifiedbyValue = default(string), MicrosoftDynamicsCRMlead regardingLead = default(MicrosoftDynamicsCRMlead), MicrosoftDynamicsCRMincident regarding = default(MicrosoftDynamicsCRMincident), MicrosoftDynamicsCRMserviceappointment regardingServiceappointment = default(MicrosoftDynamicsCRMserviceappointment), IList <MicrosoftDynamicsCRMincident> slakpiinstanceIncidentFirstresponsebykpi = default(IList <MicrosoftDynamicsCRMincident>), IList <MicrosoftDynamicsCRMincident> slakpiinstanceIncidentResolvebykpi = default(IList <MicrosoftDynamicsCRMincident>), MicrosoftDynamicsCRMinvoice regardingInvoice = default(MicrosoftDynamicsCRMinvoice), MicrosoftDynamicsCRMopportunity regardingOpportunity = default(MicrosoftDynamicsCRMopportunity), MicrosoftDynamicsCRMquote regardingQuote = default(MicrosoftDynamicsCRMquote), MicrosoftDynamicsCRMsalesorder regardingSalesorder = default(MicrosoftDynamicsCRMsalesorder), MicrosoftDynamicsCRMsystemuser createdonbehalfby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser createdby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMletter regardingLetter = default(MicrosoftDynamicsCRMletter), MicrosoftDynamicsCRMtask regardingTask = default(MicrosoftDynamicsCRMtask), MicrosoftDynamicsCRMemail regardingEmail = default(MicrosoftDynamicsCRMemail), MicrosoftDynamicsCRMbusinessunit owningbusinessunit = default(MicrosoftDynamicsCRMbusinessunit), MicrosoftDynamicsCRMsystemuser modifiedby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsocialactivity regardingSocialactivity = default(MicrosoftDynamicsCRMsocialactivity), MicrosoftDynamicsCRMaccount regardingAccount = default(MicrosoftDynamicsCRMaccount), MicrosoftDynamicsCRMappointment regardingAppointment = default(MicrosoftDynamicsCRMappointment), MicrosoftDynamicsCRMcontact regardingContact = default(MicrosoftDynamicsCRMcontact), MicrosoftDynamicsCRMfax regardingFax = default(MicrosoftDynamicsCRMfax), MicrosoftDynamicsCRMphonecall regardingPhonecall = default(MicrosoftDynamicsCRMphonecall), MicrosoftDynamicsCRMprincipal ownerid = default(MicrosoftDynamicsCRMprincipal), MicrosoftDynamicsCRMactivitypointer regardingActivitypointer = default(MicrosoftDynamicsCRMactivitypointer), IList <MicrosoftDynamicsCRMsyncerror> sLAKPIInstanceSyncErrors = default(IList <MicrosoftDynamicsCRMsyncerror>), MicrosoftDynamicsCRMsystemuser modifiedonbehalfby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMtransactioncurrency transactioncurrencyid = default(MicrosoftDynamicsCRMtransactioncurrency)) { Versionnumber = versionnumber; this._owningbusinessunitValue = _owningbusinessunitValue; Computedfailuretime = computedfailuretime; this._regardingValue = _regardingValue; Name = name; Warningtimereached = warningtimereached; Warningtime = warningtime; this._owneridValue = _owneridValue; Succeededon = succeededon; this._createdonbehalfbyValue = _createdonbehalfbyValue; this._modifiedonbehalfbyValue = _modifiedonbehalfbyValue; Modifiedon = modifiedon; Exchangerate = exchangerate; Failuretime = failuretime; Slakpiinstanceid = slakpiinstanceid; this._createdbyValue = _createdbyValue; Description = description; Createdon = createdon; this._transactioncurrencyidValue = _transactioncurrencyidValue; Status = status; this._owninguserValue = _owninguserValue; this._owningteamValue = _owningteamValue; Computedwarningtime = computedwarningtime; this._modifiedbyValue = _modifiedbyValue; RegardingLead = regardingLead; Regarding = regarding; RegardingServiceappointment = regardingServiceappointment; SlakpiinstanceIncidentFirstresponsebykpi = slakpiinstanceIncidentFirstresponsebykpi; SlakpiinstanceIncidentResolvebykpi = slakpiinstanceIncidentResolvebykpi; RegardingInvoice = regardingInvoice; RegardingOpportunity = regardingOpportunity; RegardingQuote = regardingQuote; RegardingSalesorder = regardingSalesorder; Createdonbehalfby = createdonbehalfby; Createdby = createdby; RegardingLetter = regardingLetter; RegardingTask = regardingTask; RegardingEmail = regardingEmail; Owningbusinessunit = owningbusinessunit; Modifiedby = modifiedby; RegardingSocialactivity = regardingSocialactivity; RegardingAccount = regardingAccount; RegardingAppointment = regardingAppointment; RegardingContact = regardingContact; RegardingFax = regardingFax; RegardingPhonecall = regardingPhonecall; Ownerid = ownerid; RegardingActivitypointer = regardingActivitypointer; SLAKPIInstanceSyncErrors = sLAKPIInstanceSyncErrors; Modifiedonbehalfby = modifiedonbehalfby; Transactioncurrencyid = transactioncurrencyid; CustomInit(); }
/// <summary> /// Initializes a new instance of the MicrosoftDynamicsCRMactivityparty /// class. /// </summary> public MicrosoftDynamicsCRMactivityparty(int?addressusedemailcolumnnumber = default(int?), System.DateTimeOffset?scheduledend = default(System.DateTimeOffset?), bool?donotemail = default(bool?), int?instancetypecode = default(int?), bool?donotfax = default(bool?), string addressused = default(string), System.DateTimeOffset?scheduledstart = default(System.DateTimeOffset?), string _resourcespecidValue = default(string), string _partyidValue = default(string), string exchangeentryid = default(string), bool?donotphone = default(bool?), string versionnumber = default(string), int?participationtypemask = default(int?), bool?ispartydeleted = default(bool?), string _activityidValue = default(string), string _owneridValue = default(string), bool?donotpostalmail = default(bool?), string activitypartyid = default(string), string effort = default(string), MicrosoftDynamicsCRMlead partyidLead = default(MicrosoftDynamicsCRMlead), MicrosoftDynamicsCRMbulkoperation partyidBulkoperation = default(MicrosoftDynamicsCRMbulkoperation), MicrosoftDynamicsCRMcampaign partyidCampaign = default(MicrosoftDynamicsCRMcampaign), MicrosoftDynamicsCRMcampaignactivity activityidCampaignactivity = default(MicrosoftDynamicsCRMcampaignactivity), MicrosoftDynamicsCRMcampaignactivity partyidCampaignactivity = default(MicrosoftDynamicsCRMcampaignactivity), MicrosoftDynamicsCRMcampaignresponse activityidCampaignresponse = default(MicrosoftDynamicsCRMcampaignresponse), MicrosoftDynamicsCRMcontract partyidContract = default(MicrosoftDynamicsCRMcontract), MicrosoftDynamicsCRMentitlement partyidEntitlement = default(MicrosoftDynamicsCRMentitlement), MicrosoftDynamicsCRMequipment partyidEquipment = default(MicrosoftDynamicsCRMequipment), MicrosoftDynamicsCRMincident partyidIncident = default(MicrosoftDynamicsCRMincident), MicrosoftDynamicsCRMincidentresolution activityidIncidentresolution = default(MicrosoftDynamicsCRMincidentresolution), MicrosoftDynamicsCRMserviceappointment activityidServiceappointment = default(MicrosoftDynamicsCRMserviceappointment), MicrosoftDynamicsCRMresourcespec resourcespecid = default(MicrosoftDynamicsCRMresourcespec), MicrosoftDynamicsCRMinvoice partyidInvoice = default(MicrosoftDynamicsCRMinvoice), MicrosoftDynamicsCRMopportunity partyidOpportunity = default(MicrosoftDynamicsCRMopportunity), MicrosoftDynamicsCRMopportunityclose activityidOpportunityclose = default(MicrosoftDynamicsCRMopportunityclose), MicrosoftDynamicsCRMorderclose activityidOrderclose = default(MicrosoftDynamicsCRMorderclose), MicrosoftDynamicsCRMquote partyidQuote = default(MicrosoftDynamicsCRMquote), MicrosoftDynamicsCRMquoteclose activityidQuoteclose = default(MicrosoftDynamicsCRMquoteclose), MicrosoftDynamicsCRMsalesorder partyidSalesorder = default(MicrosoftDynamicsCRMsalesorder), MicrosoftDynamicsCRMcsuComplaints partyidCsuComplaints = default(MicrosoftDynamicsCRMcsuComplaints), MicrosoftDynamicsCRMcsuSubjectofcomplaint partyidCsuSubjectofcomplaint = default(MicrosoftDynamicsCRMcsuSubjectofcomplaint), MicrosoftDynamicsCRMcsuCasetask activityidCsuCasetaskActivityparty = default(MicrosoftDynamicsCRMcsuCasetask), MicrosoftDynamicsCRMcsuVehicledetail partyidCsuVehicledetail = default(MicrosoftDynamicsCRMcsuVehicledetail), IList <MicrosoftDynamicsCRMsyncerror> activityPartySyncErrors = default(IList <MicrosoftDynamicsCRMsyncerror>), MicrosoftDynamicsCRMrecurringappointmentmaster activityidRecurringappointmentmaster = default(MicrosoftDynamicsCRMrecurringappointmentmaster), MicrosoftDynamicsCRMsocialactivity activityidSocialactivity = default(MicrosoftDynamicsCRMsocialactivity), MicrosoftDynamicsCRMappointment activityidAppointment = default(MicrosoftDynamicsCRMappointment), MicrosoftDynamicsCRMqueue partyidQueue = default(MicrosoftDynamicsCRMqueue), MicrosoftDynamicsCRMsystemuser partyidSystemuser = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMfax activityidFax = default(MicrosoftDynamicsCRMfax), MicrosoftDynamicsCRMphonecall activityidPhonecall = default(MicrosoftDynamicsCRMphonecall), MicrosoftDynamicsCRMtask activityidTask = default(MicrosoftDynamicsCRMtask), MicrosoftDynamicsCRMletter activityidLetter = default(MicrosoftDynamicsCRMletter), MicrosoftDynamicsCRMemail activityidEmail = default(MicrosoftDynamicsCRMemail), MicrosoftDynamicsCRMknowledgearticle partyidKnowledgearticle = default(MicrosoftDynamicsCRMknowledgearticle), MicrosoftDynamicsCRMaccount partyidAccount = default(MicrosoftDynamicsCRMaccount), MicrosoftDynamicsCRMactivitypointer activityidActivitypointer = default(MicrosoftDynamicsCRMactivitypointer), MicrosoftDynamicsCRMcontact partyidContact = default(MicrosoftDynamicsCRMcontact)) { Addressusedemailcolumnnumber = addressusedemailcolumnnumber; Scheduledend = scheduledend; Donotemail = donotemail; Instancetypecode = instancetypecode; Donotfax = donotfax; Addressused = addressused; Scheduledstart = scheduledstart; this._resourcespecidValue = _resourcespecidValue; this._partyidValue = _partyidValue; Exchangeentryid = exchangeentryid; Donotphone = donotphone; Versionnumber = versionnumber; Participationtypemask = participationtypemask; Ispartydeleted = ispartydeleted; this._activityidValue = _activityidValue; this._owneridValue = _owneridValue; Donotpostalmail = donotpostalmail; Activitypartyid = activitypartyid; Effort = effort; PartyidLead = partyidLead; PartyidBulkoperation = partyidBulkoperation; PartyidCampaign = partyidCampaign; ActivityidCampaignactivity = activityidCampaignactivity; PartyidCampaignactivity = partyidCampaignactivity; ActivityidCampaignresponse = activityidCampaignresponse; PartyidContract = partyidContract; PartyidEntitlement = partyidEntitlement; PartyidEquipment = partyidEquipment; PartyidIncident = partyidIncident; ActivityidIncidentresolution = activityidIncidentresolution; ActivityidServiceappointment = activityidServiceappointment; Resourcespecid = resourcespecid; PartyidInvoice = partyidInvoice; PartyidOpportunity = partyidOpportunity; ActivityidOpportunityclose = activityidOpportunityclose; ActivityidOrderclose = activityidOrderclose; PartyidQuote = partyidQuote; ActivityidQuoteclose = activityidQuoteclose; PartyidSalesorder = partyidSalesorder; PartyidCsuComplaints = partyidCsuComplaints; PartyidCsuSubjectofcomplaint = partyidCsuSubjectofcomplaint; ActivityidCsuCasetaskActivityparty = activityidCsuCasetaskActivityparty; PartyidCsuVehicledetail = partyidCsuVehicledetail; ActivityPartySyncErrors = activityPartySyncErrors; ActivityidRecurringappointmentmaster = activityidRecurringappointmentmaster; ActivityidSocialactivity = activityidSocialactivity; ActivityidAppointment = activityidAppointment; PartyidQueue = partyidQueue; PartyidSystemuser = partyidSystemuser; ActivityidFax = activityidFax; ActivityidPhonecall = activityidPhonecall; ActivityidTask = activityidTask; ActivityidLetter = activityidLetter; ActivityidEmail = activityidEmail; PartyidKnowledgearticle = partyidKnowledgearticle; PartyidAccount = partyidAccount; ActivityidActivitypointer = activityidActivitypointer; PartyidContact = partyidContact; CustomInit(); }
/// <summary> /// Initializes a new instance of the MicrosoftDynamicsCRMemail class. /// </summary> public MicrosoftDynamicsCRMemail(string reminderactioncardid = default(string), string trackingtoken = default(string), System.DateTimeOffset?overriddencreatedon = default(System.DateTimeOffset?), bool?readreceiptrequested = default(bool?), bool?compressed = default(bool?), string emailremindertext = default(string), string emailtrackingid = default(string), System.DateTimeOffset?emailreminderexpirytime = default(System.DateTimeOffset?), int?isunsafe = default(int?), string subcategory = default(string), string _parentactivityidValue = default(string), System.DateTimeOffset?postponeemailprocessinguntil = default(System.DateTimeOffset?), string category = default(string), int?replycount = default(int?), bool?directioncode = default(bool?), int?correlationmethod = default(int?), string _sendersaccountValue = default(string), int?emailreminderstatus = default(int?), int?linksclickedcount = default(int?), string submittedby = default(string), string _emailsenderValue = default(string), bool?deliveryreceiptrequested = default(bool?), int?notifications = default(int?), string conversationtrackingid = default(string), int?deliveryattempts = default(int?), int?opencount = default(int?), string torecipients = default(string), System.DateTimeOffset?delayedemailsendtime = default(System.DateTimeOffset?), bool?followemailuserpreference = default(bool?), string _templateidValue = default(string), string inreplyto = default(string), string mimetype = default(string), string messageid = default(string), int?attachmentcount = default(int?), System.DateTimeOffset?lastopenedtime = default(System.DateTimeOffset?), int?importsequencenumber = default(int?), bool?isemailreminderset = default(bool?), bool?isemailfollowed = default(bool?), string conversationindex = default(string), int?emailremindertype = default(int?), int?baseconversationindexhash = default(int?), string sender = default(string), int?attachmentopencount = default(int?), MicrosoftDynamicsCRMknowledgebaserecord regardingobjectidKnowledgebaserecordEmail = default(MicrosoftDynamicsCRMknowledgebaserecord), MicrosoftDynamicsCRMlead regardingobjectidLeadEmail = default(MicrosoftDynamicsCRMlead), MicrosoftDynamicsCRMlead emailsenderLead = default(MicrosoftDynamicsCRMlead), MicrosoftDynamicsCRMbookableresourcebooking regardingobjectidBookableresourcebookingEmail = default(MicrosoftDynamicsCRMbookableresourcebooking), MicrosoftDynamicsCRMbookableresourcebookingheader regardingobjectidBookableresourcebookingheaderEmail = default(MicrosoftDynamicsCRMbookableresourcebookingheader), MicrosoftDynamicsCRMbulkoperation regardingobjectidBulkoperationEmail = default(MicrosoftDynamicsCRMbulkoperation), MicrosoftDynamicsCRMcampaign regardingobjectidCampaignEmail = default(MicrosoftDynamicsCRMcampaign), MicrosoftDynamicsCRMcampaignactivity regardingobjectidCampaignactivityEmail = default(MicrosoftDynamicsCRMcampaignactivity), IList <MicrosoftDynamicsCRMcampaignresponse> emailCampaignresponse = default(IList <MicrosoftDynamicsCRMcampaignresponse>), MicrosoftDynamicsCRMcontract regardingobjectidContractEmail = default(MicrosoftDynamicsCRMcontract), MicrosoftDynamicsCRMentitlement regardingobjectidEntitlementEmail = default(MicrosoftDynamicsCRMentitlement), MicrosoftDynamicsCRMentitlementtemplate regardingobjectidEntitlementtemplateEmail = default(MicrosoftDynamicsCRMentitlementtemplate), MicrosoftDynamicsCRMincident regardingobjectidIncidentEmail = default(MicrosoftDynamicsCRMincident), MicrosoftDynamicsCRMsite regardingobjectidSiteEmail = default(MicrosoftDynamicsCRMsite), MicrosoftDynamicsCRMequipment emailsenderEquipment = default(MicrosoftDynamicsCRMequipment), MicrosoftDynamicsCRMservice serviceidEmail = default(MicrosoftDynamicsCRMservice), MicrosoftDynamicsCRMinvoice regardingobjectidInvoiceEmail = default(MicrosoftDynamicsCRMinvoice), MicrosoftDynamicsCRMopportunity regardingobjectidOpportunityEmail = default(MicrosoftDynamicsCRMopportunity), MicrosoftDynamicsCRMquote regardingobjectidQuoteEmail = default(MicrosoftDynamicsCRMquote), MicrosoftDynamicsCRMsalesorder regardingobjectidSalesorderEmail = default(MicrosoftDynamicsCRMsalesorder), MicrosoftDynamicsCRMmsdynPostalbum regardingobjectidMsdynPostalbumEmail = default(MicrosoftDynamicsCRMmsdynPostalbum), MicrosoftDynamicsCRMcsuComplaints regardingobjectidCsuComplaintsEmail = default(MicrosoftDynamicsCRMcsuComplaints), MicrosoftDynamicsCRMcsuSubjectofcomplaint regardingobjectidCsuSubjectofcomplaintEmail = default(MicrosoftDynamicsCRMcsuSubjectofcomplaint), MicrosoftDynamicsCRMcsuVehicledetail regardingobjectidCsuVehicledetailEmail = default(MicrosoftDynamicsCRMcsuVehicledetail), IList <MicrosoftDynamicsCRMsyncerror> emailSyncErrors = default(IList <MicrosoftDynamicsCRMsyncerror>), MicrosoftDynamicsCRMtransactioncurrency transactioncurrencyidEmail = default(MicrosoftDynamicsCRMtransactioncurrency), MicrosoftDynamicsCRMasyncoperation regardingobjectidAsyncoperation = default(MicrosoftDynamicsCRMasyncoperation), MicrosoftDynamicsCRMaccount sendersaccount = default(MicrosoftDynamicsCRMaccount), MicrosoftDynamicsCRMaccount emailsenderAccount = default(MicrosoftDynamicsCRMaccount), MicrosoftDynamicsCRMactivitypointer activityidActivitypointer = default(MicrosoftDynamicsCRMactivitypointer), MicrosoftDynamicsCRMsla slaEmailSla = default(MicrosoftDynamicsCRMsla), IList <MicrosoftDynamicsCRMasyncoperation> emailAsyncOperations = default(IList <MicrosoftDynamicsCRMasyncoperation>), IList <MicrosoftDynamicsCRMduplicaterecord> emailDuplicateBaseRecord = default(IList <MicrosoftDynamicsCRMduplicaterecord>), IList <MicrosoftDynamicsCRMconnection> emailConnections1 = default(IList <MicrosoftDynamicsCRMconnection>), MicrosoftDynamicsCRMmailbox sendermailboxidEmail = default(MicrosoftDynamicsCRMmailbox), IList <MicrosoftDynamicsCRMactivitymimeattachment> emailActivityMimeAttachment = default(IList <MicrosoftDynamicsCRMactivitymimeattachment>), IList <MicrosoftDynamicsCRMslakpiinstance> slakpiinstanceEmail = default(IList <MicrosoftDynamicsCRMslakpiinstance>), IList <MicrosoftDynamicsCRMconnection> emailConnections2 = default(IList <MicrosoftDynamicsCRMconnection>), MicrosoftDynamicsCRMbusinessunit owningbusinessunitEmail = default(MicrosoftDynamicsCRMbusinessunit), MicrosoftDynamicsCRMcontact emailsenderContact = default(MicrosoftDynamicsCRMcontact), MicrosoftDynamicsCRMsystemuser owninguserEmail = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser modifiedbyEmail = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMteam owningteamEmail = default(MicrosoftDynamicsCRMteam), MicrosoftDynamicsCRMqueue emailsenderQueue = default(MicrosoftDynamicsCRMqueue), MicrosoftDynamicsCRMsla slainvokedidEmailSla = default(MicrosoftDynamicsCRMsla), IList <MicrosoftDynamicsCRMannotation> emailAnnotation = default(IList <MicrosoftDynamicsCRMannotation>), IList <MicrosoftDynamicsCRMbulkdeletefailure> emailBulkDeleteFailures = default(IList <MicrosoftDynamicsCRMbulkdeletefailure>), IList <MicrosoftDynamicsCRMprocesssession> emailProcessSessions = default(IList <MicrosoftDynamicsCRMprocesssession>), MicrosoftDynamicsCRMsystemuser createdonbehalfbyEmail = default(MicrosoftDynamicsCRMsystemuser), IList <MicrosoftDynamicsCRMactivityparty> emailActivityParties = default(IList <MicrosoftDynamicsCRMactivityparty>), MicrosoftDynamicsCRMknowledgearticle regardingobjectidKnowledgearticleEmail = default(MicrosoftDynamicsCRMknowledgearticle), IList <MicrosoftDynamicsCRMactioncard> emailActioncard = default(IList <MicrosoftDynamicsCRMactioncard>), IList <MicrosoftDynamicsCRMduplicaterecord> emailDuplicateMatchingRecord = default(IList <MicrosoftDynamicsCRMduplicaterecord>), IList <MicrosoftDynamicsCRMprincipalobjectattributeaccess> emailPrincipalobjectattributeaccess = default(IList <MicrosoftDynamicsCRMprincipalobjectattributeaccess>), MicrosoftDynamicsCRMsystemuser modifiedonbehalfbyEmail = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMaccount regardingobjectidAccountEmail = default(MicrosoftDynamicsCRMaccount), MicrosoftDynamicsCRMsystemuser createdbyEmail = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser emailsenderSystemuser = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMtemplate templateid = default(MicrosoftDynamicsCRMtemplate), MicrosoftDynamicsCRMprocessstage stageidProcessstage = default(MicrosoftDynamicsCRMprocessstage), MicrosoftDynamicsCRMcontact regardingobjectidContactEmail = default(MicrosoftDynamicsCRMcontact), IList <MicrosoftDynamicsCRMqueueitem> emailQueueItem = default(IList <MicrosoftDynamicsCRMqueueitem>), MicrosoftDynamicsCRMemail parentactivityid = default(MicrosoftDynamicsCRMemail), IList <MicrosoftDynamicsCRMemail> emailEmailParentactivityid = default(IList <MicrosoftDynamicsCRMemail>)) { Reminderactioncardid = reminderactioncardid; Trackingtoken = trackingtoken; Overriddencreatedon = overriddencreatedon; Readreceiptrequested = readreceiptrequested; Compressed = compressed; Emailremindertext = emailremindertext; Emailtrackingid = emailtrackingid; Emailreminderexpirytime = emailreminderexpirytime; Isunsafe = isunsafe; Subcategory = subcategory; this._parentactivityidValue = _parentactivityidValue; Postponeemailprocessinguntil = postponeemailprocessinguntil; Category = category; Replycount = replycount; Directioncode = directioncode; Correlationmethod = correlationmethod; this._sendersaccountValue = _sendersaccountValue; Emailreminderstatus = emailreminderstatus; Linksclickedcount = linksclickedcount; Submittedby = submittedby; this._emailsenderValue = _emailsenderValue; Deliveryreceiptrequested = deliveryreceiptrequested; Notifications = notifications; Conversationtrackingid = conversationtrackingid; Deliveryattempts = deliveryattempts; Opencount = opencount; Torecipients = torecipients; Delayedemailsendtime = delayedemailsendtime; Followemailuserpreference = followemailuserpreference; this._templateidValue = _templateidValue; Inreplyto = inreplyto; Mimetype = mimetype; Messageid = messageid; Attachmentcount = attachmentcount; Lastopenedtime = lastopenedtime; Importsequencenumber = importsequencenumber; Isemailreminderset = isemailreminderset; Isemailfollowed = isemailfollowed; Conversationindex = conversationindex; Emailremindertype = emailremindertype; Baseconversationindexhash = baseconversationindexhash; Sender = sender; Attachmentopencount = attachmentopencount; RegardingobjectidKnowledgebaserecordEmail = regardingobjectidKnowledgebaserecordEmail; RegardingobjectidLeadEmail = regardingobjectidLeadEmail; EmailsenderLead = emailsenderLead; RegardingobjectidBookableresourcebookingEmail = regardingobjectidBookableresourcebookingEmail; RegardingobjectidBookableresourcebookingheaderEmail = regardingobjectidBookableresourcebookingheaderEmail; RegardingobjectidBulkoperationEmail = regardingobjectidBulkoperationEmail; RegardingobjectidCampaignEmail = regardingobjectidCampaignEmail; RegardingobjectidCampaignactivityEmail = regardingobjectidCampaignactivityEmail; EmailCampaignresponse = emailCampaignresponse; RegardingobjectidContractEmail = regardingobjectidContractEmail; RegardingobjectidEntitlementEmail = regardingobjectidEntitlementEmail; RegardingobjectidEntitlementtemplateEmail = regardingobjectidEntitlementtemplateEmail; RegardingobjectidIncidentEmail = regardingobjectidIncidentEmail; RegardingobjectidSiteEmail = regardingobjectidSiteEmail; EmailsenderEquipment = emailsenderEquipment; ServiceidEmail = serviceidEmail; RegardingobjectidInvoiceEmail = regardingobjectidInvoiceEmail; RegardingobjectidOpportunityEmail = regardingobjectidOpportunityEmail; RegardingobjectidQuoteEmail = regardingobjectidQuoteEmail; RegardingobjectidSalesorderEmail = regardingobjectidSalesorderEmail; RegardingobjectidMsdynPostalbumEmail = regardingobjectidMsdynPostalbumEmail; RegardingobjectidCsuComplaintsEmail = regardingobjectidCsuComplaintsEmail; RegardingobjectidCsuSubjectofcomplaintEmail = regardingobjectidCsuSubjectofcomplaintEmail; RegardingobjectidCsuVehicledetailEmail = regardingobjectidCsuVehicledetailEmail; EmailSyncErrors = emailSyncErrors; TransactioncurrencyidEmail = transactioncurrencyidEmail; RegardingobjectidAsyncoperation = regardingobjectidAsyncoperation; Sendersaccount = sendersaccount; EmailsenderAccount = emailsenderAccount; ActivityidActivitypointer = activityidActivitypointer; SlaEmailSla = slaEmailSla; EmailAsyncOperations = emailAsyncOperations; EmailDuplicateBaseRecord = emailDuplicateBaseRecord; EmailConnections1 = emailConnections1; SendermailboxidEmail = sendermailboxidEmail; EmailActivityMimeAttachment = emailActivityMimeAttachment; SlakpiinstanceEmail = slakpiinstanceEmail; EmailConnections2 = emailConnections2; OwningbusinessunitEmail = owningbusinessunitEmail; EmailsenderContact = emailsenderContact; OwninguserEmail = owninguserEmail; ModifiedbyEmail = modifiedbyEmail; OwningteamEmail = owningteamEmail; EmailsenderQueue = emailsenderQueue; SlainvokedidEmailSla = slainvokedidEmailSla; EmailAnnotation = emailAnnotation; EmailBulkDeleteFailures = emailBulkDeleteFailures; EmailProcessSessions = emailProcessSessions; CreatedonbehalfbyEmail = createdonbehalfbyEmail; EmailActivityParties = emailActivityParties; RegardingobjectidKnowledgearticleEmail = regardingobjectidKnowledgearticleEmail; EmailActioncard = emailActioncard; EmailDuplicateMatchingRecord = emailDuplicateMatchingRecord; EmailPrincipalobjectattributeaccess = emailPrincipalobjectattributeaccess; ModifiedonbehalfbyEmail = modifiedonbehalfbyEmail; RegardingobjectidAccountEmail = regardingobjectidAccountEmail; CreatedbyEmail = createdbyEmail; EmailsenderSystemuser = emailsenderSystemuser; Templateid = templateid; StageidProcessstage = stageidProcessstage; RegardingobjectidContactEmail = regardingobjectidContactEmail; EmailQueueItem = emailQueueItem; Parentactivityid = parentactivityid; EmailEmailParentactivityid = emailEmailParentactivityid; CustomInit(); }
private async Task CreateSharePointAccountDocumentLocation(FileManagerClient _fileManagerClient, MicrosoftDynamicsCRMaccount account) { string folderName; string logFolderName = ""; try { folderName = account.GetDocumentFolderName(); logFolderName = WordSanitizer.Sanitize(folderName); var createFolderRequest = new CreateFolderRequest { EntityName = "account", FolderName = folderName }; var createFolderResult = _fileManagerClient.CreateFolder(createFolderRequest); if (createFolderResult.ResultStatus == ResultStatus.Fail) { _logger.Error($"Error creating folder for account {logFolderName}. Error is {createFolderResult.ErrorDetail}"); } } catch (Exception e) { _logger.Error(e, $"Error creating folder for account {logFolderName}"); } }
/// <summary> /// Initializes a new instance of the /// MicrosoftDynamicsCRMincidentresolution class. /// </summary> public MicrosoftDynamicsCRMincidentresolution(string category = default(string), System.DateTimeOffset?overriddencreatedon = default(System.DateTimeOffset?), string subcategory = default(string), string _incidentidValue = default(string), string _createdbyexternalpartyValue = default(string), string _modifiedbyexternalpartyValue = default(string), int?timespent = default(int?), int?importsequencenumber = default(int?), MicrosoftDynamicsCRMinteractionforemail regardingobjectidNewInteractionforemailIncidentresolution = default(MicrosoftDynamicsCRMinteractionforemail), MicrosoftDynamicsCRMknowledgebaserecord regardingobjectidKnowledgebaserecordIncidentresolution = default(MicrosoftDynamicsCRMknowledgebaserecord), MicrosoftDynamicsCRMlead regardingobjectidLeadIncidentresolution = default(MicrosoftDynamicsCRMlead), MicrosoftDynamicsCRMbookableresourcebooking regardingobjectidBookableresourcebookingIncidentresolution = default(MicrosoftDynamicsCRMbookableresourcebooking), MicrosoftDynamicsCRMbookableresourcebookingheader regardingobjectidBookableresourcebookingheaderIncidentresolution = default(MicrosoftDynamicsCRMbookableresourcebookingheader), MicrosoftDynamicsCRMbulkoperation regardingobjectidBulkoperationIncidentresolution = default(MicrosoftDynamicsCRMbulkoperation), MicrosoftDynamicsCRMcampaign regardingobjectidCampaignIncidentresolution = default(MicrosoftDynamicsCRMcampaign), MicrosoftDynamicsCRMcampaignactivity regardingobjectidCampaignactivityIncidentresolution = default(MicrosoftDynamicsCRMcampaignactivity), MicrosoftDynamicsCRMentitlement regardingobjectidEntitlementIncidentresolution = default(MicrosoftDynamicsCRMentitlement), MicrosoftDynamicsCRMentitlementtemplate regardingobjectidEntitlementtemplateIncidentresolution = default(MicrosoftDynamicsCRMentitlementtemplate), MicrosoftDynamicsCRMaccount regardingobjectidAccountIncidentresolution = default(MicrosoftDynamicsCRMaccount), MicrosoftDynamicsCRMsystemuser createdbyIncidentresolution = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMmailbox sendermailboxidIncidentresolution = default(MicrosoftDynamicsCRMmailbox), MicrosoftDynamicsCRMtransactioncurrency transactioncurrencyidIncidentresolution = default(MicrosoftDynamicsCRMtransactioncurrency), MicrosoftDynamicsCRMprincipal owneridIncidentresolution = default(MicrosoftDynamicsCRMprincipal), MicrosoftDynamicsCRMsystemuser owninguserIncidentresolution = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsla slaActivitypointerSlaIncidentresolution = default(MicrosoftDynamicsCRMsla), MicrosoftDynamicsCRMbusinessunit owningbusinessunitIncidentresolution = default(MicrosoftDynamicsCRMbusinessunit), MicrosoftDynamicsCRMknowledgearticle regardingobjectidKnowledgearticleIncidentresolution = default(MicrosoftDynamicsCRMknowledgearticle), MicrosoftDynamicsCRMsystemuser modifiedonbehalfbyIncidentresolution = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser createdonbehalfbyIncidentresolution = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser modifiedbyIncidentresolution = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMteam owningteamIncidentresolution = default(MicrosoftDynamicsCRMteam), MicrosoftDynamicsCRMsla slainvokedidActivitypointerSlaIncidentresolution = default(MicrosoftDynamicsCRMsla), MicrosoftDynamicsCRMactivitypointer activityidActivitypointer = default(MicrosoftDynamicsCRMactivitypointer), IList <MicrosoftDynamicsCRMactivityparty> incidentresolutionActivityParties = default(IList <MicrosoftDynamicsCRMactivityparty>), IList <MicrosoftDynamicsCRMcampaignresponse> campaignResponseIncidentResolutions = default(IList <MicrosoftDynamicsCRMcampaignresponse>), IList <MicrosoftDynamicsCRMsyncerror> incidentResolutionSyncErrors = default(IList <MicrosoftDynamicsCRMsyncerror>), IList <MicrosoftDynamicsCRMasyncoperation> incidentResolutionAsyncOperations = default(IList <MicrosoftDynamicsCRMasyncoperation>), IList <MicrosoftDynamicsCRMmailboxtrackingfolder> incidentresolutionMailboxTrackingFolders = default(IList <MicrosoftDynamicsCRMmailboxtrackingfolder>), IList <MicrosoftDynamicsCRMbulkdeletefailure> incidentResolutionBulkDeleteFailures = default(IList <MicrosoftDynamicsCRMbulkdeletefailure>), IList <MicrosoftDynamicsCRMprincipalobjectattributeaccess> incidentresolutionPrincipalObjectAttributeAccesses = default(IList <MicrosoftDynamicsCRMprincipalobjectattributeaccess>), IList <MicrosoftDynamicsCRMannotation> incidentResolutionAnnotation = default(IList <MicrosoftDynamicsCRMannotation>), MicrosoftDynamicsCRMincident incidentid = default(MicrosoftDynamicsCRMincident), MicrosoftDynamicsCRMservice serviceidIncidentresolution = default(MicrosoftDynamicsCRMservice)) { Category = category; Overriddencreatedon = overriddencreatedon; Subcategory = subcategory; this._incidentidValue = _incidentidValue; this._createdbyexternalpartyValue = _createdbyexternalpartyValue; this._modifiedbyexternalpartyValue = _modifiedbyexternalpartyValue; Timespent = timespent; Importsequencenumber = importsequencenumber; RegardingobjectidNewInteractionforemailIncidentresolution = regardingobjectidNewInteractionforemailIncidentresolution; RegardingobjectidKnowledgebaserecordIncidentresolution = regardingobjectidKnowledgebaserecordIncidentresolution; RegardingobjectidLeadIncidentresolution = regardingobjectidLeadIncidentresolution; RegardingobjectidBookableresourcebookingIncidentresolution = regardingobjectidBookableresourcebookingIncidentresolution; RegardingobjectidBookableresourcebookingheaderIncidentresolution = regardingobjectidBookableresourcebookingheaderIncidentresolution; RegardingobjectidBulkoperationIncidentresolution = regardingobjectidBulkoperationIncidentresolution; RegardingobjectidCampaignIncidentresolution = regardingobjectidCampaignIncidentresolution; RegardingobjectidCampaignactivityIncidentresolution = regardingobjectidCampaignactivityIncidentresolution; RegardingobjectidEntitlementIncidentresolution = regardingobjectidEntitlementIncidentresolution; RegardingobjectidEntitlementtemplateIncidentresolution = regardingobjectidEntitlementtemplateIncidentresolution; RegardingobjectidAccountIncidentresolution = regardingobjectidAccountIncidentresolution; CreatedbyIncidentresolution = createdbyIncidentresolution; SendermailboxidIncidentresolution = sendermailboxidIncidentresolution; TransactioncurrencyidIncidentresolution = transactioncurrencyidIncidentresolution; OwneridIncidentresolution = owneridIncidentresolution; OwninguserIncidentresolution = owninguserIncidentresolution; SlaActivitypointerSlaIncidentresolution = slaActivitypointerSlaIncidentresolution; OwningbusinessunitIncidentresolution = owningbusinessunitIncidentresolution; RegardingobjectidKnowledgearticleIncidentresolution = regardingobjectidKnowledgearticleIncidentresolution; ModifiedonbehalfbyIncidentresolution = modifiedonbehalfbyIncidentresolution; CreatedonbehalfbyIncidentresolution = createdonbehalfbyIncidentresolution; ModifiedbyIncidentresolution = modifiedbyIncidentresolution; OwningteamIncidentresolution = owningteamIncidentresolution; SlainvokedidActivitypointerSlaIncidentresolution = slainvokedidActivitypointerSlaIncidentresolution; ActivityidActivitypointer = activityidActivitypointer; IncidentresolutionActivityParties = incidentresolutionActivityParties; CampaignResponseIncidentResolutions = campaignResponseIncidentResolutions; IncidentResolutionSyncErrors = incidentResolutionSyncErrors; IncidentResolutionAsyncOperations = incidentResolutionAsyncOperations; IncidentresolutionMailboxTrackingFolders = incidentresolutionMailboxTrackingFolders; IncidentResolutionBulkDeleteFailures = incidentResolutionBulkDeleteFailures; IncidentresolutionPrincipalObjectAttributeAccesses = incidentresolutionPrincipalObjectAttributeAccesses; IncidentResolutionAnnotation = incidentResolutionAnnotation; Incidentid = incidentid; ServiceidIncidentresolution = serviceidIncidentresolution; CustomInit(); }
/// <summary> /// Add new entity to accounts /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// New entity /// </param> /// <param name='prefer'> /// Required in order for the service to return a JSON representation of the /// object. /// </param> public static MicrosoftDynamicsCRMaccount Create(this IAccounts operations, MicrosoftDynamicsCRMaccount body, string prefer = "return=representation") { return(operations.CreateAsync(body, prefer).GetAwaiter().GetResult()); }
/// <summary> /// Initializes a new instance of the /// MicrosoftDynamicsCRMcsuCasebusinessandlocationdetails class. /// </summary> public MicrosoftDynamicsCRMcsuCasebusinessandlocationdetails(string csuCity = default(string), int?statuscode = default(int?), string versionnumber = default(string), string _modifiedonbehalfbyValue = default(string), string _csuBusinessandlocationdetailsValue = default(string), string csuAptsuiteunit = default(string), string _owninguserValue = default(string), int?csuIssec105applicant = default(int?), string csuCountry = default(string), string csuPostalcode = default(string), System.DateTimeOffset?createdon = default(System.DateTimeOffset?), string csuCasebusinessandlocationdetailsid = default(string), int?statecode = default(int?), int?utcconversiontimezonecode = default(int?), string _createdbyValue = default(string), string csuOtherinvolvementtype = default(string), string _modifiedbyValue = default(string), string _createdonbehalfbyValue = default(string), string csuStateprovince = default(string), string _csuCasebusinesslocationdetailsidValue = default(string), string csuRecordid = default(string), string csuAddressdescription = default(string), string _owneridValue = default(string), string _owningbusinessunitValue = default(string), int?csuInvolvementtype = default(int?), string csuRelationshiptocase = default(string), System.DateTimeOffset?modifiedon = default(System.DateTimeOffset?), int?importsequencenumber = default(int?), string csuStreetaddress = default(string), System.DateTimeOffset?overriddencreatedon = default(System.DateTimeOffset?), string _owningteamValue = default(string), int?timezoneruleversionnumber = default(int?), string csuName = default(string), MicrosoftDynamicsCRMsystemuser createdby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser createdonbehalfby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser modifiedby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser modifiedonbehalfby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser owninguser = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMteam owningteam = default(MicrosoftDynamicsCRMteam), MicrosoftDynamicsCRMprincipal ownerid = default(MicrosoftDynamicsCRMprincipal), MicrosoftDynamicsCRMbusinessunit owningbusinessunit = default(MicrosoftDynamicsCRMbusinessunit), IList <MicrosoftDynamicsCRMsyncerror> csuCasebusinessandlocationdetailsSyncErrors = default(IList <MicrosoftDynamicsCRMsyncerror>), IList <MicrosoftDynamicsCRMduplicaterecord> csuCasebusinessandlocationdetailsDuplicateMatchingRecord = default(IList <MicrosoftDynamicsCRMduplicaterecord>), IList <MicrosoftDynamicsCRMduplicaterecord> csuCasebusinessandlocationdetailsDuplicateBaseRecord = default(IList <MicrosoftDynamicsCRMduplicaterecord>), IList <MicrosoftDynamicsCRMasyncoperation> csuCasebusinessandlocationdetailsAsyncOperations = default(IList <MicrosoftDynamicsCRMasyncoperation>), IList <MicrosoftDynamicsCRMmailboxtrackingfolder> csuCasebusinessandlocationdetailsMailboxTrackingFolders = default(IList <MicrosoftDynamicsCRMmailboxtrackingfolder>), IList <MicrosoftDynamicsCRMprocesssession> csuCasebusinessandlocationdetailsProcessSession = default(IList <MicrosoftDynamicsCRMprocesssession>), IList <MicrosoftDynamicsCRMbulkdeletefailure> csuCasebusinessandlocationdetailsBulkDeleteFailures = default(IList <MicrosoftDynamicsCRMbulkdeletefailure>), IList <MicrosoftDynamicsCRMprincipalobjectattributeaccess> csuCasebusinessandlocationdetailsPrincipalObjectAttributeAccesses = default(IList <MicrosoftDynamicsCRMprincipalobjectattributeaccess>), MicrosoftDynamicsCRMincident csuCaseBusinessLocationDetailsId = default(MicrosoftDynamicsCRMincident), MicrosoftDynamicsCRMaccount csuBusinessandLocationDetails = default(MicrosoftDynamicsCRMaccount), IList <MicrosoftDynamicsCRMcsuInspectionsearch> csuCsuCasebusinessandlocationdetailsCsuInspectionsearchInspectedLocation = default(IList <MicrosoftDynamicsCRMcsuInspectionsearch>), IList <MicrosoftDynamicsCRMcsuViolation> csuCsuCasebusinessandlocationdetailsCsuViolationCorporate = default(IList <MicrosoftDynamicsCRMcsuViolation>), IList <MicrosoftDynamicsCRMcsuViolation> csuCsuCasebusinessandlocationdetailsCsuViolationOffenceLocation = default(IList <MicrosoftDynamicsCRMcsuViolation>), IList <MicrosoftDynamicsCRMcsuDemandandorder> csuCsuCasebusinessandlocationdetailsCsuDemandandorderIssuedForBusinessLocation = default(IList <MicrosoftDynamicsCRMcsuDemandandorder>), IList <MicrosoftDynamicsCRMcsuAmp> csuCsuCasebusinessandlocationdetailsCsuAmpAMPNoticeIssuedtoBusinessId = default(IList <MicrosoftDynamicsCRMcsuAmp>), IList <MicrosoftDynamicsCRMcsuInjuctiondetail> csuCsuCasebusinessandlocationdetailsCsuInjuctiondetailBusinessorLocation = default(IList <MicrosoftDynamicsCRMcsuInjuctiondetail>), IList <MicrosoftDynamicsCRMcsuInjuctiondetail> csuCsuCasebusinessandlocationdetailsCsuInjuctiondetailServedToBusinessorLocation = default(IList <MicrosoftDynamicsCRMcsuInjuctiondetail>), IList <MicrosoftDynamicsCRMcsuApplicationforreturnofseizedcannabis> csuCsuCasebusinessandlocationdetailsCsuApplicationforreturnofseizedcannabisAppNameBusiness = default(IList <MicrosoftDynamicsCRMcsuApplicationforreturnofseizedcannabis>), IList <MicrosoftDynamicsCRMcsuJudicialreview> csuCsuCasebusinessandlocationdetailsCsuJudicialreviewApplicantNameBusiness = default(IList <MicrosoftDynamicsCRMcsuJudicialreview>)) { CsuCity = csuCity; Statuscode = statuscode; Versionnumber = versionnumber; this._modifiedonbehalfbyValue = _modifiedonbehalfbyValue; this._csuBusinessandlocationdetailsValue = _csuBusinessandlocationdetailsValue; CsuAptsuiteunit = csuAptsuiteunit; this._owninguserValue = _owninguserValue; CsuIssec105applicant = csuIssec105applicant; CsuCountry = csuCountry; CsuPostalcode = csuPostalcode; Createdon = createdon; CsuCasebusinessandlocationdetailsid = csuCasebusinessandlocationdetailsid; Statecode = statecode; Utcconversiontimezonecode = utcconversiontimezonecode; this._createdbyValue = _createdbyValue; CsuOtherinvolvementtype = csuOtherinvolvementtype; this._modifiedbyValue = _modifiedbyValue; this._createdonbehalfbyValue = _createdonbehalfbyValue; CsuStateprovince = csuStateprovince; this._csuCasebusinesslocationdetailsidValue = _csuCasebusinesslocationdetailsidValue; CsuRecordid = csuRecordid; CsuAddressdescription = csuAddressdescription; this._owneridValue = _owneridValue; this._owningbusinessunitValue = _owningbusinessunitValue; CsuInvolvementtype = csuInvolvementtype; CsuRelationshiptocase = csuRelationshiptocase; Modifiedon = modifiedon; Importsequencenumber = importsequencenumber; CsuStreetaddress = csuStreetaddress; Overriddencreatedon = overriddencreatedon; this._owningteamValue = _owningteamValue; Timezoneruleversionnumber = timezoneruleversionnumber; CsuName = csuName; Createdby = createdby; Createdonbehalfby = createdonbehalfby; Modifiedby = modifiedby; Modifiedonbehalfby = modifiedonbehalfby; Owninguser = owninguser; Owningteam = owningteam; Ownerid = ownerid; Owningbusinessunit = owningbusinessunit; CsuCasebusinessandlocationdetailsSyncErrors = csuCasebusinessandlocationdetailsSyncErrors; CsuCasebusinessandlocationdetailsDuplicateMatchingRecord = csuCasebusinessandlocationdetailsDuplicateMatchingRecord; CsuCasebusinessandlocationdetailsDuplicateBaseRecord = csuCasebusinessandlocationdetailsDuplicateBaseRecord; CsuCasebusinessandlocationdetailsAsyncOperations = csuCasebusinessandlocationdetailsAsyncOperations; CsuCasebusinessandlocationdetailsMailboxTrackingFolders = csuCasebusinessandlocationdetailsMailboxTrackingFolders; CsuCasebusinessandlocationdetailsProcessSession = csuCasebusinessandlocationdetailsProcessSession; CsuCasebusinessandlocationdetailsBulkDeleteFailures = csuCasebusinessandlocationdetailsBulkDeleteFailures; CsuCasebusinessandlocationdetailsPrincipalObjectAttributeAccesses = csuCasebusinessandlocationdetailsPrincipalObjectAttributeAccesses; CsuCaseBusinessLocationDetailsId = csuCaseBusinessLocationDetailsId; CsuBusinessandLocationDetails = csuBusinessandLocationDetails; CsuCsuCasebusinessandlocationdetailsCsuInspectionsearchInspectedLocation = csuCsuCasebusinessandlocationdetailsCsuInspectionsearchInspectedLocation; CsuCsuCasebusinessandlocationdetailsCsuViolationCorporate = csuCsuCasebusinessandlocationdetailsCsuViolationCorporate; CsuCsuCasebusinessandlocationdetailsCsuViolationOffenceLocation = csuCsuCasebusinessandlocationdetailsCsuViolationOffenceLocation; CsuCsuCasebusinessandlocationdetailsCsuDemandandorderIssuedForBusinessLocation = csuCsuCasebusinessandlocationdetailsCsuDemandandorderIssuedForBusinessLocation; CsuCsuCasebusinessandlocationdetailsCsuAmpAMPNoticeIssuedtoBusinessId = csuCsuCasebusinessandlocationdetailsCsuAmpAMPNoticeIssuedtoBusinessId; CsuCsuCasebusinessandlocationdetailsCsuInjuctiondetailBusinessorLocation = csuCsuCasebusinessandlocationdetailsCsuInjuctiondetailBusinessorLocation; CsuCsuCasebusinessandlocationdetailsCsuInjuctiondetailServedToBusinessorLocation = csuCsuCasebusinessandlocationdetailsCsuInjuctiondetailServedToBusinessorLocation; CsuCsuCasebusinessandlocationdetailsCsuApplicationforreturnofseizedcannabisAppNameBusiness = csuCsuCasebusinessandlocationdetailsCsuApplicationforreturnofseizedcannabisAppNameBusiness; CsuCsuCasebusinessandlocationdetailsCsuJudicialreviewApplicantNameBusiness = csuCsuCasebusinessandlocationdetailsCsuJudicialreviewApplicantNameBusiness; CustomInit(); }
/// <summary> /// Add new entity to accounts /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// New entity /// </param> /// <param name='prefer'> /// Required in order for the service to return a JSON representation of the /// object. /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> public static HttpOperationResponse <MicrosoftDynamicsCRMaccount> CreateWithHttpMessages(this IAccounts operations, MicrosoftDynamicsCRMaccount body, string prefer = "return=representation", Dictionary <string, List <string> > customHeaders = null) { return(operations.CreateWithHttpMessagesAsync(body, prefer, customHeaders, CancellationToken.None).ConfigureAwait(false).GetAwaiter().GetResult()); }
/// <summary> /// Initializes a new instance of the MicrosoftDynamicsCRMcsuCasetask /// class. /// </summary> public MicrosoftDynamicsCRMcsuCasetask(string _csuAmpidValue = default(string), string csuTasknumbershortformat = default(string), int?csuRelatedto = default(int?), string csuOthercategory = default(string), string csuTasknumber = default(string), string csuResult = default(string), int?csuTaskcreatedbysystem = default(int?), string _csuAmporderidValue = default(string), int?importsequencenumber = default(int?), string _csuHearingidValue = default(string), string _csuViolationidValue = default(string), int?csuCasecategory = default(int?), string _csuTaskownerValue = default(string), string _csuSeizuresidValue = default(string), int?csuPriorityweight = default(int?), string _csuInjunctiondetailValue = default(string), int?csuSubcategory = default(int?), string csuOthercancellationreason = default(string), int?csuReasonforcancellation = default(int?), System.DateTimeOffset?overriddencreatedon = default(System.DateTimeOffset?), string _csuDemandandorderidValue = default(string), string _csuInspectionsearchidValue = default(string), string _csuApplicationforreturnValue = default(string), MicrosoftDynamicsCRMinteractionforemail regardingobjectidNewInteractionforemailCsuCasetask = default(MicrosoftDynamicsCRMinteractionforemail), MicrosoftDynamicsCRMknowledgebaserecord regardingobjectidKnowledgebaserecordCsuCasetask = default(MicrosoftDynamicsCRMknowledgebaserecord), MicrosoftDynamicsCRMlead regardingobjectidLeadCsuCasetask = default(MicrosoftDynamicsCRMlead), MicrosoftDynamicsCRMbookableresourcebooking regardingobjectidBookableresourcebookingCsuCasetask = default(MicrosoftDynamicsCRMbookableresourcebooking), MicrosoftDynamicsCRMbookableresourcebookingheader regardingobjectidBookableresourcebookingheaderCsuCasetask = default(MicrosoftDynamicsCRMbookableresourcebookingheader), MicrosoftDynamicsCRMbulkoperation regardingobjectidBulkoperationCsuCasetask = default(MicrosoftDynamicsCRMbulkoperation), MicrosoftDynamicsCRMcampaign regardingobjectidCampaignCsuCasetask = default(MicrosoftDynamicsCRMcampaign), MicrosoftDynamicsCRMcampaignactivity regardingobjectidCampaignactivityCsuCasetask = default(MicrosoftDynamicsCRMcampaignactivity), MicrosoftDynamicsCRMcontract regardingobjectidContractCsuCasetask = default(MicrosoftDynamicsCRMcontract), MicrosoftDynamicsCRMentitlement regardingobjectidEntitlementCsuCasetask = default(MicrosoftDynamicsCRMentitlement), MicrosoftDynamicsCRMentitlementtemplate regardingobjectidEntitlementtemplateCsuCasetask = default(MicrosoftDynamicsCRMentitlementtemplate), MicrosoftDynamicsCRMincident regardingobjectidIncidentCsuCasetask = default(MicrosoftDynamicsCRMincident), MicrosoftDynamicsCRMsite regardingobjectidSiteCsuCasetask = default(MicrosoftDynamicsCRMsite), MicrosoftDynamicsCRMservice serviceidCsuCasetask = default(MicrosoftDynamicsCRMservice), MicrosoftDynamicsCRMinvoice regardingobjectidInvoiceCsuCasetask = default(MicrosoftDynamicsCRMinvoice), MicrosoftDynamicsCRMopportunity regardingobjectidOpportunityCsuCasetask = default(MicrosoftDynamicsCRMopportunity), MicrosoftDynamicsCRMquote regardingobjectidQuoteCsuCasetask = default(MicrosoftDynamicsCRMquote), MicrosoftDynamicsCRMsalesorder regardingobjectidSalesorderCsuCasetask = default(MicrosoftDynamicsCRMsalesorder), MicrosoftDynamicsCRMmsdynPostalbum regardingobjectidMsdynPostalbumCsuCasetask = default(MicrosoftDynamicsCRMmsdynPostalbum), MicrosoftDynamicsCRMcsuComplaints regardingobjectidCsuComplaintsCsuCasetask = default(MicrosoftDynamicsCRMcsuComplaints), MicrosoftDynamicsCRMcsuSubjectofcomplaint regardingobjectidCsuSubjectofcomplaintCsuCasetask = default(MicrosoftDynamicsCRMcsuSubjectofcomplaint), MicrosoftDynamicsCRMaccount regardingobjectidAccountCsuCasetask = default(MicrosoftDynamicsCRMaccount), MicrosoftDynamicsCRMsystemuser createdbyCsuCasetask = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMcontact regardingobjectidContactCsuCasetask = default(MicrosoftDynamicsCRMcontact), MicrosoftDynamicsCRMmailbox sendermailboxidCsuCasetask = default(MicrosoftDynamicsCRMmailbox), MicrosoftDynamicsCRMtransactioncurrency transactioncurrencyidCsuCasetask = default(MicrosoftDynamicsCRMtransactioncurrency), MicrosoftDynamicsCRMprincipal owneridCsuCasetask = default(MicrosoftDynamicsCRMprincipal), MicrosoftDynamicsCRMsystemuser owninguserCsuCasetask = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsla slaActivitypointerSlaCsuCasetask = default(MicrosoftDynamicsCRMsla), MicrosoftDynamicsCRMbusinessunit owningbusinessunitCsuCasetask = default(MicrosoftDynamicsCRMbusinessunit), MicrosoftDynamicsCRMknowledgearticle regardingobjectidKnowledgearticleCsuCasetask = default(MicrosoftDynamicsCRMknowledgearticle), MicrosoftDynamicsCRMsystemuser modifiedonbehalfbyCsuCasetask = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser createdonbehalfbyCsuCasetask = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser modifiedbyCsuCasetask = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMteam owningteamCsuCasetask = default(MicrosoftDynamicsCRMteam), MicrosoftDynamicsCRMsla slainvokedidActivitypointerSlaCsuCasetask = default(MicrosoftDynamicsCRMsla), MicrosoftDynamicsCRMactivitypointer activityidCsuCasetask = default(MicrosoftDynamicsCRMactivitypointer), IList <MicrosoftDynamicsCRMactivityparty> csuCasetaskActivityParties = default(IList <MicrosoftDynamicsCRMactivityparty>), IList <MicrosoftDynamicsCRMcampaignresponse> campaignResponseCsuCasetasks = default(IList <MicrosoftDynamicsCRMcampaignresponse>), IList <MicrosoftDynamicsCRMactioncard> csuCasetaskActionCards = default(IList <MicrosoftDynamicsCRMactioncard>), IList <MicrosoftDynamicsCRMsyncerror> csuCasetaskSyncErrors = default(IList <MicrosoftDynamicsCRMsyncerror>), IList <MicrosoftDynamicsCRMduplicaterecord> csuCasetaskDuplicateMatchingRecord = default(IList <MicrosoftDynamicsCRMduplicaterecord>), IList <MicrosoftDynamicsCRMduplicaterecord> csuCasetaskDuplicateBaseRecord = default(IList <MicrosoftDynamicsCRMduplicaterecord>), IList <MicrosoftDynamicsCRMasyncoperation> csuCasetaskAsyncOperations = default(IList <MicrosoftDynamicsCRMasyncoperation>), IList <MicrosoftDynamicsCRMmailboxtrackingfolder> csuCasetaskMailboxTrackingFolders = default(IList <MicrosoftDynamicsCRMmailboxtrackingfolder>), IList <MicrosoftDynamicsCRMprocesssession> csuCasetaskProcessSession = default(IList <MicrosoftDynamicsCRMprocesssession>), IList <MicrosoftDynamicsCRMbulkdeletefailure> csuCasetaskBulkDeleteFailures = default(IList <MicrosoftDynamicsCRMbulkdeletefailure>), IList <MicrosoftDynamicsCRMprincipalobjectattributeaccess> csuCasetaskPrincipalObjectAttributeAccesses = default(IList <MicrosoftDynamicsCRMprincipalobjectattributeaccess>), IList <MicrosoftDynamicsCRMconnection> csuCasetaskConnections1 = default(IList <MicrosoftDynamicsCRMconnection>), IList <MicrosoftDynamicsCRMconnection> csuCasetaskConnections2 = default(IList <MicrosoftDynamicsCRMconnection>), IList <MicrosoftDynamicsCRMqueueitem> csuCasetaskQueueItems = default(IList <MicrosoftDynamicsCRMqueueitem>), IList <MicrosoftDynamicsCRMannotation> csuCasetaskAnnotations = default(IList <MicrosoftDynamicsCRMannotation>), IList <MicrosoftDynamicsCRMfeedback> csuCasetaskFeedback = default(IList <MicrosoftDynamicsCRMfeedback>), MicrosoftDynamicsCRMprocessstage stageidCsuCasetask = default(MicrosoftDynamicsCRMprocessstage), MicrosoftDynamicsCRMsystemuser csuTaskOwnerCsuCasetask = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMcsuDemandandorder csuDemandandOrderIdCsuCasetask = default(MicrosoftDynamicsCRMcsuDemandandorder), MicrosoftDynamicsCRMcsuInspectionsearch csuInspectionSearchidCsuCasetask = default(MicrosoftDynamicsCRMcsuInspectionsearch), MicrosoftDynamicsCRMcsuInjuctiondetail csuInjunctionDetailCsuCasetask = default(MicrosoftDynamicsCRMcsuInjuctiondetail), IList <MicrosoftDynamicsCRMcsuSeizuredetails> csuCsuCasetaskCsuSeizuredetailsItemDestructionTask = default(IList <MicrosoftDynamicsCRMcsuSeizuredetails>), IList <MicrosoftDynamicsCRMcsuSeizuredetails> csuCsuCasetaskCsuSeizuredetails52DODate = default(IList <MicrosoftDynamicsCRMcsuSeizuredetails>), IList <MicrosoftDynamicsCRMcsuViolation> csuCsuCasetaskCsuViolationHearingDate = default(IList <MicrosoftDynamicsCRMcsuViolation>), IList <MicrosoftDynamicsCRMcsuInjuctiondetail> csuCsuCasetaskCsuInjuctiondetailHearingD = default(IList <MicrosoftDynamicsCRMcsuInjuctiondetail>), IList <MicrosoftDynamicsCRMcsuSeizuredetails> csuCsuCasetaskCsuSeizure52FilingDate = default(IList <MicrosoftDynamicsCRMcsuSeizuredetails>), IList <MicrosoftDynamicsCRMcsuDemandandorder> csuCsuCasetaskCsuDemandandorder52DueDate = default(IList <MicrosoftDynamicsCRMcsuDemandandorder>), IList <MicrosoftDynamicsCRMcsuDemandandorder> csuCsuCasetaskCsuDemandandorderExpiryDat = default(IList <MicrosoftDynamicsCRMcsuDemandandorder>), IList <MicrosoftDynamicsCRMcsuDemandandorder> csuCsuCasetaskCsuDemandandorderExtendDat = default(IList <MicrosoftDynamicsCRMcsuDemandandorder>), IList <MicrosoftDynamicsCRMcsuDemandandorder> csuCsuCasetaskCsuDemandandorderRenewdate = default(IList <MicrosoftDynamicsCRMcsuDemandandorder>), IList <MicrosoftDynamicsCRMcsuAmp> csuCsuCasetaskCsuAmpWaiverDeadlineDate = default(IList <MicrosoftDynamicsCRMcsuAmp>), IList <MicrosoftDynamicsCRMcsuAmp> csuCsuCasetaskCsuAmpReconDeadlineDate = default(IList <MicrosoftDynamicsCRMcsuAmp>), IList <MicrosoftDynamicsCRMcsuAmp> csuCsuCasetaskCsuAmpAdminOralHearingDate = default(IList <MicrosoftDynamicsCRMcsuAmp>), IList <MicrosoftDynamicsCRMcsuAmp> csuCsuCasetaskCsuAmpReconOralHearingDate = default(IList <MicrosoftDynamicsCRMcsuAmp>), MicrosoftDynamicsCRMcsuApplicationforreturnofseizedcannabis csuApplicationforReturnCsuCasetask = default(MicrosoftDynamicsCRMcsuApplicationforreturnofseizedcannabis), IList <MicrosoftDynamicsCRMcsuAmporder> csuCsuCasetaskCsuAmporderAMPReconHearing = default(IList <MicrosoftDynamicsCRMcsuAmporder>), IList <MicrosoftDynamicsCRMcsuAmporder> csuCsuCasetaskCsuAmporderOrderDueDate = default(IList <MicrosoftDynamicsCRMcsuAmporder>), IList <MicrosoftDynamicsCRMcsuAmporder> csuCsuCasetaskCsuAmporderNextReminderDat = default(IList <MicrosoftDynamicsCRMcsuAmporder>), MicrosoftDynamicsCRMcsuAmporder csuAMPOrderIdCsuCasetask = default(MicrosoftDynamicsCRMcsuAmporder), MicrosoftDynamicsCRMcsuAmp csuAMPIdCsuCasetask = default(MicrosoftDynamicsCRMcsuAmp), MicrosoftDynamicsCRMcsuViolation csuViolationIdCsuCasetask = default(MicrosoftDynamicsCRMcsuViolation), MicrosoftDynamicsCRMcsuSeizuredetails csuSeizuresIdCsuCasetask = default(MicrosoftDynamicsCRMcsuSeizuredetails), IList <MicrosoftDynamicsCRMcsuSeizuredetails> csuCsuCasetaskCsuSeizuredetailsAppDueDat = default(IList <MicrosoftDynamicsCRMcsuSeizuredetails>), IList <MicrosoftDynamicsCRMcsuHearing> csuCsuCasetaskCsuHearing = default(IList <MicrosoftDynamicsCRMcsuHearing>), MicrosoftDynamicsCRMcsuHearing csuHearingidCsuCasetask = default(MicrosoftDynamicsCRMcsuHearing), IList <MicrosoftDynamicsCRMcsuViolation> csuCsuCasetaskCsuViolationDisputeDeadlineDate = default(IList <MicrosoftDynamicsCRMcsuViolation>), MicrosoftDynamicsCRMcsuVehicledetail regardingobjectidCsuVehicledetailCsuCasetask = default(MicrosoftDynamicsCRMcsuVehicledetail)) { this._csuAmpidValue = _csuAmpidValue; CsuTasknumbershortformat = csuTasknumbershortformat; CsuRelatedto = csuRelatedto; CsuOthercategory = csuOthercategory; CsuTasknumber = csuTasknumber; CsuResult = csuResult; CsuTaskcreatedbysystem = csuTaskcreatedbysystem; this._csuAmporderidValue = _csuAmporderidValue; Importsequencenumber = importsequencenumber; this._csuHearingidValue = _csuHearingidValue; this._csuViolationidValue = _csuViolationidValue; CsuCasecategory = csuCasecategory; this._csuTaskownerValue = _csuTaskownerValue; this._csuSeizuresidValue = _csuSeizuresidValue; CsuPriorityweight = csuPriorityweight; this._csuInjunctiondetailValue = _csuInjunctiondetailValue; CsuSubcategory = csuSubcategory; CsuOthercancellationreason = csuOthercancellationreason; CsuReasonforcancellation = csuReasonforcancellation; Overriddencreatedon = overriddencreatedon; this._csuDemandandorderidValue = _csuDemandandorderidValue; this._csuInspectionsearchidValue = _csuInspectionsearchidValue; this._csuApplicationforreturnValue = _csuApplicationforreturnValue; RegardingobjectidNewInteractionforemailCsuCasetask = regardingobjectidNewInteractionforemailCsuCasetask; RegardingobjectidKnowledgebaserecordCsuCasetask = regardingobjectidKnowledgebaserecordCsuCasetask; RegardingobjectidLeadCsuCasetask = regardingobjectidLeadCsuCasetask; RegardingobjectidBookableresourcebookingCsuCasetask = regardingobjectidBookableresourcebookingCsuCasetask; RegardingobjectidBookableresourcebookingheaderCsuCasetask = regardingobjectidBookableresourcebookingheaderCsuCasetask; RegardingobjectidBulkoperationCsuCasetask = regardingobjectidBulkoperationCsuCasetask; RegardingobjectidCampaignCsuCasetask = regardingobjectidCampaignCsuCasetask; RegardingobjectidCampaignactivityCsuCasetask = regardingobjectidCampaignactivityCsuCasetask; RegardingobjectidContractCsuCasetask = regardingobjectidContractCsuCasetask; RegardingobjectidEntitlementCsuCasetask = regardingobjectidEntitlementCsuCasetask; RegardingobjectidEntitlementtemplateCsuCasetask = regardingobjectidEntitlementtemplateCsuCasetask; RegardingobjectidIncidentCsuCasetask = regardingobjectidIncidentCsuCasetask; RegardingobjectidSiteCsuCasetask = regardingobjectidSiteCsuCasetask; ServiceidCsuCasetask = serviceidCsuCasetask; RegardingobjectidInvoiceCsuCasetask = regardingobjectidInvoiceCsuCasetask; RegardingobjectidOpportunityCsuCasetask = regardingobjectidOpportunityCsuCasetask; RegardingobjectidQuoteCsuCasetask = regardingobjectidQuoteCsuCasetask; RegardingobjectidSalesorderCsuCasetask = regardingobjectidSalesorderCsuCasetask; RegardingobjectidMsdynPostalbumCsuCasetask = regardingobjectidMsdynPostalbumCsuCasetask; RegardingobjectidCsuComplaintsCsuCasetask = regardingobjectidCsuComplaintsCsuCasetask; RegardingobjectidCsuSubjectofcomplaintCsuCasetask = regardingobjectidCsuSubjectofcomplaintCsuCasetask; RegardingobjectidAccountCsuCasetask = regardingobjectidAccountCsuCasetask; CreatedbyCsuCasetask = createdbyCsuCasetask; RegardingobjectidContactCsuCasetask = regardingobjectidContactCsuCasetask; SendermailboxidCsuCasetask = sendermailboxidCsuCasetask; TransactioncurrencyidCsuCasetask = transactioncurrencyidCsuCasetask; OwneridCsuCasetask = owneridCsuCasetask; OwninguserCsuCasetask = owninguserCsuCasetask; SlaActivitypointerSlaCsuCasetask = slaActivitypointerSlaCsuCasetask; OwningbusinessunitCsuCasetask = owningbusinessunitCsuCasetask; RegardingobjectidKnowledgearticleCsuCasetask = regardingobjectidKnowledgearticleCsuCasetask; ModifiedonbehalfbyCsuCasetask = modifiedonbehalfbyCsuCasetask; CreatedonbehalfbyCsuCasetask = createdonbehalfbyCsuCasetask; ModifiedbyCsuCasetask = modifiedbyCsuCasetask; OwningteamCsuCasetask = owningteamCsuCasetask; SlainvokedidActivitypointerSlaCsuCasetask = slainvokedidActivitypointerSlaCsuCasetask; ActivityidCsuCasetask = activityidCsuCasetask; CsuCasetaskActivityParties = csuCasetaskActivityParties; CampaignResponseCsuCasetasks = campaignResponseCsuCasetasks; CsuCasetaskActionCards = csuCasetaskActionCards; CsuCasetaskSyncErrors = csuCasetaskSyncErrors; CsuCasetaskDuplicateMatchingRecord = csuCasetaskDuplicateMatchingRecord; CsuCasetaskDuplicateBaseRecord = csuCasetaskDuplicateBaseRecord; CsuCasetaskAsyncOperations = csuCasetaskAsyncOperations; CsuCasetaskMailboxTrackingFolders = csuCasetaskMailboxTrackingFolders; CsuCasetaskProcessSession = csuCasetaskProcessSession; CsuCasetaskBulkDeleteFailures = csuCasetaskBulkDeleteFailures; CsuCasetaskPrincipalObjectAttributeAccesses = csuCasetaskPrincipalObjectAttributeAccesses; CsuCasetaskConnections1 = csuCasetaskConnections1; CsuCasetaskConnections2 = csuCasetaskConnections2; CsuCasetaskQueueItems = csuCasetaskQueueItems; CsuCasetaskAnnotations = csuCasetaskAnnotations; CsuCasetaskFeedback = csuCasetaskFeedback; StageidCsuCasetask = stageidCsuCasetask; CsuTaskOwnerCsuCasetask = csuTaskOwnerCsuCasetask; CsuDemandandOrderIdCsuCasetask = csuDemandandOrderIdCsuCasetask; CsuInspectionSearchidCsuCasetask = csuInspectionSearchidCsuCasetask; CsuInjunctionDetailCsuCasetask = csuInjunctionDetailCsuCasetask; CsuCsuCasetaskCsuSeizuredetailsItemDestructionTask = csuCsuCasetaskCsuSeizuredetailsItemDestructionTask; CsuCsuCasetaskCsuSeizuredetails52DODate = csuCsuCasetaskCsuSeizuredetails52DODate; CsuCsuCasetaskCsuViolationHearingDate = csuCsuCasetaskCsuViolationHearingDate; CsuCsuCasetaskCsuInjuctiondetailHearingD = csuCsuCasetaskCsuInjuctiondetailHearingD; CsuCsuCasetaskCsuSeizure52FilingDate = csuCsuCasetaskCsuSeizure52FilingDate; CsuCsuCasetaskCsuDemandandorder52DueDate = csuCsuCasetaskCsuDemandandorder52DueDate; CsuCsuCasetaskCsuDemandandorderExpiryDat = csuCsuCasetaskCsuDemandandorderExpiryDat; CsuCsuCasetaskCsuDemandandorderExtendDat = csuCsuCasetaskCsuDemandandorderExtendDat; CsuCsuCasetaskCsuDemandandorderRenewdate = csuCsuCasetaskCsuDemandandorderRenewdate; CsuCsuCasetaskCsuAmpWaiverDeadlineDate = csuCsuCasetaskCsuAmpWaiverDeadlineDate; CsuCsuCasetaskCsuAmpReconDeadlineDate = csuCsuCasetaskCsuAmpReconDeadlineDate; CsuCsuCasetaskCsuAmpAdminOralHearingDate = csuCsuCasetaskCsuAmpAdminOralHearingDate; CsuCsuCasetaskCsuAmpReconOralHearingDate = csuCsuCasetaskCsuAmpReconOralHearingDate; CsuApplicationforReturnCsuCasetask = csuApplicationforReturnCsuCasetask; CsuCsuCasetaskCsuAmporderAMPReconHearing = csuCsuCasetaskCsuAmporderAMPReconHearing; CsuCsuCasetaskCsuAmporderOrderDueDate = csuCsuCasetaskCsuAmporderOrderDueDate; CsuCsuCasetaskCsuAmporderNextReminderDat = csuCsuCasetaskCsuAmporderNextReminderDat; CsuAMPOrderIdCsuCasetask = csuAMPOrderIdCsuCasetask; CsuAMPIdCsuCasetask = csuAMPIdCsuCasetask; CsuViolationIdCsuCasetask = csuViolationIdCsuCasetask; CsuSeizuresIdCsuCasetask = csuSeizuresIdCsuCasetask; CsuCsuCasetaskCsuSeizuredetailsAppDueDat = csuCsuCasetaskCsuSeizuredetailsAppDueDat; CsuCsuCasetaskCsuHearing = csuCsuCasetaskCsuHearing; CsuHearingidCsuCasetask = csuHearingidCsuCasetask; CsuCsuCasetaskCsuViolationDisputeDeadlineDate = csuCsuCasetaskCsuViolationDisputeDeadlineDate; RegardingobjectidCsuVehicledetailCsuCasetask = regardingobjectidCsuVehicledetailCsuCasetask; CustomInit(); }
/// <summary> /// Update entity in accounts /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='accountid'> /// key: accountid of account /// </param> /// <param name='body'> /// New property values /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task UpdateAsync(this IAccounts operations, string accountid, MicrosoftDynamicsCRMaccount body, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.UpdateWithHttpMessagesAsync(accountid, body, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Initializes a new instance of the MicrosoftDynamicsCRMentitlement /// class. /// </summary> public MicrosoftDynamicsCRMentitlement(int?decreaseremainingon = default(int?), string _createdbyValue = default(string), System.DateTimeOffset?createdon = default(System.DateTimeOffset?), int?importsequencenumber = default(int?), string stageid = default(string), int?statecode = default(int?), System.DateTimeOffset?overriddencreatedon = default(System.DateTimeOffset?), decimal?totalterms = default(decimal?), System.DateTimeOffset?modifiedon = default(System.DateTimeOffset?), string _owningbusinessunitValue = default(string), string description = default(string), string name = default(string), string entitlementid = default(string), string _contactidValue = default(string), System.DateTimeOffset?startdate = default(System.DateTimeOffset?), System.DateTimeOffset?enddate = default(System.DateTimeOffset?), string _modifiedonbehalfbyValue = default(string), string emailaddress = default(string), int?utcconversiontimezonecode = default(int?), string traversedpath = default(string), decimal?exchangerate = default(decimal?), string _createdonbehalfbyValue = default(string), int?timezoneruleversionnumber = default(int?), decimal?remainingterms = default(decimal?), string _modifiedbyValue = default(string), int?statuscode = default(int?), string _owninguserValue = default(string), string _accountidValue = default(string), int?allocationtypecode = default(int?), string versionnumber = default(string), string _owningteamValue = default(string), bool?restrictcasecreation = default(bool?), string _transactioncurrencyidValue = default(string), string processid = default(string), string _customeridValue = default(string), string _entitlementtemplateidValue = default(string), int?kbaccesslevel = default(int?), bool?isdefault = default(bool?), string _slaidValue = default(string), string _owneridValue = default(string), MicrosoftDynamicsCRMsystemuser createdby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser createdonbehalfby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser modifiedby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser modifiedonbehalfby = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser owninguser = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMteam owningteam = default(MicrosoftDynamicsCRMteam), MicrosoftDynamicsCRMprincipal ownerid = default(MicrosoftDynamicsCRMprincipal), MicrosoftDynamicsCRMbusinessunit owningbusinessunit = default(MicrosoftDynamicsCRMbusinessunit), IList <MicrosoftDynamicsCRMactivitypointer> entitlementActivityPointers = default(IList <MicrosoftDynamicsCRMactivitypointer>), IList <MicrosoftDynamicsCRMsyncerror> entitlementSyncErrors = default(IList <MicrosoftDynamicsCRMsyncerror>), IList <MicrosoftDynamicsCRMactivityparty> entitlementActivityParties = default(IList <MicrosoftDynamicsCRMactivityparty>), IList <MicrosoftDynamicsCRMasyncoperation> entitlementAsyncOperations = default(IList <MicrosoftDynamicsCRMasyncoperation>), IList <MicrosoftDynamicsCRMmailboxtrackingfolder> entitlementMailboxTrackingFolder = default(IList <MicrosoftDynamicsCRMmailboxtrackingfolder>), IList <MicrosoftDynamicsCRMprocesssession> entitlementProcessSession = default(IList <MicrosoftDynamicsCRMprocesssession>), IList <MicrosoftDynamicsCRMbulkdeletefailure> entitlementBulkDeleteFailures = default(IList <MicrosoftDynamicsCRMbulkdeletefailure>), IList <MicrosoftDynamicsCRMprincipalobjectattributeaccess> entitlementPrincipalObjectAttributeAccesses = default(IList <MicrosoftDynamicsCRMprincipalobjectattributeaccess>), IList <MicrosoftDynamicsCRMappointment> entitlementAppointments = default(IList <MicrosoftDynamicsCRMappointment>), IList <MicrosoftDynamicsCRMemail> entitlementEmails = default(IList <MicrosoftDynamicsCRMemail>), IList <MicrosoftDynamicsCRMfax> entitlementFaxes = default(IList <MicrosoftDynamicsCRMfax>), IList <MicrosoftDynamicsCRMletter> entitlementLetters = default(IList <MicrosoftDynamicsCRMletter>), IList <MicrosoftDynamicsCRMphonecall> entitlementPhoneCalls = default(IList <MicrosoftDynamicsCRMphonecall>), IList <MicrosoftDynamicsCRMtask> entitlementTasks = default(IList <MicrosoftDynamicsCRMtask>), IList <MicrosoftDynamicsCRMrecurringappointmentmaster> entitlementRecurringAppointmentMasters = default(IList <MicrosoftDynamicsCRMrecurringappointmentmaster>), IList <MicrosoftDynamicsCRMsocialactivity> entitlementSocialActivities = default(IList <MicrosoftDynamicsCRMsocialactivity>), IList <MicrosoftDynamicsCRMconnection> entitlementConnections1 = default(IList <MicrosoftDynamicsCRMconnection>), IList <MicrosoftDynamicsCRMconnection> entitlementConnections2 = default(IList <MicrosoftDynamicsCRMconnection>), IList <MicrosoftDynamicsCRMannotation> entitlementAnnotations = default(IList <MicrosoftDynamicsCRMannotation>), IList <MicrosoftDynamicsCRMincidentresolution> entitlementIncidentResolutions = default(IList <MicrosoftDynamicsCRMincidentresolution>), IList <MicrosoftDynamicsCRMserviceappointment> entitlementServiceAppointments = default(IList <MicrosoftDynamicsCRMserviceappointment>), MicrosoftDynamicsCRMaccount accountid = default(MicrosoftDynamicsCRMaccount), MicrosoftDynamicsCRMaccount customeridAccount = default(MicrosoftDynamicsCRMaccount), MicrosoftDynamicsCRMcontact contactid = default(MicrosoftDynamicsCRMcontact), MicrosoftDynamicsCRMcontact customeridContact = default(MicrosoftDynamicsCRMcontact), IList <MicrosoftDynamicsCRMcontact> entitlementcontactsAssociation = default(IList <MicrosoftDynamicsCRMcontact>), IList <MicrosoftDynamicsCRMincident> entitlementCases = default(IList <MicrosoftDynamicsCRMincident>), IList <MicrosoftDynamicsCRMentitlementchannel> entitlementEntitlementchannelEntitlementId = default(IList <MicrosoftDynamicsCRMentitlementchannel>), MicrosoftDynamicsCRMentitlementtemplate entitlementtemplateid = default(MicrosoftDynamicsCRMentitlementtemplate), IList <MicrosoftDynamicsCRMproduct> productEntitlementAssociation = default(IList <MicrosoftDynamicsCRMproduct>), MicrosoftDynamicsCRMsla slaid = default(MicrosoftDynamicsCRMsla), MicrosoftDynamicsCRMtransactioncurrency transactioncurrencyid = default(MicrosoftDynamicsCRMtransactioncurrency), IList <MicrosoftDynamicsCRMduplicaterecord> entitlementDuplicateBaseRecord = default(IList <MicrosoftDynamicsCRMduplicaterecord>), IList <MicrosoftDynamicsCRMduplicaterecord> entitlementDuplicateMatchingRecord = default(IList <MicrosoftDynamicsCRMduplicaterecord>), IList <MicrosoftDynamicsCRMopportunityclose> entitlementOpportunityCloses = default(IList <MicrosoftDynamicsCRMopportunityclose>), IList <MicrosoftDynamicsCRMorderclose> entitlementOrderCloses = default(IList <MicrosoftDynamicsCRMorderclose>), IList <MicrosoftDynamicsCRMquoteclose> entitlementQuoteCloses = default(IList <MicrosoftDynamicsCRMquoteclose>), IList <MicrosoftDynamicsCRMcsuCasetask> entitlementCsuCasetasks = default(IList <MicrosoftDynamicsCRMcsuCasetask>)) { Decreaseremainingon = decreaseremainingon; this._createdbyValue = _createdbyValue; Createdon = createdon; Importsequencenumber = importsequencenumber; Stageid = stageid; Statecode = statecode; Overriddencreatedon = overriddencreatedon; Totalterms = totalterms; Modifiedon = modifiedon; this._owningbusinessunitValue = _owningbusinessunitValue; Description = description; Name = name; Entitlementid = entitlementid; this._contactidValue = _contactidValue; Startdate = startdate; Enddate = enddate; this._modifiedonbehalfbyValue = _modifiedonbehalfbyValue; Emailaddress = emailaddress; Utcconversiontimezonecode = utcconversiontimezonecode; Traversedpath = traversedpath; Exchangerate = exchangerate; this._createdonbehalfbyValue = _createdonbehalfbyValue; Timezoneruleversionnumber = timezoneruleversionnumber; Remainingterms = remainingterms; this._modifiedbyValue = _modifiedbyValue; Statuscode = statuscode; this._owninguserValue = _owninguserValue; this._accountidValue = _accountidValue; Allocationtypecode = allocationtypecode; Versionnumber = versionnumber; this._owningteamValue = _owningteamValue; Restrictcasecreation = restrictcasecreation; this._transactioncurrencyidValue = _transactioncurrencyidValue; Processid = processid; this._customeridValue = _customeridValue; this._entitlementtemplateidValue = _entitlementtemplateidValue; Kbaccesslevel = kbaccesslevel; Isdefault = isdefault; this._slaidValue = _slaidValue; this._owneridValue = _owneridValue; Createdby = createdby; Createdonbehalfby = createdonbehalfby; Modifiedby = modifiedby; Modifiedonbehalfby = modifiedonbehalfby; Owninguser = owninguser; Owningteam = owningteam; Ownerid = ownerid; Owningbusinessunit = owningbusinessunit; EntitlementActivityPointers = entitlementActivityPointers; EntitlementSyncErrors = entitlementSyncErrors; EntitlementActivityParties = entitlementActivityParties; EntitlementAsyncOperations = entitlementAsyncOperations; EntitlementMailboxTrackingFolder = entitlementMailboxTrackingFolder; EntitlementProcessSession = entitlementProcessSession; EntitlementBulkDeleteFailures = entitlementBulkDeleteFailures; EntitlementPrincipalObjectAttributeAccesses = entitlementPrincipalObjectAttributeAccesses; EntitlementAppointments = entitlementAppointments; EntitlementEmails = entitlementEmails; EntitlementFaxes = entitlementFaxes; EntitlementLetters = entitlementLetters; EntitlementPhoneCalls = entitlementPhoneCalls; EntitlementTasks = entitlementTasks; EntitlementRecurringAppointmentMasters = entitlementRecurringAppointmentMasters; EntitlementSocialActivities = entitlementSocialActivities; EntitlementConnections1 = entitlementConnections1; EntitlementConnections2 = entitlementConnections2; EntitlementAnnotations = entitlementAnnotations; EntitlementIncidentResolutions = entitlementIncidentResolutions; EntitlementServiceAppointments = entitlementServiceAppointments; Accountid = accountid; CustomeridAccount = customeridAccount; Contactid = contactid; CustomeridContact = customeridContact; EntitlementcontactsAssociation = entitlementcontactsAssociation; EntitlementCases = entitlementCases; EntitlementEntitlementchannelEntitlementId = entitlementEntitlementchannelEntitlementId; Entitlementtemplateid = entitlementtemplateid; ProductEntitlementAssociation = productEntitlementAssociation; Slaid = slaid; Transactioncurrencyid = transactioncurrencyid; EntitlementDuplicateBaseRecord = entitlementDuplicateBaseRecord; EntitlementDuplicateMatchingRecord = entitlementDuplicateMatchingRecord; EntitlementOpportunityCloses = entitlementOpportunityCloses; EntitlementOrderCloses = entitlementOrderCloses; EntitlementQuoteCloses = entitlementQuoteCloses; EntitlementCsuCasetasks = entitlementCsuCasetasks; CustomInit(); }
/// <summary> /// Update entity in accounts /// </summary> /// <param name='accountid'> /// key: accountid of account /// </param> /// <param name='body'> /// New property values /// </param> /// <param name='customHeaders'> /// Headers that will be added to request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> /// <exception cref="HttpOperationException"> /// Thrown when the operation returned an invalid status code /// </exception> /// <exception cref="ValidationException"> /// Thrown when a required parameter is null /// </exception> /// <exception cref="System.ArgumentNullException"> /// Thrown when a required parameter is null /// </exception> /// <return> /// A response object containing the response body and response headers. /// </return> public async Task <HttpOperationResponse> UpdateWithHttpMessagesAsync(string accountid, MicrosoftDynamicsCRMaccount body, Dictionary <string, List <string> > customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (accountid == null) { throw new ValidationException(ValidationRules.CannotBeNull, "accountid"); } if (body == null) { throw new ValidationException(ValidationRules.CannotBeNull, "body"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary <string, object> tracingParameters = new Dictionary <string, object>(); tracingParameters.Add("accountid", accountid); tracingParameters.Add("body", body); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "accounts({accountid})").ToString(); _url = _url.Replace("{accountid}", System.Uri.EscapeDataString(accountid)); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; _httpRequest.Method = new HttpMethod("PATCH"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (customHeaders != null) { foreach (var _header in customHeaders) { if (_httpRequest.Headers.Contains(_header.Key)) { _httpRequest.Headers.Remove(_header.Key); } _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); } } // Serialize Request string _requestContent = null; if (body != null) { _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(body, Client.SerializationSettings); _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 204) { var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) { _httpResponse.Dispose(); } throw ex; } // Create Result var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); } return(_result); }
/// <summary> /// Initializes a new instance of the /// MicrosoftDynamicsCRMserviceappointment class. /// </summary> public MicrosoftDynamicsCRMserviceappointment(bool?isalldayevent = default(bool?), string category = default(string), string location = default(string), int?importsequencenumber = default(int?), string subcategory = default(string), System.DateTimeOffset?overriddencreatedon = default(System.DateTimeOffset?), string _siteidValue = default(string), string subscriptionid = default(string), MicrosoftDynamicsCRMinteractionforemail regardingobjectidNewInteractionforemailServiceappointment = default(MicrosoftDynamicsCRMinteractionforemail), MicrosoftDynamicsCRMknowledgebaserecord regardingobjectidKnowledgebaserecordServiceappointment = default(MicrosoftDynamicsCRMknowledgebaserecord), MicrosoftDynamicsCRMlead regardingobjectidLeadServiceappointment = default(MicrosoftDynamicsCRMlead), MicrosoftDynamicsCRMbookableresourcebooking regardingobjectidBookableresourcebookingServiceappointment = default(MicrosoftDynamicsCRMbookableresourcebooking), MicrosoftDynamicsCRMbookableresourcebookingheader regardingobjectidBookableresourcebookingheaderServiceappointment = default(MicrosoftDynamicsCRMbookableresourcebookingheader), MicrosoftDynamicsCRMbulkoperation regardingobjectidBulkoperationServiceappointment = default(MicrosoftDynamicsCRMbulkoperation), MicrosoftDynamicsCRMcampaign regardingobjectidCampaignServiceappointment = default(MicrosoftDynamicsCRMcampaign), MicrosoftDynamicsCRMcampaignactivity regardingobjectidCampaignactivityServiceappointment = default(MicrosoftDynamicsCRMcampaignactivity), MicrosoftDynamicsCRMcontract regardingobjectidContractServiceappointment = default(MicrosoftDynamicsCRMcontract), MicrosoftDynamicsCRMentitlement regardingobjectidEntitlementServiceappointment = default(MicrosoftDynamicsCRMentitlement), MicrosoftDynamicsCRMentitlementtemplate regardingobjectidEntitlementtemplateServiceappointment = default(MicrosoftDynamicsCRMentitlementtemplate), MicrosoftDynamicsCRMincident regardingobjectidIncidentServiceappointment = default(MicrosoftDynamicsCRMincident), MicrosoftDynamicsCRMaccount regardingobjectidAccountServiceappointment = default(MicrosoftDynamicsCRMaccount), MicrosoftDynamicsCRMsystemuser createdbyServiceappointment = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMcontact regardingobjectidContactServiceappointment = default(MicrosoftDynamicsCRMcontact), MicrosoftDynamicsCRMmailbox sendermailboxidServiceappointment = default(MicrosoftDynamicsCRMmailbox), MicrosoftDynamicsCRMtransactioncurrency transactioncurrencyidServiceappointment = default(MicrosoftDynamicsCRMtransactioncurrency), MicrosoftDynamicsCRMprincipal owneridServiceappointment = default(MicrosoftDynamicsCRMprincipal), MicrosoftDynamicsCRMsystemuser owninguserServiceappointment = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsla sLAId = default(MicrosoftDynamicsCRMsla), MicrosoftDynamicsCRMbusinessunit owningbusinessunitServiceappointment = default(MicrosoftDynamicsCRMbusinessunit), MicrosoftDynamicsCRMknowledgearticle regardingobjectidKnowledgearticleServiceappointment = default(MicrosoftDynamicsCRMknowledgearticle), MicrosoftDynamicsCRMsystemuser modifiedonbehalfbyServiceappointment = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser createdonbehalfbyServiceappointment = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMsystemuser modifiedbyServiceappointment = default(MicrosoftDynamicsCRMsystemuser), MicrosoftDynamicsCRMteam owningteamServiceappointment = default(MicrosoftDynamicsCRMteam), MicrosoftDynamicsCRMsla slainvokedidServiceappointmentSla = default(MicrosoftDynamicsCRMsla), MicrosoftDynamicsCRMactivitypointer activityidActivitypointer = default(MicrosoftDynamicsCRMactivitypointer), IList <MicrosoftDynamicsCRMactivityparty> serviceappointmentActivityParties = default(IList <MicrosoftDynamicsCRMactivityparty>), IList <MicrosoftDynamicsCRMcampaignresponse> campaignResponseServiceAppointments = default(IList <MicrosoftDynamicsCRMcampaignresponse>), IList <MicrosoftDynamicsCRMsyncerror> serviceAppointmentSyncErrors = default(IList <MicrosoftDynamicsCRMsyncerror>), IList <MicrosoftDynamicsCRMasyncoperation> serviceAppointmentAsyncOperations = default(IList <MicrosoftDynamicsCRMasyncoperation>), IList <MicrosoftDynamicsCRMmailboxtrackingfolder> serviceappointmentMailboxTrackingFolders = default(IList <MicrosoftDynamicsCRMmailboxtrackingfolder>), IList <MicrosoftDynamicsCRMprocesssession> serviceAppointmentProcessSessions = default(IList <MicrosoftDynamicsCRMprocesssession>), IList <MicrosoftDynamicsCRMbulkdeletefailure> serviceAppointmentBulkDeleteFailures = default(IList <MicrosoftDynamicsCRMbulkdeletefailure>), IList <MicrosoftDynamicsCRMprincipalobjectattributeaccess> serviceappointmentPrincipalobjectattributeaccess = default(IList <MicrosoftDynamicsCRMprincipalobjectattributeaccess>), IList <MicrosoftDynamicsCRMconnection> serviceappointmentConnections1 = default(IList <MicrosoftDynamicsCRMconnection>), IList <MicrosoftDynamicsCRMconnection> serviceappointmentConnections2 = default(IList <MicrosoftDynamicsCRMconnection>), IList <MicrosoftDynamicsCRMqueueitem> serviceAppointmentQueueItem = default(IList <MicrosoftDynamicsCRMqueueitem>), IList <MicrosoftDynamicsCRMannotation> serviceAppointmentAnnotation = default(IList <MicrosoftDynamicsCRMannotation>), MicrosoftDynamicsCRMsite regardingobjectidSiteServiceappointment = default(MicrosoftDynamicsCRMsite), IList <MicrosoftDynamicsCRMactioncard> serviceappointmentActioncard = default(IList <MicrosoftDynamicsCRMactioncard>), MicrosoftDynamicsCRMservice serviceidServiceappointment = default(MicrosoftDynamicsCRMservice), IList <MicrosoftDynamicsCRMslakpiinstance> slakpiinstanceServiceappointment = default(IList <MicrosoftDynamicsCRMslakpiinstance>), MicrosoftDynamicsCRMsite siteid = default(MicrosoftDynamicsCRMsite), MicrosoftDynamicsCRMinvoice regardingobjectidInvoiceServiceappointment = default(MicrosoftDynamicsCRMinvoice), MicrosoftDynamicsCRMopportunity regardingobjectidOpportunityServiceappointment = default(MicrosoftDynamicsCRMopportunity), MicrosoftDynamicsCRMquote regardingobjectidQuoteServiceappointment = default(MicrosoftDynamicsCRMquote), MicrosoftDynamicsCRMsalesorder regardingobjectidSalesorderServiceappointment = default(MicrosoftDynamicsCRMsalesorder), MicrosoftDynamicsCRMmsdynPostalbum regardingobjectidMsdynPostalbumServiceappointment = default(MicrosoftDynamicsCRMmsdynPostalbum), MicrosoftDynamicsCRMcsuComplaints regardingobjectidCsuComplaintsServiceappointment = default(MicrosoftDynamicsCRMcsuComplaints), MicrosoftDynamicsCRMcsuSubjectofcomplaint regardingobjectidCsuSubjectofcomplaintServiceappointment = default(MicrosoftDynamicsCRMcsuSubjectofcomplaint), MicrosoftDynamicsCRMcsuVehicledetail regardingobjectidCsuVehicledetailServiceappointment = default(MicrosoftDynamicsCRMcsuVehicledetail)) { Isalldayevent = isalldayevent; Category = category; Location = location; Importsequencenumber = importsequencenumber; Subcategory = subcategory; Overriddencreatedon = overriddencreatedon; this._siteidValue = _siteidValue; Subscriptionid = subscriptionid; RegardingobjectidNewInteractionforemailServiceappointment = regardingobjectidNewInteractionforemailServiceappointment; RegardingobjectidKnowledgebaserecordServiceappointment = regardingobjectidKnowledgebaserecordServiceappointment; RegardingobjectidLeadServiceappointment = regardingobjectidLeadServiceappointment; RegardingobjectidBookableresourcebookingServiceappointment = regardingobjectidBookableresourcebookingServiceappointment; RegardingobjectidBookableresourcebookingheaderServiceappointment = regardingobjectidBookableresourcebookingheaderServiceappointment; RegardingobjectidBulkoperationServiceappointment = regardingobjectidBulkoperationServiceappointment; RegardingobjectidCampaignServiceappointment = regardingobjectidCampaignServiceappointment; RegardingobjectidCampaignactivityServiceappointment = regardingobjectidCampaignactivityServiceappointment; RegardingobjectidContractServiceappointment = regardingobjectidContractServiceappointment; RegardingobjectidEntitlementServiceappointment = regardingobjectidEntitlementServiceappointment; RegardingobjectidEntitlementtemplateServiceappointment = regardingobjectidEntitlementtemplateServiceappointment; RegardingobjectidIncidentServiceappointment = regardingobjectidIncidentServiceappointment; RegardingobjectidAccountServiceappointment = regardingobjectidAccountServiceappointment; CreatedbyServiceappointment = createdbyServiceappointment; RegardingobjectidContactServiceappointment = regardingobjectidContactServiceappointment; SendermailboxidServiceappointment = sendermailboxidServiceappointment; TransactioncurrencyidServiceappointment = transactioncurrencyidServiceappointment; OwneridServiceappointment = owneridServiceappointment; OwninguserServiceappointment = owninguserServiceappointment; SLAId = sLAId; OwningbusinessunitServiceappointment = owningbusinessunitServiceappointment; RegardingobjectidKnowledgearticleServiceappointment = regardingobjectidKnowledgearticleServiceappointment; ModifiedonbehalfbyServiceappointment = modifiedonbehalfbyServiceappointment; CreatedonbehalfbyServiceappointment = createdonbehalfbyServiceappointment; ModifiedbyServiceappointment = modifiedbyServiceappointment; OwningteamServiceappointment = owningteamServiceappointment; SlainvokedidServiceappointmentSla = slainvokedidServiceappointmentSla; ActivityidActivitypointer = activityidActivitypointer; ServiceappointmentActivityParties = serviceappointmentActivityParties; CampaignResponseServiceAppointments = campaignResponseServiceAppointments; ServiceAppointmentSyncErrors = serviceAppointmentSyncErrors; ServiceAppointmentAsyncOperations = serviceAppointmentAsyncOperations; ServiceappointmentMailboxTrackingFolders = serviceappointmentMailboxTrackingFolders; ServiceAppointmentProcessSessions = serviceAppointmentProcessSessions; ServiceAppointmentBulkDeleteFailures = serviceAppointmentBulkDeleteFailures; ServiceappointmentPrincipalobjectattributeaccess = serviceappointmentPrincipalobjectattributeaccess; ServiceappointmentConnections1 = serviceappointmentConnections1; ServiceappointmentConnections2 = serviceappointmentConnections2; ServiceAppointmentQueueItem = serviceAppointmentQueueItem; ServiceAppointmentAnnotation = serviceAppointmentAnnotation; RegardingobjectidSiteServiceappointment = regardingobjectidSiteServiceappointment; ServiceappointmentActioncard = serviceappointmentActioncard; ServiceidServiceappointment = serviceidServiceappointment; SlakpiinstanceServiceappointment = slakpiinstanceServiceappointment; Siteid = siteid; RegardingobjectidInvoiceServiceappointment = regardingobjectidInvoiceServiceappointment; RegardingobjectidOpportunityServiceappointment = regardingobjectidOpportunityServiceappointment; RegardingobjectidQuoteServiceappointment = regardingobjectidQuoteServiceappointment; RegardingobjectidSalesorderServiceappointment = regardingobjectidSalesorderServiceappointment; RegardingobjectidMsdynPostalbumServiceappointment = regardingobjectidMsdynPostalbumServiceappointment; RegardingobjectidCsuComplaintsServiceappointment = regardingobjectidCsuComplaintsServiceappointment; RegardingobjectidCsuSubjectofcomplaintServiceappointment = regardingobjectidCsuSubjectofcomplaintServiceappointment; RegardingobjectidCsuVehicledetailServiceappointment = regardingobjectidCsuVehicledetailServiceappointment; CustomInit(); }
/// <summary> /// Copy values from a ViewModel to a Dynamics Account. /// If parameter copyIfNull is false then do not copy a null value. Mainly applies to updates to the account. /// updateIfNull defaults to true /// </summary> /// <param name="toDynamics"></param> /// <param name="fromVM"></param> /// <param name="copyIfNull"></param> public static void CopyValues(this MicrosoftDynamicsCRMaccount toDynamics, ViewModels.Account fromVM) { bool copyIfNull = true; toDynamics.CopyValues(fromVM, copyIfNull); }
// this fellow returns the external id of the new account public async System.Threading.Tasks.Task <string> LoginAndRegisterAsNewUser(string loginUser, string businessName, string businessType = "PublicCorporation") { string accountService = "accounts"; await Login(loginUser + "::" + businessName); ViewModels.User user = await GetCurrentUser(); Assert.Equal(user.name, loginUser + " TestUser"); Assert.Equal(user.businessname, businessName + " TestBusiness"); Assert.True(user.isNewUser); // create a new account and contact in Dynamics var request = new HttpRequestMessage(HttpMethod.Post, "/api/" + accountService); MicrosoftDynamicsCRMaccount account = new MicrosoftDynamicsCRMaccount() { Name = user.businessname, AdoxioExternalid = user.accountid }; ViewModels.Account viewmodel_account = account.ToViewModel(); viewmodel_account.businessType = businessType; Assert.Equal(account.AdoxioExternalid, viewmodel_account.externalId); string jsonString2 = JsonConvert.SerializeObject(viewmodel_account); request.Content = new StringContent(jsonString2, Encoding.UTF8, "application/json"); var response = await _client.SendAsync(request); var jsonString = await response.Content.ReadAsStringAsync(); response.EnsureSuccessStatusCode(); ViewModels.Account responseViewModel = JsonConvert.DeserializeObject <ViewModels.Account>(jsonString); // name should match. Assert.Equal(user.businessname, responseViewModel.name); string strId = responseViewModel.externalId; string id = responseViewModel.id; Assert.Equal(strId, responseViewModel.externalId); // verify we can fetch the account via web service request = new HttpRequestMessage(HttpMethod.Get, "/api/" + accountService + "/" + id); response = await _client.SendAsync(request); string _discard = await response.Content.ReadAsStringAsync(); response.EnsureSuccessStatusCode(); // test that the current user is updated user = await GetCurrentUser(); Assert.NotNull(user.accountid); Assert.NotEmpty(user.accountid); Assert.Equal(id, user.accountid); return(id); }