文章系列目录

  • Wechat development series 1 – setup your development environment
  • Wechat development series 2 – development Q&A service using nodejs
  • Wechat development series 3 – Trigger C4C Account creation in Wechat app
  • Wechat development series 4 – Send C4C Data change notification to Wechat app
  • Wechat development series 5 – embedded your UI5 application to Wechat app
  • Wechat development series 6 – Retrieve Wechat User info via oAuth2 and display it in UI5 application
  • Wechat development series 7 – use Redis to store Wechat conversation history
  • Wechat development series 8 – Map integration
  • Wechat development series 9 – Create C4C Social Media Message and Service within Wechat app
  • Wechat development series 10 – Use Wechat app to receive Service Request reply made from C4C

In previous blog Wechat development series 9 – Create C4C Social Media Message and Service within Wechat app it is already achieved that Wechat user can directly talk to the subscription account in Wechat app and a new Service Request ( and a social media message ) will automatically be created in C4C system under custom channel created for Wechat.

With this message ID 59189 we can find its associated Service Request:

It comes very naturally that once a C4C agent replies this Service Request in the system, the reply will not only appear in C4C UI:


but also directly pushed to end user’s Wechat app:

Implementation detail

(1) Create a new Mashup service with type “REST Service”:

Maintain the following settings:

When the service request is replied in C4C, a json string will be sent to the url configured in this Mashup service ( http://wechatjerry.herokuapp.com/fromc4c ) by a HTTP Post. The json string contains the ID of original social media message created when the end user sent the text to Wechat app in the beginning.

Assign this Mashup service to your custom channel for Wechat created in previous blog.

(2) React to the HTTP Post request in your nodejs server by adding a new route for url /fromc4c, which is configured in your Mashup service done in previous step.

The following logics are done in this module:
(1) get social media message detail based on message ID from payload sent from C4C system
(2) The social media user profile ID is stored as a field of message detail fetched from Step 1.

Get user profile detail data based on its ID.
(3) The ID of Wechat user who has initially sent the text to C4C system is contained in social media
user profile detail data. With this ID available now we can call module postMessageToUser to send
the text maintained in C4C system to user’s Wechat app.

These three steps are done in another three separate modules:

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

微信开发系列之十 - 在SAP C4C接收微信发送过来的服务请求回应相关推荐

  1. SAP UI5 应用开发教程之五十六 - SAP UI5 树控件(tree)的开发试读版

    一套适合 SAP UI5 初学者循序渐进的学习教程 教程目录 SAP UI5 本地开发环境的搭建 SAP UI5 应用开发教程之一:Hello World SAP UI5 应用开发教程之二:SAP U ...

  2. SAP UI5 应用开发教程之四十二 - SAP UI5 自带的 Diagnostics 诊断工具使用方法介绍

    一套适合 SAP UI5 初学者循序渐进的学习教程 教程目录 SAP UI5 本地开发环境的搭建 SAP UI5 应用开发教程之一:Hello World SAP UI5 应用开发教程之二:SAP U ...

  3. SAP UI5 应用开发教程之三十九 - SAP UI5 应用出现白屏的一些常见错误和分析方法分享试读版

    一套适合 SAP UI5 初学者循序渐进的学习教程 教程目录 SAP UI5 本地开发环境的搭建 SAP UI5 应用开发教程之一:Hello World SAP UI5 应用开发教程之二:SAP U ...

  4. SAP UI5 应用开发教程之三十四 - SAP UI5 应用基于设备类型的页面适配功能(Device Adaptation)试读版

    一套适合 SAP UI5 初学者循序渐进的学习教程 教程目录 SAP UI5 本地开发环境的搭建 SAP UI5 应用开发教程之一:Hello World SAP UI5 应用开发教程之二:SAP U ...

  5. php公众号获取code,微信开发系列——公众号内嵌H5页面获取code,拿到openID

    如果在微信客户端中访问第三方网页,公众号可以通过微信网页授权机制,来获取用户基本信息,进而实现业务逻辑. 我们要进行授权,先要经过用户授权(静默授权和授权页弹出授权两种,具体看文档中scope解析)拿 ...

  6. 微信开发系列之四 - 将SAP C4C的数据更改通知发送到微信公众号上

    文章系列目录 Wechat development series 1 – setup your development environment Wechat development series 2 ...

  7. Android-JNI开发系列《十》实践利用libjpeg-turbo完美压缩图片不失真

    人间观察 步入社会后,你会发现,老人说的话都是对的. 前面讲了些Android的jni知识和bitmap的实践,接下来几篇应该都是Android中jni的一些实践.这篇我们对Android中图片在jn ...

  8. BizTalk 开发系列(四十二) 为BizTalk应用程序打包不同的环境Binding

    更多内容请查看:BizTalk动手实验系列目录                       BizTalk 开发系列 我们在使用微软或者其他公司提供的BizTalk应用程序MSI包的时候经常会有一个目 ...

  9. BizTalk开发系列(三十四) Xpath

    更多内容请查看:BizTalk动手实验系列目录                       BizTalk 开发系列 XPath 是在 XML 文档中查找信息的语言,在BizTalk的开发中应用非常广 ...

最新文章

  1. Spring的Bean生命周期,11 张高清流程图及代码,深度解析
  2. “5G 消息”APP 短暂上线,它会干掉微信还是变成另一个飞信?
  3. scala运行的方式
  4. Oracle 原理: 过程和函数
  5. Windows命令行参数的知识(一)
  6. 服务器虚拟交换机到网卡不通,S7700堆叠,服务器之间相互ping不通,关闭备交换机ping正常...
  7. leetcode315. 计算右侧小于当前元素的个数(树状数组解法)
  8. [vc]如何对radio按钮分组
  9. 上海最帅交警迷倒一片女白领成为城市风景
  10. Qt程序等待/睡眠的正确方法
  11. treeview 控件使用和数据绑定
  12. matlab高等数学实验答案,高等数学实验matlab参考完整答案.doc
  13. JS-a标签下载文件
  14. 级差公排php如何_矩阵,双轨,级差三种制度的对话
  15. 中介者模式:还记得你到单位入职的第一天吗?你有没有遇到文中‘王二’的事呢?
  16. html页面的dtd是什么意思,html dtd文件解释
  17. NewCoder:买苹果
  18. 基于近半年Twitter与Github趋势分析_12大分类500+ChatGPT最新开源GitHub存储库(涵盖ChatGPT开发全框架、全编程语言及教程)——每周更新
  19. MATLAB与STK互联10:卫星对象操作(2)—卫星轨道参数设置(方法1,通过轨道生成器设置实现)
  20. Commonsense and Named Entity Aware Knowledge Grounded Dialogue Generation

热门文章

  1. linux 系统如何防止攻击
  2. XMPPFramework导入
  3. Linux输入法的几点补充
  4. 我是如何学习写一个操作系统(六):进程的调度
  5. spring中的注解配置
  6. php项目中使用element.ui和vue
  7. 【洛谷P4124】[CQOI2016]手机号码
  8. JQuery中click() 和onclick()区别
  9. spring boot 集成mybatis连接oracle数据库
  10. HashMap测试程序2