Hello, I want to get the related PO from a SO but ...
# suitescript
i
Hello, I want to get the related PO from a SO but I have no idea how to get it, for example, I can get the SO from an Item Fulfillment through the "Created From " field, but I have no idea how to get the PO on the SO that is under the Related Records -> Related Purchase Orders, the thing is I need to get some information from all this 3 records (IF, SO and PO), what Im doing right now is get the IF id, then lookup the fields that I need, then another lookuo for the SO but I got stuck with the PO. Any ideas?
b
use the applying transaction join
do a search on sales order, add a filter to limit the applying link type to the types of transactions you are interested in
if you are doing drop shipments, you can also do a search on item fulfillments and use applied to transaction to get the related sales order and purchase orders
i
Awesome, thanks @battk!!
p
If you start the search from the PO, you can go both ways SO<---PO--->IF