2326693 - RoambiScript: How to create a folder in the Roambi Library (mkdir)?

SAP Knowledge Base Article - Public

2326693 - RoambiScript: How to create a folder in the Roambi Library (mkdir)?

Symptom

The mkdir option allows a RoambiScript user to create a folder in the library of their Roambi Business Organization. In the article below we will walk you through the creation of a RoambiScript command that will execute the mkdir command.

Environment

  • SAP Roambi Cloud

Resolution

Every RoambiScript argument has the same structure:

[main class] [options] [command] [command options]

Let's break down each of the pieces for the mkdir (create folder) command.

 

[main class]

The main class executes RoambiScript.

java -jar roambi-api-cli.jar

 

[options]

The options parameter is where you designate the path and name of your properties file. If your properties file resides next to your RoambiScript jar file, there is no need to provide the path. Simply provide the file name.

-props FILENAME.PROPERTIES

 

[command]

RoambiScript allows you to choose from 19 different commands.  In this example, we are going to use mkdir to create a folder in our Roambi Business Library.

mkdir

 

[command options]

The mkdir command has three options:

1. --folder - this is the path and name of the parent folder in which you will be creating this new folder. If left blank, the folder will be created in the root directory.

2. --title - title of the new folder

3. --permission - you can set permissions on this file to a particular user or a group. This is an optional parameter but it is recommended that you set permissions when creating a folder via mkdir.

 

When we piece everything together it looks like this example.  The CAPS indicates what arguments you will need to change for your example.

java -jar roambi-api-cli.jar -props FILENAME.properties mkdir --folder PARENTFOLDER --title NEWFOLDER --permissionNAME@EMAIL.COM

Keywords

Roambiscript, roambi, library, mkdir,  , KBA , BI-ROM-CLD-PUB-BI , Roambi Cloud publishing clients – BI, Cognos & SSR , Problem

Product

SAP Roambi Cloud all versions