How to report on how many requests were submitted via the portal?

KristinaB
Giga Contributor

Has anyone successfully figured out how to report on how many requests were submitted via the portal other than querying if requester and opened by are the same? Obviously, on INC, we can report on contact type but not finding anything for RITMs.

TIA

1 ACCEPTED SOLUTION

Alex Macdonel
Tera Expert

The following is something I hacked (in a pejorative way) to determine if a record was submitted through the portal. We're using undocumented features so buyer beware...



Before insert business rule on the task table:



(function executeRule(current, previous /*null when async*/) {


  var glideURI = gs.action.getGlideURI().toString();


  if (glideURI.indexOf("angular") >-1){


  current.contact_type='self-service';


  }


})(current, previous);



This works because we noticed that whenever a user creates a record from the Service Portal the URI says 'angular.do' instead of 'incident.do' or 'service_catalog.do'. There's still other ways to manipulate the contact_type variable and this will probably be tweaked one or two times before we're happy with it.


View solution in original post

11 REPLIES 11

Cheyenne1
Kilo Guru

We use contact type on RITMs as well. You can set the contact type in the RITM script of the workflow.


Sounds interesting... How would we determine if it was submitted via the portal?


dvp
Mega Sage
Mega Sage

Are you trying to find out how many of them were submitted using sp vs ess?


KristinaB
Giga Contributor

Yes we are