Anybody know how to run a search to get the Memo f...
# suitescript
n
Anybody know how to run a search to get the Memo field from a payment card/CC/Payment Instruments??
j
Are you sure that record is even searchable at all? Schema/Browser has it highlighted in green and in Help I don't see an Enum for that record under search.Type
n
@jarens yeah i noticed all that but trying to figure out a way. Just wanted to get the value of the memo field but may not be able to
j
Yeah, only way I can think to do this is to save the identifier for the payment card in a custom record with a duplicate of the memo. Since record.PAYMENT_CARD is an enum for the record module, you should be able to script it. I wonder if you can record.load and then record.getValue()? Instead of search... not sure it that fits your use case though, if you need a lookup of the id or something.
n
Figured it out @jarens. Had to load the "paymentcard" record and then just use getValue to pull the memo field