Skip to Content
Feb 03, 2022 at 08:37 AM

SAP IRPA 2.0: Importing a library to Cloud Studio Custom Code

205 Views Last edit Feb 03, 2022 at 09:44 AM 2 rev

Case: I have a bot in Desktop Studio and want to rebuild it in Cloud Studio. (not just import, I want to have the same bot with opportunity to modify it in cloud studio)

The global problem/question:
How can I import libraries in my custom code in Cloud Studio? Is it possible?

Local problem/question:
During the process of realizing my desktop project (made in rpa 1.0) in cloud studio I faced the problem connected with custom code.
In a desktop bot there was the following string:
"var coreApp = ctx.excel.application.getObject();"
Trying to use it in cloud studio I faced the error that ctx was not defined. ctx-error.png
Unfortunately, I didn't find any way to import libraries in cloud studio custom code, so the only one idea I had was to use irpa_excel, irpa_core and their functions.
It was unsuccessful. I didn't find functions which return the "object" data type. Possibly, someone can help me to solve this problem via some other steps.

One more question:
Saving as csv.
The last action of my desktop bot (last step in scenario) is saving results in csv file.
Is there any opportunity to write directly in csv? If yes, how can I do it?


ctx-error.png (8.4 kB)