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.

Clear Comments field?

Robert_Cartwrig
Tera Expert

This question is not really specific to Risk.   Risk did not have the Comments and Activities fields, so I added them according to the instructions here: https://express.servicenow.com/support/forums/topic/can-you-add-a-journal-field-to-the-company-table...

This is pretty straightforward and works well enough - but the Comments field does not clear on Update and I cannot seem to make it do this thing.   The methods I've tried are mostly related to Business Rules to clear the field, but all attempts have failed. I am tired of beating my head against this wall.

I'm open to other suggestions about how to accomplish this seemingly simple thing.   Anyone?

Thank you,

Robert

1 ACCEPTED SOLUTION

I figured out what the issue was....or at least corrected it.   I double-checked the BR to clear it again, and nothing was wrong. What I hadn't checked was the other BR that was working - the BR that moved the content to the Activities journal.   It turned out that it was set to 200 as well...and it refused to be set to anything else.   I'd change it, and it would revert to 200.   I tried Insert and Stay. and saw the same behavior. So I deleted it and recreated it.   That worked...and allows the clear script to do its job as well.



Hate to mark my own answer as the correct one given all the great input on this thread (which were all correct, just not the issue), but I do want to close out this thread.


View solution in original post

13 REPLIES 13

Robert,



this does not seem to have the business rule logs. can you capture the logs again? if you are working on your personal instance, can you share the url?


Oh...sorry.   I went straight to Debug Security.   Sorry.   Force of habit.   I had to debug dozens of ACL issues after moving to Istanbul.   And I actually wondered why you wanted to see security rules on the page. LOL



See Attachment:


And this was done in our DEV instance.   It didn't seem complicated enough to need to play with it in a personal instance first...until it didn't work.   I could stand one up at some point if it would help.



I mean, seriously...all I need to happen is for the Comments field to clear on update.   I can get it to clear before the update, but that kinda defeats the purpose of adding text to the activities journal.


Robert,


can you paste the screenshot of the After business rule that you have written.


yeah but the post says to copy from comments to comments journal at 100 and then clear comments at 200. in theory, this sound fine.