- We are facing an issue while creating Vendor Prepayment transactions through a custom Suitelet.
- Our current setup and scenario:
- We have developed a custom Suitelet that runs with Administrator privileges.
- On the Suitelet, the Created By field displays the Employee list when accessed through the Administrator role and the Partner list when accessed through the Partner role.
- Through this Suitelet, we are creating Vendor Prepayment transactions using the Partner role.
- While saving the Vendor Prepayment transaction, we are trying to set the Created By field with the Partner's internal ID.
- However, NetSuite throws an Invalid Reference error because the Created By field appears to accept Employee references rather than Partner references.
- Has anyone faced a similar issue?
- Could this be a NetSuite defect or a limitation in the standard field behaviour?
I did workaround of new field creation where partner sourcing.