Use Case: We will generate Random number based on number of digits required using Javascript function.
Example, if we put input digit = 3 that means it will generate a random number between 1 and 1000.
Javascript function:
RandomNumber.js
function generateRandomNumber(digit){
var RandomNum=Math.floor((Math.random() * digit) + 1);
return RandomNum;
}
Steps in detail(With Screenshots):
Upload the Javascript code to OIC Libraries
Create a lookup for random digit
Create App driven Integration
No comments:
Post a Comment