Hi all,
I am having an issue where the "Department" and "Location" fields aren't populating in a user's login context if that user is a Partner (Advanced Partner Centre). I've looked through other questions, but couldn't find anything referencing my problem, so I apologise if this has been asked before.
To confirm the setup, going to Setup => Users/Roles => Manage Users, and selecting a Partner user, we have associated that Partner with a specific Department and Location - by filling in the Department and Location fields on the Partner record (just like you would do with a standard User record).
However, when logging in as that Partner, executing "nlapiGetContext()" in the browser console returns the correct Partner details, except the Department and Location properties, which return "0". This is mirrored in all other SuiteScript 1.0 and 2.x scripts/functions that use the Runtime module, as well as causing any workflows that use "User Department" as a condition failing to run properly.
I have reached out to NetSuite support, but they said it worked on their test account, and so directed me here instead.
Sorry for the long description, I'm happy to provide any more detail if required, and appreciate any input people could provide on what I might be doing wrong?
Thanks in advance!
Matt