NickSuite
04/29/2025, 12:40 PMImad
04/30/2025, 7:54 AMSelcuk Dogru
05/06/2025, 8:08 PMLEFT JOIN NextTransactionLineLink NTLIR ON TL.id = NTLIR.previousline AND TL.transaction = NTLIR.previousdoc AND BUILTIN.DF(NTLIR.nextType) = 'Item Receipt'
jen
05/08/2025, 7:23 PM/app/common/custom/itemoptions.nl
? This order controls what order they appear in on the transaction item line. I already have a M/R script running to store the connection between the ItemOptions and their Items (the only way I found to do this is to literally do a record.load on each item and retrieve the value in the multiselect itemoptions
field) so I know from my DB which options below to which items, but now I need to know what order to list them in…. Pinging @tdietrich just in case….Selcuk Dogru
05/09/2025, 1:32 PMBUILTIN.DF(PTL1.previousDoc)
result count is decreased to 1023 with only lines where there is value.
SELECT DISTINCT
T.tranid,
PTL1.previousDoc
FROM TransactionLine TL
LEFT JOIN Transaction T ON T.id = TL.transaction
LEFT JOIN PreviousTransactionLink PTL1 ON TL.transaction = PTL1.nextDoc
WHERE TL.quantity > 0 AND TL.item <> '32607' AND TL.taxLine ='F' AND TL.mainLine = 'F' AND BUILTIN.DF(T.type) = 'Purchase Order' AND TL.subsidiary = '74'
Venkat
05/10/2025, 3:59 PMRyan
05/13/2025, 12:57 AMjen
05/15/2025, 5:42 PMWatz
05/22/2025, 6:34 AMChris
05/22/2025, 2:53 PMselect t.id, t.createddate, cc.transactionline, cc.standardcost
from transaction t
inner join TransactionAccountingLineCostComponent cc on cc.transaction = t.id
where t.id = 84064869
and t.recordtype = 'inventorycostrevaluation'
It returns this:
[
{
"id": 84064869,
"createddate": "4/29/2025",
"transactionline": 1,
"expr1": 160.54666055666667
},
{
"id": 84064869,
"createddate": "4/29/2025",
"transactionline": 2,
"expr1": 160.37890055666668
}
]
If I add a where
clause condition like this and cc.transactionline = 2
I get no results. The data is clearly there, why won't it filter on results that are readily available?Synx
05/22/2025, 6:09 PMAva
05/27/2025, 5:36 PMCory Weiner
05/28/2025, 3:47 PMChris
06/02/2025, 2:31 PMinventorycostrevaluation
record type?karlenigma
06/04/2025, 5:10 PMDavid Na
06/05/2025, 7:48 AMThe Usual Suspect
06/11/2025, 10:41 PMThe Usual Suspect
06/11/2025, 10:48 PMPF
06/12/2025, 6:37 PMJon Kears
06/13/2025, 1:37 AMselect CURRENT_TIMESTAMP AS report_date, * FROM accountingperiod
The output I get is as pictured. CURRENT_TIMESTAMP gets resolved to a date, not to a datetime. Is there a way to get full datetime output, similar to e.g. createddate in saved searches?Armanda
06/17/2025, 3:43 AMNElliott
06/24/2025, 10:54 AMBUILTIN_RESULT.TYPE_DATETIME(CUSTOMRECORD_STA_EMPLOYEE_REGISTER.custrecord_sta_emp_regi_shift_start) AS shift_start,
In Analytics, on a Dataset, you can use a formula...
I have tried to extract the time difference between two of these fields and this is the only valid formula of maaaaaany that I've tried that "validates"
(
(EXTRACT(HOUR FROM {custrecord_sta_emp_regi_shift_end}) * 3600 +
EXTRACT(MINUTE FROM {custrecord_sta_emp_regi_shift_end}) * 60 +
EXTRACT(SECOND FROM {custrecord_sta_emp_regi_shift_end}))
-
(EXTRACT(HOUR FROM {custrecord_sta_emp_regi_shift_start}) * 3600 +
EXTRACT(MINUTE FROM {custrecord_sta_emp_regi_shift_start}) * 60 +
EXTRACT(SECOND FROM {custrecord_sta_emp_regi_shift_start}))
)
However, it throws an error: "There was a problem loading your data. Please refine your query or try again later."
If I plug this in to a query string and run it using the Query Tool it hates it.
Does anyone know any funky way to achieve what I'm attempting? (seconds difference between two TIMEOFDAY fields)
Incidentally the output without the formula looks like the attached image.
I can of course just write a function in my script to extract the time difference but it seems a shame! 😄Sim Greenbaum
06/24/2025, 6:23 PMlet sql = `
SELECT
transaction.id,
transaction.type,
transaction.trandate,
transaction.memo,
transaction.status,
transaction.custbody19,
transaction.transferLocation
FROM
transaction
WHERE
transaction.type = 'TrnfrOrd'
AND transaction.trandate < ADD_MONTHS(SYSDATE, -7)
`;
log.debug("SuiteQL SQL", sql);
let mySuiteQLQuery = query.runSuiteQL({ query: sql });
let results = mySuiteQLQuery.asMappedResults();
log.debug("Query Results", results);
Michael Gallivan
07/02/2025, 8:16 PMMichael A
07/14/2025, 8:55 PMJay Jetley
07/16/2025, 1:29 PMtaxrate1
on transactionLine
but in SuiteQL the same query gives the following error
Field 'taxrate1' for record 'transactionLine' was not found. Reason: NOT_EXPOSED - Field is marked as internal for channel SEARCH
Assuming it's not possible to get them behave the same does anyone know how I can get taxrate1 at a transaction line level from within SuiteQL?braie
07/21/2025, 10:14 PMRon
08/04/2025, 1:46 PMKen
08/05/2025, 11:36 PMRahul Bhatnagar
08/11/2025, 4:58 PMSELECT
AmortizationSchedule.ID AS ScheduleID,
BUILTIN.DF(AmortizationSchedule.Name) AS ScheduleName,
AmortizationSchedule.Status AS ScheduleStatus,
AmortizationSchedule.StartDate,
AmortizationSchedule.TotalAmount AS ScheduleTotalAmount,
AmortizationSchedule.TotalAmortized AS ScheduleTotalAmortized,
TransactionLine.LineSequenceNumber,
TransactionLine.Memo,
TransactionLine.Amount,
Transaction.TranID,
Transaction.Type AS TransactionType,
BUILTIN.DF(TransactionAccountingLine.Account) AS GLAccount,
TransactionAccountingLine.Debit,
TransactionAccountingLine.Credit
FROM AmortizationSchedule
INNER JOIN TransactionLine ON
(TransactionLine.AmortizationSched = AmortizationSchedule.ID)
INNER JOIN Transaction ON
(Transaction.ID = TransactionLine.Transaction)
INNER JOIN TransactionAccountingLine ON
(TransactionAccountingLine.Transaction = Transaction.ID)
WHERE Transaction.Trandate >= ADD_MONTHS(CURRENT_DATE, -1)
ORDER BY Transaction.Trandate DESC, AmortizationSchedule.ID, TransactionLine.LineSequenceNumber
Field 'TotalAmortized' for record 'AmortizationSchedule' was not found. Reason: NOT_EXPOSED - Not available for channel SEARCH