Unable to Restrict Data Sources Visibility in Assets Data Import Module

sattar3
Tera Contributor

Hello Everyone,

 

I have created a new module called “Assets Data Import”, which references the Data Source (sys_data_source) table.

 

My requirement is to restrict data visibility so that only four specific data sources are displayed when a user clicks on this module. However, this is currently not working as expected. I attempted to configure the restriction as shown in the attached screenshot.

 

I have created four new data sources, and only these should be visible to users when they access the module.

Could you please help me understand what might be missing or incorrectly configured?

 

sattar3_2-1774859866388.png

@Ankur Bawiskar  @Mohammed Aleem 

Thanks,
Sattar

3 REPLIES 3

Ankur Bawiskar
Tera Patron

@sattar3 

you can use sysparm_fixed_query so that the users can't remove the filter as well

something like this

&sysparm_fixed_query=nameINData Source A,Data Source B,Data Source C,Data Source D

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Hi @Ankur Bawiskar , can you help me where should write that query, i tired in arguments field which didn't worked.

sattar3_1-1774862976404.png

Thanks,

Sattar

@sattar3 

in the arguments field, you already have that

is that not working?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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