ucux347 Super Contributor.
Super Contributor.
202 views

How to set a field to set current operator name

Hello Everyone,

 

I would like to create a new rule sets to set field as operator name that currently logged in to the HP SM.

Here's the code:

value=$lo.user.name

 

but seems HP SM not recognized the $lo 

 

How can I achieve this requirement? Appreciate for anything helps.

 

Thanks

0 Likes
2 Replies
SandyAdmin Honored Contributor.
Honored Contributor.

Re: How to set a field to set current operator name

Are you using setfield rule? If yes please try on your test any of the below, I could Not quickly validate it on my end currently, so check both first. You may also check some default rulesets for sample (ex: "im.task.set.openedby")

value=vars.$lo_user_name;

or value=system.vars.$lo_user_name;

 

 

 

0 Likes
Highlighted
BAGAss Super Contributor.
Super Contributor.

Re: How to set a field to set current operator name

so first of all you have to decide where you want to write this code
in RAD object or in Javascript object?
second will be interesting find out in which sm-object u typed it?

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.