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.

Recalculating Assessment Data for Demand?

SandyL83
Tera Guru

Hello,

I have a requirement to recalculate the Assessment Data Results on Demands. 

Current Assessment Data looks like this:

SandyL83_0-1679065678365.png

 

 

 

On the Assessment Instance, the user can update the values:

SandyL83_1-1679065678330.png

 

 

 

I am looking to create  UI Action on the demand page to recalculate the assessment data.. any ideas?


THank you

1 ACCEPTED SOLUTION

Ok, so now try to determine whether the business rule is running or not - do you still have the logging line, and are you seeing anything in the logs?

art_jones_0-1680110006654.png

I edited 4 values so this gets logged when the business rule runs

art_jones_1-1680110075330.png

 

 

 

View solution in original post

24 REPLIES 24

Hey there - so I did that and it's actually the UI Action that is causing the error..in this case the error now says it's unable to find action rerun_metrics2(I changed the ui action name to this). I also changed the br name but am not getting any errors on that. 

 

 

 

 

 

 

 

Ok, so now try to determine whether the business rule is running or not - do you still have the logging line, and are you seeing anything in the logs?

art_jones_0-1680110006654.png

I edited 4 values so this gets logged when the business rule runs

art_jones_1-1680110075330.png

 

 

 

Hello,

Yes so I do see the log entries for the updates I am making - so It looks like the business rule is running. 

 

SandyL83_0-1680267507818.png

 

Also, I can confirm that when I update the Assessment Instance Questions, that the Metric Results tab is being updated.  However, that is not trickling down to the Assessment Results tab.

 

 

@art_jones Wait! I think I got it!!! I don't know what the issue was, I actually think it was the DEmand I was using to test was out of whack!!! I am currently testing to confirm. But I cannot thank you enough for your help on this! You are the best!!!!!