Hello, everybody! :wave: Does anybody know if it'...
# suitescript
a
Hello, everybody! πŸ‘‹ Does anybody know if it's possible to set multiple subsidiaries on a customer record?
m
Once a transaction has posted for the entity or job, you are not able to change the subsidiary selected on the entity or job record.
a
Hello. I need to set multiple subsidiaries at the moment of creation by a Map/Reduce script
m
You can only select one Subsidiary (or the parent sub.)
p
you need to enable the feature to allow multiple subsidiaries to be selected on a customer record
🀯 1
a
Phillip, that feature is currently enabled. The problem is that I'm trying to set up more than one subsidiary by script. I can't reach the 'Subsidiary' sublist to get or set new values
This one πŸ‘‡
message has been deleted
believe he is referring to this.
p
whats the error you get when trying with an after submit script?
a
Yup, I've already checked that feature and it's on
p
and are you loading the record. since its a sublist you would need to load the record to update the submit
I am unsure if the subsidiary sublist is available through scripting
a
Well, the thing is that I'm trying to set those values on a 'reduce' stage of a Map/Reuce script at the moment of record.create
I think it is not available
p
I would try setting it aftersubmit
a
I couldn't find it
I don't even know the internal ID of that sublist
p
go into your sandbox. add another subsidiary and save the record
you should be able to get the sublist id by looking at the xml of the customer record
a
I tried to access to the 'submachine' sublist. It seems that that's the one to set
p
what the error you get?
a
I just get nothing
p
I would post your code to suitescript
and ask there
a
I will! Thanks for your help guys πŸ˜€
s
It’s not a regular Sublist. Look at the Customer Subsidiary Relationship record - you have to add a new one of those to link a Customer to a Subsidiary.