How to get the curent npukg version runing?

Hi all,

I wanted to know the current running npukg version (to write this information in my personnal log file).

Eg : I Have 3 versions on my robot

  • MyRobot.1.0.0.npukg
  • MyRobot.1.0.1.npukg
  • MyRobot.1.0.2.npukg

When executing ‘MyRobot.1.0.1.npukg’, I want to write “Robot Version : 1.0.1” in a log file.

How to do that?

Thanks in advance.
Regards,
JC

Not sure if there’s a better way but you could get the robot version by parsing the project.json file and reading the “projectVersion” property.

image

Have a look at the Get Current Job Info Activity

grafik

Thank you very much Peter!
:wink:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.