https://netsuiteprofessionals.com logo
a

ahmed saeed moawoad elmasry

04/26/2022, 11:09 AM
Hi all, is there anyway to access the credits applied subtab in the customer payment or bill payment transaction?
b

battk

04/26/2022, 11:33 AM
closest reasonable solution is to do a search on the bill or invoice so you can use the applying transaction
an unreasonable solution is to use the fact that Standard Customer Payment PDF/HTML Template has access to the credits sublist so you can use render.transaction to print the payment as html and then parse the html to get the credits
you wont find anything to set those sublists
a

ahmed saeed moawoad elmasry

04/26/2022, 11:49 AM
No. only on the creation mode
the unreasonable solution 😄 will work on server side scripts? if I need to extract all credits data and set it to a custom body field as array of objects. will creating a user event script and trigger it will populate those data? thanks for your spport
b

battk

04/26/2022, 11:54 AM
you have more options if you do it in a user event script
the view context of a beforeLoad user event script also has access to the credits sublist
a

ahmed saeed moawoad elmasry

04/26/2022, 11:58 AM
mass update trigger the user-event scripts. will trigger before load script right?
b

battk

04/26/2022, 11:58 AM
no, thats not a view
a

ahmed saeed moawoad elmasry

04/26/2022, 12:07 PM
Okay, thank you so much