You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Move Attachment from CO to Incident

Received Response
37
Views
3
Comments
edited Jun 8, 2022 12:09PM in General Technical Discussions 3 comments

Content

I am trying to use shareFile method to share one of the attachments in a Custom Object to an incident. However, I am seeing an error in the Error Log indicating that the key doesn't exist.

 The record with key 'fattach.file_id' = 21 does not exist in the database.

Here is the snippet of code that I have in the Incident create CPM.

$fattach = $myCustomObject->FileAttachments[$index];

$incident->FileAttachments->shareFile($fattach);                          

Can a CO attachment be shared with incident? If not, how can I make a copy of the attachment into incident object?

Thanks,

SJ 

Version

18D

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!