Get the Interface ID in Customer Portal and ROQL

Sometimes you may need the current interface from within Customer Portal. For instance, you'll need to filter on the Interface ID to retrieve a list of all end-user visible Products. There are two ways to do this:

Within a ROQL query

You can use the curInterface() ROQL method right in your query: SELECT ID, LookupName FROM ServiceProduct WHERE EndUserVisibleInterfaces.ID = curInterface() ORDER BY DisplayOrder

Via the CP API

Zircon - This is a contributing Drupal Theme
Design by WeebPal.