UI Action condition assistance please

Bidduam
Tera Guru

I am trying to add a UI Action (which I have done) to the RITM, but what I haven't been able to do is restrict it to only one particular catalog item and only for people who are members of a particular assignment group (which the RITM is NOT assigned to)

 

The sys_ids are as follows:

Catalog item - 7375a4a249e78e10b68e4b9ef4563020

 

Assignment group - 8e4265bd9438161019c03cc49341f057

 

So I have tried the following, none of which have worked for me - the UI action continues to show no matter what I add.

(tried the first one just to at least restrict it to the item type, also didn't work when deleting the condition requiring it to be active)

  • active==true&&cat_item=='7375a4a249e78e10b68e4b9ef4563020';
  • cat_item=='7375a4a249e78e10b68e4b9ef4563020'&&gs.getUser().isMemberOf('8e4265bd9438161019c03cc49341f057');

Assistance would be great thanks

1 ACCEPTED SOLUTION

Bhavya11
Kilo Patron

hi @Bidduam ,

 

 

can you try like this 

 

current.cat_item=='3416617293834210260bb2ddfaba10ec' && gs.getUser().isMemberOf('477a05d153013010b846ddeeff7b1225')

 

you can try this way as well

stored the sysid in system properties one for catalog item and one group

current.cat_item==gs.getProperty('sys_id_of_item') && gs.getUser().isMemberOf(gs.getProperty('sys_id_of_group'))

 

 

Please mark helpful & correct answer if it's really worthy for you.

 

Thanks,

BK

If this information proves useful, kindly mark it as helpful or accepted solution.

Thanks,
BK

View solution in original post

5 REPLIES 5

Bhavya11
Kilo Patron

hi @Bidduam ,

 

 

can you try like this 

 

current.cat_item=='3416617293834210260bb2ddfaba10ec' && gs.getUser().isMemberOf('477a05d153013010b846ddeeff7b1225')

 

you can try this way as well

stored the sysid in system properties one for catalog item and one group

current.cat_item==gs.getProperty('sys_id_of_item') && gs.getUser().isMemberOf(gs.getProperty('sys_id_of_group'))

 

 

Please mark helpful & correct answer if it's really worthy for you.

 

Thanks,

BK

If this information proves useful, kindly mark it as helpful or accepted solution.

Thanks,
BK

@Bhavya11 Sorry I retested both options that you offered with the correct sys_id's and they both work without any issues. 

Thank you

Bhavya11
Kilo Patron

Hi @Bidduam ,

 

can you share the screenshot of condition of Ui action.

 

Thanks,

BK

If this information proves useful, kindly mark it as helpful or accepted solution.

Thanks,
BK

Omkar Mone
Mega Sage

Hello @Bidduam 

 

Can you try like this?

 

current.cat_item=='3416617293834210260bb2ddfaba10ec' && gs.getUser().isMemberOf('Name of the group')