This folder contains the code you need to paste on your NodeJS cloud function action. This feature is not supported locally.
Inside the main.js
script, modify the <my-server>
value with your deployed IBM Cloud App.
- Go to https://cloud.ibm.com/functions/actions
- Click
Actions
on the sidebar - Click
Create
- Select
Action
option - Enter name and package
- Select Node.js 10 for Runtime
- Press
Create
- Copy and paste the code into the code editor
- Go to https://cloud.ibm.com/functions/actions
- Click
Triggers
on the sidebar - Select
Trigger
option - Select
Cloudant
- From the
Connected Actions
view, clickAdd
- Press
Select Existing
- Choose your the action you created from first part
- Create