I'm looking to access the related record with Suit...
# suiteql
s
I'm looking to access the related record with SuiteQL. In fact, we have one IF per SO. How can I get there
s
NextTransactionLineLink table. previoustype = 'SalesOrd' and nexttype = 'ItemShip'
s
I will try it. thank you very much
a
You can also query the
createdfrom
field on the IF record
mainline
.
Copy code
SELECT salesorder.tranid, itemfullfilment.tranid

FROM transaction as itemfullfilment 

inner join transactionline as itemfullfilmentmainline 
on itemfullfilmentmainline.transaction = itemfullfilment.id and itemfullfilmentmainline.mainline = 'T' 

INNER JOIN transaction as salesorder on salesorder.id = itemfullfilmentmainline.createdfrom
s
Nice
Thanks