Is there any way to modify properties of a custom ...
# suitescript
j
Is there any way to modify properties of a custom transaction (custbody) field in SuiteScript without knowing the internal ID? I noticed there is no way to search for type 'transactionbodycustomfield', but that you can load a record of that type if you have the internal ID. I need to find a way to modify properties when only the script ID is known for a field if possible, does anyone have any idea on if that could be possible?
b
query the custom field type definition by scriptid and get the matching internal id
👍 1
j
Great, thanks!
b
its also very weird to actually want to modify custom fields
j
It's for a bundle installation script in which the sourcefrom for a hidden field may be invalid depending upon the environment