Can anyone spot what might be wrong with this quer...
# suiteql
a
Can anyone spot what might be wrong with this query? I am getting the helpful
Invalid or unsupported search
error. I do not get the error until I add the join with `TrackingNumber`:
Copy code
SELECT Transaction.ID, TrackingNumber.trackingnumber
FROM Transaction 
INNER JOIN TransactionLine ON TransactionLine.Transaction = Transaction.ID
INNER JOIN TrackingNumber ON TrackingNumber.ID = Transaction.trackingnumberlist 
WHERE TransactionLine.CreatedFrom = '4048581' AND Transaction.Type = 'ItemShip'
Again, answered my own question, sort of. The
BUILTIN.DF
method gets me the data I want:
Copy code
SELECT Transaction.ID, BUILTIN.DF(Transaction.trackingnumberlist) as TrackingNumberList
  FROM Transaction
  WHERE Transaction.Type = 'ItemShip' 
    AND Transaction.ID = 4048681
However, it would still be nice to know why the join doesn't work
t
@Aaron Lozier This is rough, but it shows the joins that are needed to get from an item fulfillment down to the shipments and packages:
Copy code
SELECT 
	Transaction.ID,
	Transaction.TranID,
	Transaction.TranDate,
	BUILTIN.DF( Transaction.Entity ) AS Entity,
	TransactionShipment.*,
	ShipmentPackage.TrackingNumber
FROM 
	Transaction
	INNER JOIN TransactionShipment ON
		( TransactionShipment.Doc = Transaction.ID )
	INNER JOIN ShipmentPackage ON
		( ShipmentPackage.ItemFulfillment = Transaction.ID )
 WHERE 
	Transaction.Type = 'ItemShip' 
	AND RowNum < 10
👏 1