How to convert local file PDF to Base64 in Robotics Studio

Hi team,

I have a requirement like downloading a PDF file in local machine with Robotics Studio and send it back to the case in Pega Platform.

Does anyone know how to convert to Base64 and get the string to sent to case clipboard?

Thanks!

@JonathanPereira You can actually do this with two static methods from the Global Assembly Cache.

  1. Right-click on the Toolbox and select Choose Items…
  2. Select the Pega Robot Static Members tab.
  3. Select the “From Global Assembly Cache” radio button.
  4. Select the mscorlib assembly (4.0 version).
  5. Locate the File Node (the Convert Node for the second method).
  6. Under File locate the ReadAllBytes method and check the check box.
  7. Under Convert, locate the ToBase64String method and check its check box.

Now you can drag these two methods to your automation.