Email client templates visibility for specific group

Ciobanski
Tera Expert

Hello,

I am working on some Email Client Templates for Service Operations Workspace, and I got them figured out, now I am trying to create a condition so that the templates are visible for selection in the compose section only if the user who is on the record at the moment, is part of a certain group. 

The script itself is created, however I cannot find anywhere how to call it in a template.
Tried with the filters, but not sure which field (on incident or catalog task) should I use.

Is this feasible in ServiceNow? I have searched everywhere and I do not see any condition for this. Of course, without the implementation of custom fields. 
In case it is feasible, if it can be done without scripting, I am more than thankful for such a solution.


Thank you in advance!

Kind regards,
Daniel C.

1 ACCEPTED SOLUTION

Found solution.
Indeed it was a query business rule, but with a reverse logic.
If user not part of group (Condition)
Make only other templates visible via Query function.

View solution in original post

15 REPLIES 15

@Ciobanski 

it worked for me.

I am not a member of this group so it didn't apply the email client template

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Ankur Bawiskar 

Tried it in a PDI as well and it still does not work, tried with several other fields, Caller, Assignment Group, Assigned to, Number, no luck. 

@Ciobanski 

It worked for me in this way in native.

1) when script include returned false, that template was not applied

You cannot hide that 3 dots in native for Email client template

where are you checking? native or workspace?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Ankur Bawiskar in Service Operations Workspace, as it only works there on my side. I have checked and native UI allows only quick messages for selection.

@Ciobanski 

haven't checked in SOW

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader