【问题标题】:How to create a vendor record from a customer record? and attach it to "other relationship" field by SuiteScript?如何从客户记录创建供应商记录?并将其附加到 SuiteScript 的“其他关系”字段?
【发布时间】:2022-08-18 00:41:51
【问题描述】:

我正在提交脚本后在用户事件中创建客户记录。之后,我需要在客户记录的关系选项卡的other relationship 字段中创建并附加同名的供应商记录。 谁能指导我如何做到这一点?

    标签: netsuite suitescript suitescript2.0


    【解决方案1】:

    对此有一个套件回答主题 74233。

    简而言之:

        recid = 5; //current Lead Id
        // Get Domain from URL Module . URL Module supports absolute path, compared to SS 1.0 where the relative path was used
        var domain = 'https://';
        domain += url.resolveDomain({hostType:url.HostType.APPLICATION, accountId:runtime.accountId});
        var sample_url = '/app/common/entity/company.nl?e=T&target=s_relation:otherrelationships&
        label=Other+Relationships&fromtype=custjob&id=' + recid + '&totype=vendor';
        var response = https.request({method: https.Method.GET ,url: sample_url });
    

    【讨论】:

      猜你喜欢
      • 2022-01-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-02-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多