Hey, I am writing a MR that references the default intercompany accounts that are set as part of the Intercompany Framework or Automated Intercompany Management Feature. I currently have them set as script parameters but I was wondering if they are accessible using N/config or N/runtime. When i run the code below, the value that is returned is a url. I was curious if anyone had dealt with this and what they did to solve it.
const accountingPreferences = config.load({
type: config.Type.ACCOUNTING_PREFERENCES,
});
log.debug(
"accounting preferences",
accountingPreferences.getValue({
fieldId: "intercompanypreferences",
})
);
debug result : /app/setup/intercompanypreferences.nl