How can i call a specific P.I Solution and apply to my current record?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2024 11:36 AM
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