Avy Faingezicht
10/18/2023, 12:03 AMaccountingperiod
hierarchy? As in, I know that Mar 2023
should be a child of Q1 2023
which in turn is a child of FY 2023
. Is that explicitly in a model?michoel
10/18/2023, 12:17 AMaccountingPeriodFiscalCalendars
Avy Faingezicht
10/18/2023, 12:18 AM.parent
without joining but this works
SELECT
AccountingPeriod.ID,
AccountingPeriod.PeriodName,
ParentPeriod.ID AS ParentPeriodID,
ParentPeriod.PeriodName AS ParentPeriodName,
AccountingPeriod.StartDate,
AccountingPeriod.EndDate,
AccountingPeriod.IsPosting,
AccountingPeriod.IsAdjust,
AccountingPeriod.AllLocked,
AccountingPeriod.ARLocked,
AccountingPeriod.APLocked,
AccountingPeriod.AllowNonGLChanges,
AccountingPeriod.LastModifiedDate,
AccountingPeriod.Closed,
AccountingPeriod.ClosedOnDate
FROM
AccountingPeriod
INNER JOIN AccountingPeriod AS ParentPeriod ON
( ParentPeriod.ID = AccountingPeriod.Parent )
https://timdietrich.me/blog/netsuite-suiteql-accounting-periods/michoel
10/18/2023, 12:19 AMSearch error occurred: Field 'Parent' for record 'accountingPeriod' was not found. Reason: REMOVED - Field is removed
when I run that queryAvy Faingezicht
10/18/2023, 12:20 AMmichoel
10/18/2023, 12:20 AMAvy Faingezicht
10/18/2023, 12:21 AMDavid B
10/18/2023, 12:43 AMAccountingPeriod
record type in your queries. As of 2023.2, the parent field of the AccountingPeriod
record type is available only if the Multiple Calendars feature is disabled. If the Multiple Calendars feature is enabled, use the parent field of the AccountingPeriodFiscalCalendars
record type instead.