使用nodejs代码在SAP C4C里创建Individual customer

105 阅读1分钟
原文链接: yq.aliyun.com

需求:使用nodejs代码在SAP Cloud for Customer里创建Individual customer实例。

代码:

var createAndBind = require('../jerryapp/service/createAccountinC4C.js');

createAndBind("o0KlM1i2_4-zHRmDk-IWGRlA1Cjc");

上述代码基于微信open IDo0KlM1i2_4-zHRmDk-IWGRlA1Cjc在系统里创建一个Individual customer。

createAccountinC4C.js的具体实现在Jerry的github上:

github.com/i042416/wec…

在命令提示行里输入命令node createAccountAndSocialProfile.js:

上述代码会自动在系统里创建Individual customer,并打印出ID:

本文来自云栖社区合作伙伴“汪子熙”,了解相关信息可以关注微信公众号"汪子熙"。