Get logged in user subscribed services based on subscribed service offerings

Petr Pastuszek
Tera Contributor

Hello,

 

I tried to call the server side method to create a filter for the service offering reference variable in the reprod producer and all works fine. Filter from variable reference qualifier below:

- 'javascript:'portfolio_status=catalog^service_status=operational^sys_idIN'+ new ServiceSubscriptionUtils().getMySubscriptions();'

 

I need to implement record producer bit differently then described above:

User has to first select SERVICE in service variable (until its not selected, service offering variable  have to be hidden).

The question is, how can I call OOTB method to get back list of Services where user have subscribed service offering(s)  (subscribed by company, location, department ..... here I wish to use any OOTB method such as getMySubscriptions())

 

PS: We define subscribe by under-service offerings only. We have a requirement that the user has to first select a Service in record producer, then we wish filter service offerings. Not oposite.


/Petr

6 REPLIES 6

Obviously it is not the same name but we name like

Service --> Servicenow platform Operation

Service offering

-->Servicenow Mid Server (production)

--> Servicenow Mid server (non prod)

-->Servicenow Platform (production)

--> Servicenow Platform (non prod)

 

 

Jyo2
Tera Contributor

I'd be interested to know a couple of things -

Did you have a process to automate users automatically subscribing to an SO?

Did you create an RP per SO? My worry oz that the list of RPs could get quite long. 

But then, one RP for all SOs can also get heavy eventually.