cancel
Showing results for 
Search instead for 
Did you mean: 

Instructions on how to use the Automation Pilot Command ExecuteScript:1

Ron_Hagan
Product and Topic Expert
Product and Topic Expert
0 Kudos

I'm trying to use ExecuteScript:1 in Automation Pilot to get the value of an Input Key and, depending on what's in that value, dynamically populate an Output Key.

Unfortunately, the Help file doesn't do a very good job of explaining how to use it.  I have the parameter set to the value of the Input Key but I'm not sure if I'm doing it correctly.

And even if I DO get the value of the Input Key, how would I populate the Output Key?  In other words, how would I reference the Output Key?  

I'm using Python but I could use JS if it would be better.  😊

Please let me know if you need any more information from me.

Thanks!

Ron

Accepted Solutions (1)

Accepted Solutions (1)

Dan_vL
Product and Topic Expert
Product and Topic Expert
0 Kudos

One tutorial that might help is Execute SQL Commands and Create Custom Notifications with SAP Automation Pilot and SAP Alert Notific....  It uses a Python command and displays its output. 

Another tutorial that might help is Automating SAP HANA Cloud Tasks with the SAP Automation Pilot Service
In particular it has a sample command called ExampleCommand which takes an input array and performs some operations on it using jq before outputting.

Hope those help,
Dan van Leeuwen

 

 

Answers (0)