I have to restrict end user to show catalog item in HR4U portal.

niveditakumari
Mega Sage

Hi, 

 

I have to restrict end user to show catalog item in HR4U portal. We are having Recommended for you widget in portal and in that it shows some catalog item and As an end user, User should not be able to see General Inquiry in the Recommended for You widget on HR4U portal. 

Can anyone please help me how to achieve that. 

 

Regards, 

Nivedita

 

 

23 REPLIES 23

Hi @Sandeep Rajput

 

I have added gs.info('General inquiry', data.results); in code. 

 

niveditakumari_0-1695451717310.png 

 

Can you please tell how to test that. 

 

Regards, 

Nivedita

 

 

 

@niveditakumari Please update your gs.info statement as follows.

gs.info('General Inquiry '+ data.results);

Afterward try accessing the System log and check if you find the sys_id of General Inquiry record producer in the list of sys_ids printed by the gs.info statement. If you find the it in logs then it can be removed from the array.

Hi @Sandeep Rajput,

 

I have added gs.info statement : 

 

niveditakumari_0-1695547415966.png  

 

niveditakumari_1-1695547550715.png

 

 

I have reload portal and after that I have reload log but I didn't see anything in log statement. 

Can you please help me to achieve that. 

 

Regards, 

Nivedita

 

 

 

Hi @Sandeep Rajput

 

As widget name 'Recommended Articles For Todos' does it show only articles to portal? 

I'm not sure I'm assuming that.  

When I'm opening widget for Recommended articles for you it is showing 'Relevant for you' widget. Do I need to make any changes in 'Relevant for you' widget. 

Can you please correct my code to achieve that. 

 

Regards, 

Nivedita

 

 

niveditakumari
Mega Sage

Hi, 

 

Can anyone please help me to achieve that. 

 

Regards, 

Nivedita