Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current Restore this Version View Page History

« Previous Version 3 Current »

OVERVIEW:

  • The 'Run Javascript' Activity is used to perform advanced script-like processing using javascript. The use of this activity assumes you know javascript and can write simple javascript expressions.

       

  • After opening the 'Run Javascript' activity, you will get the below configuration panel.

      

Default Configuration Parameters:

  • Add any javascript expression.


HOW IT WORKS:

A Simple Example to configure the 'Run Javascript' activity in PopFlow Studio.

  • Select the 'Run Javascript' activity from 'Activity Sidebar'.
  • Click on 'Run Javascript' activity to open and configure the 'Run Javascript' activity.
  • Click on the 'Add Javascript' field and write any javascript expression.
  • In the below example we are showing an alert popup to show the 'Hello' message in the Oracle service cloud.

      

  • After executing it will show an alert pop-up in the Oracle Service Cloud as shown below.

      



  • You can also show the interaction value or you can perform some logic on the interaction value.
  • In the below example, we are showing the interaction data into the console.

     

  • After writing the javascript expression in the given fields you can close and save the activity by clicking outside of the activity panel.