Data Activities: Run Javascript

Data Activities: Run Javascript

The Run Javascript Activity is used to perform advanced script-like processing using javascript.


 
Notes
Working knowledge of javascript and writing javascript expressions is required to use this activity.
 

Configuration Parameters

After opening the 'Run Javascript' activity, you will get the below configuration panel. From here, you can compose javascript expressions.       

Sample Run Javascript Activity


This example shows an alert popup to show the 'Hello, this is a test of the JavaScript Alert!' message in the Oracle service cloud.

  1. Select the 'Run Javascript' activity from 'Activity Sidebar'.
  2. Click on 'Run Javascript' activity to open and configure the 'Run Javascript' activity.
  3. Click on the 'Add Javascript' field and write any javascript expression.

Example JavaScript:

  1. alert("Hello, this is a test of the JavaScript Alert!");

  1. Execute the activity, and it will show an alert pop-up in the Oracle Service Cloud.



Considerations

  • JavaScript can only execute if your local browser settings prohibit the use.
  • Some Chrome extensions may disable the use of JavaScript.
  • JavaScript can be blocked by specific sites based on advanced settings in Chrome. (More information here)

    Still can’t find an answer?
      • Related Articles

      • Pass data between PopFlows & Activities

        Between the Curly Brackets is where we'll live in this module! We'll connect the data produced from other activities and steps in your workflow together! Data exports are the "glue" that ties workflow actions & activities together. In this module, we ...
      • Screen Pop Activities: Run Report

        Overview The 'Run Report' Activity opens a pre-defined Service Cloud report in a new tab in the 'Oracle Service Cloud'. For example, if multiple Contacts are found for a specific caller based on Caller ID, PopFlow can run a Contact report that ...
      • Data Activities: Delete Data

        This information is only applicable for Oracle integrations. Overview The 'Delete Data' Activity allows you to delete the data from the selected entity. It has two path 'SUCCESS' and 'FAIL'. You can execute different activities on these buttons. ...
      • Data Activities: Get Data

        This information is only applicable for Oracle integrations. Overview The 'Get Data' Activity allows you to get the data from the selected entity. You can add multiple filters to filter the data. It has three child buttons: SINGLE MATCH MULTI MATCH ...
      • Data Activities: Post Data

        This information is only applicable for Oracle integrations. The 'Post Data' activity allows you to insert important data into the entity table. After opening the 'Post Data' activity, you will get the below configuration panel. Default Configuration ...