Pretty noob scripting question here - I am attempt...
# suitescript
a
Pretty noob scripting question here - I am attempting to setup set a sublist value based on the department set on the sublist (would use sourcing on the field, but not working on web services context/cant set the field with a sublist workflow). I have the desired field set on the department record, how do I access the field from the department record?
t
Are you trying to set a custom field on a sublist with a value you want to source from its department or is this a native field?
a
Custom field - custom segment to be exact. SuiteAnswers says this is possible with workflow but I can't get it to work, this is on an expense report for additional context
Department drives custom segment value, custom segment has been configured as a field on the department
var QualExp = Department.getField({
                
fieldId: 'cseg_ghr_qualexp'
            
});
this was my attempt
t
on the custom field you can do sourcing though I would think?
Yeah can you specify your field here?
@Alex K