Skip to main content
Fred Kampf (Horizon BCBSNJ) 님이 * Lightning Now! *에 글을 올렸습니다

Hi.  I am working on moving attachments to files.  I currently have a custom object that has attachments uploaded to it.  That custom object is the child (master/detail relationship) with the case object.  I want to eliminate this custom object and associate the files directly to the case.  After doing a bunch of research it seems I need to create a new contentdocumentlink record for each to link the new files to the case.

 

I noticed that after I convert a file, the original attachment is still there and the name of that attachment includes the 15 digit file id.  I tried using that in my process but it seems that in order to create a new contentdocumentlink record I need the 18 digit file id.  When I tried to use the data loader to create a new contentdocumentlink with the 15 digit contentdocumentid I received an error. 

 

Does anyone have any ideas how I can share the file with the case using the dataloader? 

 

Thanks!!

Fred

댓글 2개
  1. 2019년 3월 10일 오전 5:30
    @Fred Kampf - We can run a script in developer console and it will associate custom object's related fiels to respective case record. In case if you need any help on this please DM me.
0/9000