How to build a dynamic URL query to the incident table for "company is my company" for a list view in Service Portal?

patricklatella
Mega Sage

Hi all,

I'm creating a menu item for a Header Menu for Service Portal, and I want it to be a link to the list view of "My Company's Tickets".  Is there a way to code the URL for the link to be dynamic so that the logged in user's company on their user record can be used in the filter query?  So it would be something like a query on the incident table that is;

"company // is(dynamic) // my company on my user record"

I need it to by dynamic since this is a customer portal and I need it work for customers from different companies to be able to come to the same portal and see their own company's tickets.

Thanks!

1 ACCEPTED SOLUTION

patricklatella
Mega Sage

actually figured this out...

filter=company%3Djavascript:gs.getUser().getCompanyID()%5Eactive%3Dtrue%5EEQ&target_page_id=ticket

View solution in original post

1 REPLY 1

patricklatella
Mega Sage

actually figured this out...

filter=company%3Djavascript:gs.getUser().getCompanyID()%5Eactive%3Dtrue%5EEQ&target_page_id=ticket