- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-01-2020 01:55 AM
Building a flow in flow designer, and the last steps are to
- create a knowledge article using the information contained in the problem_task record
- confirm Knowledge article exists
- copy the attachment from the problem_task record to this newly created knowledge article
Step 1 and 2 works and I can see the Knowledge article but step 3 does not work as expected.
Copy attachment step keeps on giving this error
Error: The Record type problem_task does not match with Attachment table type. (sys_script_include.5430bdf89313130079b5925cf67ffb04.script; line 30)
even though i can see all the correct values are being returned
Any guidance or help on what I am doing wrong will be appreciated.
Solved! Go to Solution.
- Labels:
-
Personal Developer Instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-21-2020 04:55 AM
Thanks for sharing the image.
I believe this question was answered previously.
if you think there is any response that helps you please mark that helpful or accepted so that this thread can be closed.
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-01-2020 02:09 AM
Hi,
As per the docs you need to give the sys_attachment record as Source Attachment and not the Problem Task record
lookup the attachments on the trigger record, then use the "Look Up Record" action on the sys_attachments table to get the attachment record to pass into the "Copy Attachment" action
sharing 1 link for help
Mark ā
Correct if this solves your issue and also mark š Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-01-2020 05:51 AM
Hi Ankur
Thank you for your response. I added this step
And then I referenced this returned record in my Copy
It now copies the attachment as expected.
I now have a follow up question. How do I prevent it from adding a duplicate attachment to the target record.
Thank you.
Deon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-02-2020 03:44 AM
Hi Deon,
Not that much sure on this part
If you want to prevent duplicate attachment from being added might be you need to create some custom action which checks before adding attachment is attachment is already added or not
Regards
Ankur
Ankur
⨠Certified Technical Architect || ⨠9x ServiceNow MVP || ⨠ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-03-2020 05:12 AM