Skip to Content
Technical Articles
Author's profile photo Ferry Djaja

Add Zoom Meeting Custom Widget in SAP Analytics Cloud, Analytic Application

In this tutorial, we’ll learn how to create a custom widget to launch the Zoom meeting directly from the SAC Analytic App.

Zoom Web SDK

We need to install the Zoom Web SDK and to generate the signature with the following steps:

Generate the Signature

Each request to start or join a meeting / webinar must be verified by an encrypted signature authorizing each user to enter. A signature must be generated each time you join a meeting or webinar on a backed service where your credentials can be stored securely.

For quick prototyping (take note that this is not recommended to expose the actual API secret, you should generate it from the server side), we will generate the signature on the client side (custom widget).

We will slightly modify the NodeJS code below to use it in the custom widget code.

Before that, we need to download the following libraries:

And we also need tools.js from the sample app.

This is the final modified code that we will put in the custom widget code:

const data = {
    apiKey: that._export_settings.apiKey,
    apiSecret: that._export_settings.apiSecret,
    meetingNumber: meetingNumber,
    meetingPassword: meetingPassword,
    role: 0
let testTool = window.testTool;
let username = testTool.b64EncodeUnicode(name)
let signature = '';
// Prevent time sync issue between client signature generation and zoom
const ts = new Date().getTime() - 30000;
const msg = Base64.encode(data.apiKey + data.meetingNumber + ts + data.role);
const hash = CryptoJS.HmacSHA256(msg, data.apiSecret);
signature = Base64.encodeURI(`${data.apiKey}.${data.meetingNumber}.${ts}.${data.role}.${CryptoJS.enc.Base64.stringify(hash)}`);

Custom Widget

We will create a SAPUI5 sap.m.Dialog “Zoom” button and sap.ui.layout.form.SimpleForm for user to enter the meeting number, password and name.

Once user has filled in the information, they click the “Launch” button to launch the Zoom meeting web app.

let joinUrl = '' + username + '&mn=' + data.meetingNumber + '&email=&pwd=' + data.meetingPassword + '&role=0&lang=en-US&signature=' + signature + '&china=0&apiKey=' + data.apiKey;
console.log(joinUrl);, "_blank");

Before you run the app, fill in the API Key and Secret properties in the Styling Panel. You can ignore the name, meeting number and password properties. And now you are ready to go.

Demo Video


You can use Zoom API to create a meeting, list meetings, delete a meeting, etc. And you can create any useful functions with those APIs in your custom widget.


Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.