使用nodejs程式碼在SAP C4C裡建立Individual customer

i042416發表於2019-01-15

需求:使用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上:

https://github.com/i042416/wechat/blob/master/jerryapp/service/createAccountInC4C.js

在命令提示行裡輸入命令node createAccountAndSocialProfile.js:

上述程式碼會自動在系統裡建立Individual customer,並列印出ID:

使用nodejs程式碼在SAP C4C裡建立Individual customer
使用nodejs程式碼在SAP C4C裡建立Individual customer
使用nodejs程式碼在SAP C4C裡建立Individual customer

要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":

使用nodejs程式碼在SAP C4C裡建立Individual customer


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2558407/,如需轉載,請註明出處,否則將追究法律責任。

相關文章