Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2020 release wave 1Discover the latest updates and new features to Dynamics 365 planned through September 2020
Release overview guides and videos Release Plan | Preview 2020 Release Wave 1 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
Hello. Is it possible to query the Fiscal Year Settings? If a user enters 1/1/2015 as the Start Date, then I want to query CRM and find that date.
Thanks for reading.
You can see the setting of this Fiscal Year asking a DB of your organization and review the table to compare the data:
You can use the SQL table "Award_Date"
Thank you for the SQL location, but I need to access it via the API.
Does anyone know the correct Microsoft.XRM.SDK class?
You can access this through SDK by using standard Retrieving, that is in the Organization Entity.
There is no dedicated Class Message for this Rob
Overall, you just need to query Organization Entity and also Fiscal Year setting is stored in the FiscalCalendarStart field or "fiscalcalendarstart" if you use Early Bound.
Here is the code you can use
private void RetrieveOrganizationFiscalYear()
_service = new XrmContext();
XrmContext xrmContext = new XrmContext();
var OrganizationSettings = from os in xrmContext.OrganizationSet
select new Organization
FiscalCalendarStart = os.FiscalCalendarStart,
DateTime dtStartFiscalYear = OrganizationSettings.First().FiscalCalendarStart.Value;
//Using Late Bound
private void RetrieveOrganizationFiscalYearLateBound(IOrganizationService _service)
Entity enOrganization = new Entity("organization");
EntityCollection ecOrganizations = new EntityCollection();
DateTime dtStartFiscal = new DateTime();
QueryExpression qx = new QueryExpression();
qx.EntityName = "organization";
qx.ColumnSet.AllColumns = true;
ecOrganizations = _service.RetrieveMultiple(qx);
if (ecOrganizations.Entities.Count > 0)
enOrganization = ecOrganizations.Entities;
dtStartFiscal = enOrganization.GetAttributeValue<DateTime>("fiscalcalendarstart");
I hope this can help you!
Perfect! thank you Aileen.
Business Applications communities