Attachment field in record producer logging double work notes

vivek110
Tera Contributor

Hi Everyone,

I have encountered with an issue that when we attach an attachment in a record producer it is showing two attachments on the work notes how can we restrict this behavior in ServiceNow can anyone have an idea or encountered the same before kindly suggest me the solution.

 

Regards,

Vivek

4 REPLIES 4

Mark Manders
Mega Patron

What do you mean by 'two attachments in the worknotes'? Are there indeed two attachments, or is it from copying? If you have worknotes stating 'an attachment has been added', check on the conditions. It could be on create and update and I have seen attachments being created in the attachment table (update 1) and then updated when attached (update 2).


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

vivek110
Tera Contributor
 

Hi  Mark,

Thanks for the reply kindly refer the below attachment 

vivek110_2-1712318580356.png

 

when i have attached one attachment it is showing that two attachments have been added.

 

Regards,

Vivek

 

 

Mark Manders
Mega Patron

You were talking about a record producer, right? This attachment seems to be coming from an email?

But I guess you will need to check the code attaching the attachment to the record. I think it runs twice (probably on insert and update).


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

vivek110
Tera Contributor

I am sorry mark actually we don't have the code attaching the attachment to the record.Correct me if i am wrong is their any OOB Code that runs on the attachments.

 

Regards,

Vivek