Auto-Populate Current username and email-id in worknotes

ujjwal_5181
Tera Contributor

Hi All,

I am working on a requirement wherein When anyone updates the worknotes in incident form then along with the notes username and mail id should also be auto-populated in the same worknotes field.

Please help me with this.

Thanks

 

 

6 REPLIES 6

Prateek kumar
Mega Sage

What have you tried so far?


Please mark my response as correct and helpful if it helped solved your question.
-Thanks

ujjwal_5181
Tera Contributor

@Prateek kumar Thanks for replying!

I had written a business rule. But It is not working as expected. I am attaching few files to make things clear. You can observe in image-45 that whatever I am writing in worknotes is visible twice. I want worknote to populate only once along with username and mail Id.  Hope you understood the issue.

Hi, your screenshots indicate that you are reading the work_notes into a variable called 'notes' and then appending notes to current.work_notes

 

Edit: apologies I hit save accidently.

I think this is expected behavior

Incident Work Note text prepend duplicates the Work Note - Support and Troubleshooting (servicenow.c...

 

Also, for future reference it is not possible to properly test\evaluate screenshots, and the appropriate way to share code is plain text.

Hi @Tony Chatfield1 ,

Actually I have already tried this way but it is creating two journal entry in sys_journal_field table. One which I manually enter and another one creates through business rule.

For example: If I write TEST and post then in worknotes It will print as expected and there will be no duplicate but It will create two entry in above mentioned table. One for TEST and another for all other data that we are populating through code. 

I want to have single journal entry as well after clicking post. Hope you got it