Installing a Mapping Type
You can install a mapping type definition by invoking the customscript_uma_sl_map_type_installer Suitelet provided by the Universal Mapping Assistant SuiteApp, as shown in the following example.
import * as NsHttps from 'N/https';
async function installMappingTypes() {
await NsHttps.requestSuitelet.promise({
scriptId: 'customscript_uma_sl_map_type_installer',
deploymentId: 'customdeploy_uma_sl_map_type_installer',
body: JSON.stringify({
// Insert the definition here.
})
});
}