hey all - I have a script which retrieves bill pay...
# suitescript
c
hey all - I have a script which retrieves bill payments and all the associated bills using the applied to link type. However, on a bill payment there is a “credits applied” as well. I’d like to be able to retrieve the vendor credits associated with my bill payments as well. I can’t seem to find which field(s) I use to retrieve the Credits Applied?
b
you will have to do it via a search or query
the data accessed when loading a record with the record module corresponds to an edit in the ui, which does not have that data
c
That’s interesting I guess I didn’t realize or forgot about that part. So for vendor credits I would have to do a separate search based on say, the vendor id or something to pull their vendor credits.
b
more specific would be the credits applied to the vendor bill
c
Yes, that makes sense. Thanks for the guidance!