Hide a playbook activity from users, but still execute its flow

AnirudhKumar
Mega Sage
Mega Sage

Hello ServiceNow Jedis, Knights and Senseis,

 

I have a playbook with activities that rely on a lot of server data. The data need to ready before those activities even fire. To handle this, I have created an activity (call it Get All Info) that executes right at the beginning of the playbook. This activity fires off a subflow which get me all the server data I need and can feed to consecutive activities (via the pills).

 

Now, even I set my Get All Info activity as 'automated=true', it still shows on the playbook page.

Is there any way at all to hide it from showing on runtime, or maybe show only to admins.

 

hide activity playbook.PNG

1 ACCEPTED SOLUTION

benjamin shiao
ServiceNow Employee
ServiceNow Employee

 

Here is a method to control role based visibility on playbook activities:

 

see the sys_playbook_activity_renderer_list table, create a record, define roles required, filter a tagline on the activity.

all activities where you add the tagline, this record will control visibility

 

example where activity 1.2 would be only visible to admin:

the PAD activity config

benjaminshiao_1-1711478380750.png

the sys_playbook_activity_renderer record:

benjaminshiao_2-1711478416948.png

benjaminshiao_3-1711478424218.png

 

 

View solution in original post

7 REPLIES 7

@AnirudhKumar @benjamin shiao 

I configured something similar but it didn't work.

Can you help how it actually works?

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

Works like a Charm, Thank you!

Hi Benjamin, in sys_playbook_activity_render - What is the Parent table name please? 

I tried with record level parent table/ no data in it (as its not a mandatory), but no luck.

 

Can you provide more steps ? or the docs link please?

 

Update: Ignore - Its some cache issue. Working fine with empty parent table name.

 

Thanks,

Edwin