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

1 ACCEPTED SOLUTION

@sattar3 

on clicking that left nav module where it's taking?

It worked fine for me, see below

Not sure what mistake you are doing

left nav module fixed query.gif

💡 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

View solution in original post

16 REPLIES 16

@sattar3 

did you give correct name of data source

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

@Ankur Bawiskar yes, i copied the filtered query and pasted in the arguments.

Please help me on this.

 

Thanks,

Sattar

@sattar3 

you can add filter condition on data source table and then copy the query and paste it in sysparm_fixed_query=<query>

💡 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

@Ankur Bawiskar not working again.

@sattar3 

sorry can't help since you didn't share what you tried and what's not working

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