友空间预警消息

  • 沙箱暂不支持、demo为生产环境

1、在函数设计页面

图2

 let AbstractTrigger = require('AbstractTrigger');
 class MyTrigger extends AbstractTrigger {
     execute(context, param) {
         var uspaceReceiver = ["cb5cd80d-b57b-447e-a64c-511ece15792b"];
         var channels = ["uspace"];
         var title = "友空间预警消息";
         var content = "友空间预警消息-GXG-验证";

         var messageInfo = {
             'sysId': 'diwork',
             'tenantId': 'x73uqmdb',
             'uspaceReceiver': uspaceReceiver,
             'channels': channels,
             'subject': title,
             'content': content,
             'groupCode': 'prewarning'
         };
         var result = sendMessage(messageInfo);
     }
 }
 exports({
     "entryPoint": MyTrigger
 });

2、结果验证

图3

Copyright © 用友 -【生态技术部】 2021 all right reserved,powered by Gitbook修订时间: 2022-01-18 14:55:15

results matching ""

    No results matching ""