When a user event script executes before load on the print context on a vendor bill payment with credits applied, it usually provides access to the "credit" sublist in the scriptContext.newRecord parameter - however, I just found one account where it's not available and have no idea why. Any ideas why?
s
Sandii
10/22/2020, 3:50 PM
Permission problem maybe, is it running with elevated permissions and what role is the person where its unable to access this list.
s
Seth Duda
10/22/2020, 3:52 PM
Doesn't appear to be permission related unfortunately - seeing this as admin. However, I just changed form associated to the payment and it appeared in the available sublsits. I think I'm getting somewhere now...
s
Sandii
10/22/2020, 3:52 PM
Yep sounds like the right path then (and also annoying)
s
Seth Duda
10/22/2020, 4:04 PM
Ah so annoying - the credit sublist is only available when the form uses advanced pdf templates for printing. Doesn't work when using the basic pdf layout.