I just had an internal request on how to script the new built-in transaction status list on records and search and thought I would share the findings. The basic problem is that the new built-in list for transaction status contains all the transaction statuses in the system (i.e. Sales Order: Pending Fulfillment, Expense Report: Pending Accounting Approval, etc..) but there is no way to determine what the SuiteScript search filter value is for a given transaction status returned from the built-in transaction status list. Furthermore there is no way to determine what the corresponding "Order Status" value is on the sales order record (for example) for a given sales order status returned from the transaction status (or order status) built-in list.
In the long-term we will be adding search ID and record ID fields to the built-in transaction status record which will allow you to source these values from the selected transaction status (or order status or shipping status) built-in list selection.
In the meantime as a workaround you can build a lookup table in Javascript (or using a custom record) that maps each entry in the transaction status dropdown using the following table:
133 Assembly Build : Undefined Y Build:Y 134 Assembly Unbuild : Undefined Y Unbuild:Y 92 Bill : Open A VendBill:A 93 Bill : Paid In Full B VendBill:B 94 Bill : Undefined Y VendBill:Y 105 Bill CCard : Undefined Y VendCard:Y 106 Bill Credit : Undefined Y VendCred:Y 65 Bill Payment : Online Bill Pay Pending Accounting Approval Z VendPymt:Z 120 Bill Payment : Undefined Y VendPymt:Y 121 Bill Payment : Voided V VendPymt:V 100 Bin Putaway Worksheet : Undefined Y BinWksht:Y 101 Bin Transfer : Undefined Y BinTrnfr:Y 108 CCard Refund : Undefined Y CardRfnd:Y 112 Cash Refund : Undefined Y CashRfnd:Y 74 Cash Sale : Deposited C CashSale:C 73 Cash Sale : Not Deposited B CashSale:B 72 Cash Sale : Unapproved Payment A CashSale:A 75 Cash Sale : Undefined Y CashSale:Y 62 Check : Online Bill Pay Pending Accounting Approval Z Check:Z 63 Check : Undefined Y Check:Y 64 Check : Voided V Check:V 148 Commission : Overpaid O Commissn:O 147 Commission : Paid in Full X Commissn:X 145 Commission : Pending Accounting Approval P Commissn:P 146 Commission : Pending Payment A Commissn:A 149 Commission : Rejected by Accounting R Commissn:R 150 Commission : Undefined Y Commissn:Y 107 Credit Card : Undefined Y CardChrg:Y 96 Credit Memo : Fully Applied B CustCred:B 95 Credit Memo : Open A CustCred:A 97 Credit Memo : Undefined Y CustCred:Y 135 Currency Revaluation : Undefined Y FxReval:Y 115 Customer Deposit : Deposited B CustDep:B 116 Customer Deposit : Fully Applied C CustDep:C 114 Customer Deposit : Not Deposited A CustDep:A 117 Customer Deposit : Undefined Y CustDep:Y 118 Customer Refund : Undefined Y CustRfnd:Y 119 Customer Refund : Voided V CustRfnd:V 71 Deposit : Undefined Y Deposit:Y 113 Deposit Application : Undefined Y DepAppl:Y 82 Estimate : Closed C Estimate:C 84 Estimate : Expired X Estimate:X 80 Estimate : Open A Estimate:A 81 Estimate : Processed B Estimate:B 85 Estimate : Undefined Y Estimate:Y 83 Estimate : Voided V Estimate:V 7 Expense Report : Approved (Overridden) by Accounting G ExpRept:G 6 Expense Report : Approved by Accounting F ExpRept:F 1 Expense Report : In Progress A ExpRept:A 9 Expense Report : Paid In Full I ExpRept:I 3 Expense Report : Pending Accounting Approval C ExpRept:C 2 Expense Report : Pending Supervisor Approval B ExpRept:B 8 Expense Report : Rejected (Overridden) by Accounting H ExpRept:H 5 Expense Report : Rejected by Accounting E ExpRept:E 4 Expense Report : Rejected by Supervisor D ExpRept:D 10 Expense Report : Undefined Y ExpRept:Y 98 Inventory Adjustment : Undefined Y InvAdjst:Y 103 Inventory Distribution : Undefined Y InvDistr:Y 102 Inventory Transfer : Undefined Y InvTrnfr:Y 99 Inventory Worksheet : Undefined Y InvWksht:Y 86 Invoice : Open A CustInvc:A 87 Invoice : Paid In Full B CustInvc:B 88 Invoice : Undefined Y CustInvc:Y 131 Item Fulfillment : Packed B ItemShip:B 130 Item Fulfillment : Picked A ItemShip:A 132 Item Fulfillment : Shipped C ItemShip:C 104 Item Receipt : Undefined Y ItemRcpt:Y 68 Journal : Approved for Posting B Journal:B 67 Journal : Pending Approval A Journal:A 69 Journal : Undefined Y Journal:Y 111 Liability Adjustment : Undefined Y LiaAdjst:Y 139 Opportunity : Closed - Lost D Opprtnty:D 138 Opportunity : Closed - Won C Opprtnty:C 136 Opportunity : In Progress A Opprtnty:A 137 Opportunity : Issued Estimate B Opprtnty:B 155 Paycheck : Committed F Paycheck:F 153 Paycheck : Pending Commitment D Paycheck:D 152 Paycheck : Pending Tax Calculation C Paycheck:C 154 Paycheck : Preview P Paycheck:P 151 Paycheck : Reversed R Paycheck:R 109 Paycheck : Undefined Y Paycheck:Y 156 Paycheck : Undefined A Paycheck:A 78 Payment : Deposited C CustPymt:C 77 Payment : Not Deposited B CustPymt:B 76 Payment : Unapproved Payment A CustPymt:A 79 Payment : Undefined Y CustPymt:Y 110 Payroll Adjustment : Undefined Y YtdAdjst:Y 124 Payroll Liability Check : Undefined Y LiabPymt:Y 125 Payroll Liability Check : Voided V LiabPymt:V 60 Purchase Order : Closed H PurchOrd:H 59 Purchase Order : Fully Billed G PurchOrd:G 56 Purchase Order : Partially Received D PurchOrd:D 58 Purchase Order : Pending Bill F PurchOrd:F 57 Purchase Order : Pending Billing/Partially Received E PurchOrd:E 54 Purchase Order : Pending Receipt B PurchOrd:B 53 Purchase Order : Pending Supervisor Approval A PurchOrd:A 55 Purchase Order : Rejected by Supervisor C PurchOrd:C 61 Purchase Order : Undefined Y PurchOrd:Y 37 Return Authorization : Cancelled C RtnAuth:C 42 Return Authorization : Closed H RtnAuth:H 38 Return Authorization : Partially Received D RtnAuth:D 35 Return Authorization : Pending Approval A RtnAuth:A 36 Return Authorization : Pending Receipt B RtnAuth:B 40 Return Authorization : Pending Refund F RtnAuth:F 39 Return Authorization : Pending Refund/Partially Received E RtnAuth:E 41 Return Authorization : Refunded G RtnAuth:G 43 Return Authorization : Undefined Y RtnAuth:Y 163 Revenue Commitment : Undefined Y RevComm:Y 164 Revenue Commitment Reversal : Undefined Y RevComRv:Y 17 Sales Order : Billed G SalesOrd:G 13 Sales Order : Cancelled C SalesOrd:C 18 Sales Order : Closed H SalesOrd:H 14 Sales Order : Partially Fulfilled D SalesOrd:D 11 Sales Order : Pending Approval A SalesOrd:A 16 Sales Order : Pending Billing F SalesOrd:F 15 Sales Order : Pending Billing/Partially Fulfilled E SalesOrd:E 12 Sales Order : Pending Fulfillment B SalesOrd:B 19 Sales Order : Undefined Y SalesOrd:Y 66 Sales Tax Payment : Online Bill Pay Pending Accounting Approval Z TaxPymt:Z 122 Sales Tax Payment : Undefined Y TaxPymt:Y 123 Sales Tax Payment : Voided V TaxPymt:V 89 Statement Charge : Open A CustChrg:A 90 Statement Charge : Paid In Full B CustChrg:B 91 Statement Charge : Undefined Y CustChrg:Y 128 Tax Liability Cheque : Undefined Y TaxLiab:Y 129 Tax Liability Cheque : Voided V TaxLiab:V 170 Tegata Payable : Endorsed E TegPybl:E 169 Tegata Payable : Issued I TegPybl:I 171 Tegata Payable : Paid P TegPybl:P 166 Tegata Receivable : Collected C TegRcvbl:C 167 Tegata Receivable : Discounted D TegRcvbl:D 168 Tegata Receivable : Endorsed E TegRcvbl:E 165 Tegata Receivable : Holding H TegRcvbl:H 70 Transfer : Undefined Y Transfer:Y 33 Transfer Order : Closed