cancel
Showing results for 
Search instead for 
Did you mean: 

Call GLOBAL function in another function in SAP IRPA

narenthiran_a
Explorer
0 Kudos
179

Hello,

I'm checking with Dynamic passing Data one function to another function and also I try to call one GLOBAL step function in to a another function loop , like normal Java Script . there is any way to call the GLOBAL step in to a another step or else give some suggestion to understand this.

Thanks,

Narenthiran Annamalai.

Accepted Solutions (0)

Answers (1)

Answers (1)

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert
0 Kudos

narenthiran.a

Do you want to achieve this req in Cloud studio or Desktop Studio?

narenthiran_a
Explorer
0 Kudos

In Desktop Studio Only. if any way in cloud Studio means I'm eager to know that as well.

Chaitanya_Priya
Product and Topic Expert
Product and Topic Expert

To achieve this in Desktop Studio, please check the code below.

To achieve it in Cloud Studio, you need to do it with Sub automations. In future releases ,a new feature will be released to support the same.

GLOBAL.myFunction = function test(param){
ctx.log(param);
}

GLOBAL.events.START.on(function(ev) {
for (var index = 0; index < 30; index++) {
GLOBAL.myFunction(index);
}
});


narenthiran_a
Explorer
0 Kudos

Thanks I will try this.