有没有办法使用SuiteScript 2.0实现NetSuite GL Lines插件?

时间:2016-05-25 16:08:07

标签: plugins netsuite suitescript

有没有办法使用SuiteScript 2.0实现NetSuite GL Lines插件?

此代码不起作用。当我尝试在NetSuite中创建一个插件实现时,我选择了脚本文件但是它找不到任何插件类型供我选择。

如果我可以在SS2中做所有事情,那么会节省我的时间。

var addedRecipients =
    from oldEmail in oldEmailRecipients
    let hasEmail1 = !string.IsNullOrWhiteSpace(oldEmail.EmailAddress1)
    let hasEmail2 = !string.IsNullOrWhiteSpace(oldEmail.EmailAddress2)
    where hasEmail1 || hasEmail2
    let emailUserNameCombos = hasEmail1 && hasEmail2
        ? new[]
        {
            new {Email = oldEmail.EmailAddress1, oldEmail.UserName},
            new {Email = oldEmail.EmailAddress2, oldEmail.UserName}
        }
        : hasEmail1
            ? new[] {new {Email = oldEmail.EmailAddress1, oldEmail.UserName}}
            : new[] {new {Email = oldEmail.EmailAddress2, oldEmail.UserName}}
    from emailUsername in emailUserNameCombos
    select new EmailRecipient 
        {
            UserName = emailUsername.UserName,
            EmailAddress = emailUsername.Email
        };

1 个答案:

答案 0 :(得分:0)

我认为您正在实施SuiteGL。您现在应该使用SS1.0来实现它。 SS2.0中没有可用的模块,允许您访问标准和自定义行。可用的插件实现可用于自定义SuiteApp。也许NS将在未来版本中发布用于SuiteGL的等效SS2.0。