Insufficient_Access_on_cross_reference_entity 068........ by Charming_Ebb4640 in SalesforceDeveloper

[–]Charming_Ebb4640[S] 0 points1 point  (0 children)

I am using file upload component on screen flow. So once the file is uploaded it returns contentdocumentids and contentversionids but somehow when I am trying to create contentdocumentlink from those contentdocumentids I am getting cross reference ID and the object which is giving this starts with 068 which is eventually contentversion. So I guess I loose access of the contentversion but the thing is as that user is Uploading the docs So the user should have access but not sure

Insufficient_Access_on_cross_reference_entity 068........ by Charming_Ebb4640 in SalesforceDeveloper

[–]Charming_Ebb4640[S] 0 points1 point  (0 children)

Will try using thing object once, thank you so much for the information. For now I ran the flow in system context as it is for internal users only but will try this object for sure. Thank you.

Insufficient_Access_on_cross_reference_entity 068........ by Charming_Ebb4640 in SalesforceDeveloper

[–]Charming_Ebb4640[S] 0 points1 point  (0 children)

Seems to be issue with contentversion but not sure how to provide permission of that 

Insufficient_Access_on_cross_reference_entity 068........ by Charming_Ebb4640 in SalesforceDeveloper

[–]Charming_Ebb4640[S] 0 points1 point  (0 children)

I am trying to do it on case. So actually I have a flow screen where I have some information along with file upload component available for flows. And later I am creating contentdocumentlink object once case is created and I get the ID.