The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How can i call a specific P.I Solution and apply to my current record?

Guilherme Popo2
Tera Contributor

Hello guys, could you help me?

 

I created a classification solution in P.I, however, now I need to call it in a BR to apply it to the incident that is being created. I tried to perform this action with code that is provided in ServiceNow's own documentation, but the solution is not applied to the incident.

 

Code used:

var mlSolution = sn_ml.MLSolutionFactory.getSolution("my_solution_name");

var inputGR = new GlideRecord("incident");
inputGR.get(current.sys_id);

mlSolution.applyPrediction(inputGR);

 Could you help me with how to make this Business Rules work?

 

Thanks!

0 REPLIES 0