Is there a way to make username dynamic in the file path?

I want to make username dynamic in order to make the code running on any system without changing the filepath. “C:\Users\YOUR_USERNAME” --YOUR_USERNAME to be dynamic.

Hi @shivangee_sunX is there any specific action you need to use it in?

Hi @ashapkina Just to make the code generic not any system specific.

@shivangee_sunX you can get the username with a custom script

@CustomScriptAction(
output = 'name'
)
def customScript()
{
name = RString.of(System.getProperty("user.name"))
}

and then use it to build a dynamic path