Has anyone been able to work with the ‘otherrelationships’ field on Entity records via Server-Side SuiteScript?
SA: 74233 suggests that we call an application URL which requires session information.
SA 85880 suggests that we create a new user and pass a NLAuth header with a custom role.
Seems like a good candidate for an enhancement to record.transform()
a
Agustin Aste
02/15/2020, 1:53 PM
""SA 85880 suggests that we create a new user and pass a NLAuth header with a custom role."" Following ths approach worked for me, if you want further details you can DM me.
s
suitedev
02/15/2020, 3:20 PM
Thanks @Agustin Aste! I really dislike the idea of making a http request with a bogus user/header.
I was actually able to use record.transform successfully, as long as I use ignoreMandatoryFields on save, it works!