public MicrosoftDynamicsCRMadoxioLicencetype GetAdoxioLicencetypeById(string id) { MicrosoftDynamicsCRMadoxioLicencetype result = null; try { // EXPAND the list of application types for this licence type string[] expand = { "adoxio_licencetypes_applicationtypes" }; result = Licencetypes.GetByKey(adoxioLicencetypeid: id, expand: expand); } catch (HttpOperationException) { result = null; } // additional pass to populate the applicationtypes licencetype. /* * if (result.AdoxioLicencetypesApplicationtypes != null) * { * foreach (var item in result.AdoxioLicencetypesApplicationtypes) * { * * if (item._adoxioLicencetypeidValue != null) * { * item.AdoxioLicenceTypeId = _dynamicsClient.GetAdoxioLicencetypeById(item._adoxioLicencetypeidValue); * } * } * } */ return(result); }
public MicrosoftDynamicsCRMadoxioLicencetype GetAdoxioLicencetypeByName(string name) { MicrosoftDynamicsCRMadoxioLicencetype result = null; string typeFilter = "adoxio_name eq '" + name + "'"; IEnumerable <MicrosoftDynamicsCRMadoxioLicencetype> licenceTypes = Licencetypes.Get(filter: typeFilter).Value; result = licenceTypes.FirstOrDefault(); return(result); }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { Accounts = new Accounts(this); Adoxiolicencetypeadoxioinvestigationset = new Adoxiolicencetypeadoxioinvestigationset(this); Aliases = new Aliases(this); Annualvolumes = new Annualvolumes(this); Applicationbpfv3s = new Applicationbpfv3s(this); Applicationcrsbpfv4s = new Applicationcrsbpfv4s(this); Applicationinvoicehistories = new Applicationinvoicehistories(this); Applicationlicenseechangesv10s = new Applicationlicenseechangesv10s(this); Applicationliquorbpfv2s = new Applicationliquorbpfv2s(this); Applicationrelocationv1s = new Applicationrelocationv1s(this); Applications = new Applications(this); Applicationstructurechangev1s = new Applicationstructurechangev1s(this); Applicationtermsconditionslimitations = new Applicationtermsconditionslimitations(this); Applicationtransferownershipv1s = new Applicationtransferownershipv1s(this); Applicationtypecontents = new Applicationtypecontents(this); Applicationtypefeeschedules = new Applicationtypefeeschedules(this); Applicationtypes = new Applicationtypes(this); Applicenseechangebpfv2s = new Applicenseechangebpfv2s(this); Areas = new Areas(this); Auditlogrequests = new Auditlogrequests(this); Businessaccounts = new Businessaccounts(this); Cannabisinventoryreports = new Cannabisinventoryreports(this); Cannabismonthlyreports = new Cannabismonthlyreports(this); Cannabisproductadmins = new Cannabisproductadmins(this); Citydistricts = new Citydistricts(this); Complaints = new Complaints(this); Complianceinvestigations = new Complianceinvestigations(this); Compliancemeetings = new Compliancemeetings(this); Contraventionadmins = new Contraventionadmins(this); Contraventions = new Contraventions(this); Corporatehistorysummaries = new Corporatehistorysummaries(this); Corporateroles = new Corporateroles(this); Customautonumberdefinitions = new Customautonumberdefinitions(this); Customautonumberrequests = new Customautonumberrequests(this); Documentadmins = new Documentadmins(this); Documents = new Documents(this); Endorsements = new Endorsements(this); Enforcementactionbpfs = new Enforcementactionbpfs(this); Enforcementactions = new Enforcementactions(this); Establishmentincidents = new Establishmentincidents(this); Establishments = new Establishments(this); Establishmentwatchwords = new Establishmentwatchwords(this); Eventaddresses = new Eventaddresses(this); Events = new Events(this); Eventschedules = new Eventschedules(this); Exhibits = new Exhibits(this); Federalreportexports = new Federalreportexports(this); Fiainvestigationlogs = new Fiainvestigationlogs(this); Formelementuploadfields = new Formelementuploadfields(this); Fundingsources = new Fundingsources(this); Hoursofservices = new Hoursofservices(this); Hoursofservicesdefaults = new Hoursofservicesdefaults(this); Incidentadoxiolicencetypeset = new Incidentadoxiolicencetypeset(this); Inspectioninspectorsset = new Inspectioninspectorsset(this); Inspectionformconfigurations = new Inspectionformconfigurations(this); Inspectionreactivationhistories = new Inspectionreactivationhistories(this); Inspectorcommentsrollups = new Inspectorcommentsrollups(this); Inspectorreports = new Inspectorreports(this); Interests = new Interests(this); Investigationactivities = new Investigationactivities(this); Investigationreactivationhistories = new Investigationreactivationhistories(this); Investigations = new Investigations(this); Ldborders = new Ldborders(this); Leconnections = new Leconnections(this); Legalentities = new Legalentities(this); Licenceldbordertotalhistories = new Licenceldbordertotalhistories(this); Licenceses = new Licenceses(this); Licencesubcategories = new Licencesubcategories(this); Licencetypes = new Licencetypes(this); Licencetypesapplicationtypesset = new Licencetypesapplicationtypesset(this); Licenseechangelogs = new Licenseechangelogs(this); Loans = new Loans(this); Localgovindigenousnations = new Localgovindigenousnations(this); Lqrlicencetransferbpfs = new Lqrlicencetransferbpfs(this); Offsitestorages = new Offsitestorages(this); Personalhistorysummaries = new Personalhistorysummaries(this); Pmuareas = new Pmuareas(this); Policejurisdictions = new Policejurisdictions(this); Policydocuments = new Policydocuments(this); Postalcodes = new Postalcodes(this); Previousaddresses = new Previousaddresses(this); Proratedlicencefeeschedules = new Proratedlicencefeeschedules(this); Regions = new Regions(this); Relatedparties = new Relatedparties(this); Rmreviews = new Rmreviews(this); Serviceareas = new Serviceareas(this); Settings = new Settings(this); Spddatarows = new Spddatarows(this); Spdexportses = new Spdexportses(this); Specialeventlicencedareas = new Specialeventlicencedareas(this); Specialeventlocations = new Specialeventlocations(this); Specialeventnotes = new Specialeventnotes(this); Specialevents = new Specialevents(this); Specialeventschedules = new Specialeventschedules(this); Specialeventtandcs = new Specialeventtandcs(this); Taxandaccountings = new Taxandaccountings(this); Termsconditionslimitationspresets = new Termsconditionslimitationspresets(this); Territories = new Territories(this); Tiedhouseassociations = new Tiedhouseassociations(this); Tiedhouseconnections = new Tiedhouseconnections(this); Witnesses = new Witnesses(this); Workerinvoicehistories = new Workerinvoicehistories(this); Workers = new Workers(this); Contacts = new Contacts(this); Entitydefinitions = new Entitydefinitions(this); Globaloptionsetdefinitions = new Globaloptionsetdefinitions(this); Invoices = new Invoices(this); Leads = new Leads(this); Lists = new Lists(this); Savedqueries = new Savedqueries(this); Sharepointdocumentlocations = new Sharepointdocumentlocations(this); Sharepointsites = new Sharepointsites(this); Systemforms = new Systemforms(this); Systemusers = new Systemusers(this); Workflows = new Workflows(this); BaseUri = new System.Uri("http://localhost"); SerializationSettings = new JsonSerializerSettings { Formatting = Newtonsoft.Json.Formatting.Indented, DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; DeserializationSettings = new JsonSerializerSettings { DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; CustomInitialize(); }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { Accounts = new Accounts(this); Licencetypeinvestigationset = new Licencetypeinvestigationset(this); Agencycommunications = new Agencycommunications(this); Aliases = new Aliases(this); Applicantsteps = new Applicantsteps(this); Applicationbpfmvpv2s = new Applicationbpfmvpv2s(this); Applicationinvoicehistories = new Applicationinvoicehistories(this); Applicationmodules = new Applicationmodules(this); Applications = new Applications(this); Applicationtermsconditionslimitations = new Applicationtermsconditionslimitations(this); Areas = new Areas(this); Businessaccounts = new Businessaccounts(this); Citydistricts = new Citydistricts(this); Complaintpublicbpfs = new Complaintpublicbpfs(this); Complaints = new Complaints(this); Compliancemeetings = new Compliancemeetings(this); Contraventionadmins = new Contraventionadmins(this); Contraventions = new Contraventions(this); Corporatehistorysummaries = new Corporatehistorysummaries(this); Corporateroles = new Corporateroles(this); Customautonumberdefinitions = new Customautonumberdefinitions(this); Customautonumberrequests = new Customautonumberrequests(this); Documentadmins = new Documentadmins(this); Documents = new Documents(this); Establishments = new Establishments(this); Fundingsources = new Fundingsources(this); Incidentlicencetypeset = new Incidentlicencetypeset(this); Inspectioninspectorsset = new Inspectioninspectorsset(this); Interests = new Interests(this); Investigationactivities = new Investigationactivities(this); Investigations = new Investigations(this); Legalentities = new Legalentities(this); Licenceses = new Licenceses(this); Licencetypeprerequisites = new Licencetypeprerequisites(this); Licencetypes = new Licencetypes(this); Licencetypestepprerequisites = new Licencetypestepprerequisites(this); Licencetypesteps = new Licencetypesteps(this); Loans = new Loans(this); Localgovindigenousnations = new Localgovindigenousnations(this); Personalhistorysummaries = new Personalhistorysummaries(this); Policejurisdictions = new Policejurisdictions(this); Policydocuments = new Policydocuments(this); Postalcodes = new Postalcodes(this); Previousaddresses = new Previousaddresses(this); Regions = new Regions(this); Settings = new Settings(this); Spddatarows = new Spddatarows(this); Spdexportses = new Spdexportses(this); Taxandaccountings = new Taxandaccountings(this); Termsconditionslimitationspresets = new Termsconditionslimitationspresets(this); Territories = new Territories(this); Tiedhouseassociations = new Tiedhouseassociations(this); Tiedhouseconnections = new Tiedhouseconnections(this); Workerinvoicehistories = new Workerinvoicehistories(this); Workers = new Workers(this); Contacts = new Contacts(this); Invoices = new Invoices(this); Msdynapplicationknowledgearticleset = new Msdynapplicationknowledgearticleset(this); Msdynapplicationknowledgebaserecset = new Msdynapplicationknowledgebaserecset(this); Msdynlicencetypeknowledgearticleset = new Msdynlicencetypeknowledgearticleset(this); Msdynlicencetypeknowledgebaserecset = new Msdynlicencetypeknowledgebaserecset(this); Savedqueries = new Savedqueries(this); Sharepointdocumentlocations = new Sharepointdocumentlocations(this); Sharepointsites = new Sharepointsites(this); BaseUri = new System.Uri("https://localhost:8888/dynamics"); SerializationSettings = new JsonSerializerSettings { Formatting = Newtonsoft.Json.Formatting.Indented, DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; DeserializationSettings = new JsonSerializerSettings { DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; CustomInitialize(); }
/// <summary> /// Initializes client properties. /// </summary> private void Initialize() { Accounts = new Accounts(this); Adoxiolicencetypeadoxioinvestigationset = new Adoxiolicencetypeadoxioinvestigationset(this); Aliases = new Aliases(this); Applicationbpfmvpv2s = new Applicationbpfmvpv2s(this); Applicationbpfv3s = new Applicationbpfv3s(this); Applicationinvoicehistories = new Applicationinvoicehistories(this); Applications = new Applications(this); Applicationtermsconditionslimitations = new Applicationtermsconditionslimitations(this); Applicationtypecontents = new Applicationtypecontents(this); Applicationtypes = new Applicationtypes(this); Areas = new Areas(this); Auditlogrequests = new Auditlogrequests(this); Businessaccounts = new Businessaccounts(this); Cannabisinventoryreports = new Cannabisinventoryreports(this); Cannabismonthlyreports = new Cannabismonthlyreports(this); Cannabisproductadmins = new Cannabisproductadmins(this); Citydistricts = new Citydistricts(this); Complaintpublicbpfs = new Complaintpublicbpfs(this); Complaints = new Complaints(this); Complianceinvestigations = new Complianceinvestigations(this); Investigationexhibits = new Investigationexhibits(this); Compliancemeetings = new Compliancemeetings(this); Compliancemeetingrelatedparties = new Compliancemeetingrelatedparties(this); Contraventionadmins = new Contraventionadmins(this); Contraventions = new Contraventions(this); Corporatehistorysummaries = new Corporatehistorysummaries(this); Corporateroles = new Corporateroles(this); Customautonumberdefinitions = new Customautonumberdefinitions(this); Customautonumberrequests = new Customautonumberrequests(this); Documentadmins = new Documentadmins(this); Documents = new Documents(this); Establishments = new Establishments(this); Establishmentwatchwords = new Establishmentwatchwords(this); Exhibits = new Exhibits(this); Exhibitasyncoperations = new Exhibitasyncoperations(this); Exhibitbulkdeletefailures = new Exhibitbulkdeletefailures(this); Exhibitduplicatebaserecord = new Exhibitduplicatebaserecord(this); Exhibitduplicatematchingrecord = new Exhibitduplicatematchingrecord(this); Exhibitsyncerrors = new Exhibitsyncerrors(this); Investigationid = new Investigationid(this); Fiainvestigationlogs = new Fiainvestigationlogs(this); Fundingsources = new Fundingsources(this); Incidentadoxiolicencetypeset = new Incidentadoxiolicencetypeset(this); Inspectioninspectorsset = new Inspectioninspectorsset(this); Inspectionreactivationhistories = new Inspectionreactivationhistories(this); Inspectorcommentsrollups = new Inspectorcommentsrollups(this); Interests = new Interests(this); Investigationactivities = new Investigationactivities(this); Investigationreactivationhistories = new Investigationreactivationhistories(this); Investigations = new Investigations(this); Legalentities = new Legalentities(this); Legalentitytasklegalentity = new Legalentitytasklegalentity(this); Licenceses = new Licenceses(this); Licencetypes = new Licencetypes(this); Licencetypesapplicationtypesset = new Licencetypesapplicationtypesset(this); Licenseechangelogs = new Licenseechangelogs(this); Loans = new Loans(this); Localgovindigenousnations = new Localgovindigenousnations(this); Personalhistorysummaries = new Personalhistorysummaries(this); Policejurisdictions = new Policejurisdictions(this); Policydocuments = new Policydocuments(this); Postalcodes = new Postalcodes(this); Previousaddresses = new Previousaddresses(this); Regions = new Regions(this); Relatedparties = new Relatedparties(this); Compliancemeetingid = new Compliancemeetingid(this); Settings = new Settings(this); Spddatarows = new Spddatarows(this); Spdexportses = new Spdexportses(this); Taxandaccountings = new Taxandaccountings(this); Termsconditionslimitationspresets = new Termsconditionslimitationspresets(this); Territories = new Territories(this); Tiedhouseassociations = new Tiedhouseassociations(this); Tiedhouseconnections = new Tiedhouseconnections(this); Witnesses = new Witnesses(this); Workerinvoicehistories = new Workerinvoicehistories(this); Workers = new Workers(this); Regardingobjectidadoxioexhibit = new Regardingobjectidadoxioexhibit(this); Businessunitadoxioexhibit = new Businessunitadoxioexhibit(this); Contacts = new Contacts(this); Contacttaskcontact = new Contacttaskcontact(this); Baserecordidadoxioexhibit = new Baserecordidadoxioexhibit(this); Duplicaterecordidadoxioexhibit = new Duplicaterecordidadoxioexhibit(this); Entitydefinitions = new Entitydefinitions(this); Globaloptionsetdefinitions = new Globaloptionsetdefinitions(this); Invoices = new Invoices(this); Leads = new Leads(this); Lists = new Lists(this); Savedqueries = new Savedqueries(this); Sharepointdocumentlocations = new Sharepointdocumentlocations(this); Sharepointsites = new Sharepointsites(this); Lkadoxioexhibitcreatedby = new Lkadoxioexhibitcreatedby(this); Lkadoxioexhibitcreatedonbehalfby = new Lkadoxioexhibitcreatedonbehalfby(this); Lkadoxioexhibitmodifiedby = new Lkadoxioexhibitmodifiedby(this); Lkadoxioexhibitmodifiedonbehalfby = new Lkadoxioexhibitmodifiedonbehalfby(this); Useradoxioexhibit = new Useradoxioexhibit(this); Contacttask = new Contacttask(this); Legalentitytask = new Legalentitytask(this); Teamadoxioexhibit = new Teamadoxioexhibit(this); BaseUri = new System.Uri("http://localhost"); SerializationSettings = new JsonSerializerSettings { Formatting = Newtonsoft.Json.Formatting.Indented, DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; DeserializationSettings = new JsonSerializerSettings { DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List <JsonConverter> { new Iso8601TimeSpanConverter() } }; CustomInitialize(); }