cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Intelligent RPA 2.0 : Clipboard Activity usage

Srinivas-Rao
Contributor
1,419

Hello All,

I am using Cloud Studio.

Requirement : I am implementing a requirement where I have to multiple "single values" in the multi-select field using the CLIPBOARD button in the SAP GUI screen.

Steps I did: -

1. The list of single values is in an array. I looped over the array and tried to create a string with concatenation of '\r\n' between each of the values using custom script as below

var concatenatedString;
for (var i = 0; i <= Materials.length; i++) {
    concatenatedString += Materials[i] + '\r\n';
}
return concatenatedString;

2. The returned string variable is then set to the clipboard using "SET Clipboard" activity.

3. On clicking on the button to import data from clipboard (marked in the multi-select screen), a single string is returned where the \r\n is converted as shown below:

Expectation is: On clicking the "Import from Clipboard", each of the single values should be populated separately.

I know that we could loop over the array and fill each single item one by one, but I am looking at the clipboard functionality and hence need the community's help.

Thanks & Regards

Srinivas Rao.

Please note :I had to take the screenshot of the converted string and paste, because that string is itself "carriage return and new line" and even in this question editor, it was auto-converting to new line but the same does not happen in the multi-select box.

Accepted Solutions (0)

Answers (4)

Answers (4)

manish_09
Explorer

Hi, did you try like this: "InputList.join("\r\n")" and give the input to "Set Clipboard" activity and for pasting in SAP, just click on paste icon.

zoi7sgh
Explorer
0 Likes
It's working
kartikeydubey
Explorer
0 Likes

Hi, can anyone help me with the resolution to this? Is it still open? Even I'm facing the similar issue. Thanks in advance!

chwostian
Participant
0 Likes

jeromegrondin are there any prospects of changing this functionality to allow bulk copy from the clipboard like a list of values?

marek_benda_hcm
Participant
0 Likes

Hi, Did you tried just \n ?

Srinivas-Rao
Contributor
0 Likes

Hello Marek - Sorry for the delayed response. I tried that too, it still resulted into similar conversion - and did not work as expected. I had no other option but to LOOP over add one record at a time.