Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Flow Designer - predictive Intelligence, solution definition doesn't update versions

KScoble
Tera Expert

Hi,

I have recently made a few flows that use the predictive Intelligence models, mostly Similarity Solutions.
I have just realised that when I look at the version of the models being used in the flows, they all have the active box unchecked and are the version before the last training. 

Does anyone know if there is a way to make the flows update alongside the P.I Models to use the latest version?

Thanks.

1 REPLY 1

KScoble
Tera Expert

I have made the following update which avoids the issue, just curious is there another way that avoids scripting?

Script:

var target = new GlideRecord('ml_solution');
target.addQuery('solution_name', "solution name here");
target.addQuery('ml_capabillity_definition', "capabillity def here");
target.orderByDesc('sys_updated_on');
target.setLimit(1);
target.query();
while (target.next()) {
  return target;
}