How do I get all sales orders that have a "pending...
# suitetalkapi
h
How do I get all sales orders that have a "pending approval" status using the
netsuite
Ruby gem? Trying to work with the
TransactionSearchBasic
.
approvalStatus
field here, but can't seem to find the correct value:
Copy code
{
            field: 'approvalStatus',
            operator: 'anyOf',
            value: ['_pendingApproval'],
          },
yields 0 results. while
Copy code
{
            field: 'approvalStatus',
            operator: 'noneOf',
            value: ['Lady Gaga'],
          },
returns all sales orders. I also tried "Pending Approval" -- it doesn't work either.
m
@hdeshev please submit a PR to the gem's documentation so we can provide examples for this sort of thing for other folks 🙂