Skip to main content

I am calling a Flow from the new Help Center community template to allow unauthenticated guest users the ability to create a case and upload a file attachment. Both of which I've been told are possible based on the Spring '19 release. I'm getting an error message on the file upload piece that says "Unable to find the record referenced by ContentVersion.FirstPublishLocation in null: <with the record ID of the newly created case>.

 

I was told by support that the file upload could not attach to the case until after new Case record had been committed to the database. If that is the case, how you you create a case and upload a file in the same flow? I'm able to run through this in debug mode just fine, but when running as a guest user I get the error. What am I missing here?

1 comment
  1. Mar 21, 2019, 11:59 AM
    You have to add a pause or screen element so the 1st transaction finishes, assuming the info you were given is correct...and sounds like it is. So first screen is case, 2nd is upload of document, then the case will have been added before upload.
0/9000