Update record created via the Upload File component

  • 1
  • Question
  • Updated 2 weeks ago
  • Answered
Hello!

I am trying to build a functionality where users can specify which type of file they are going to upload and save that information in a custom Content Version field.

I am using a Tab Set with the different types of file and sending the information to a Page Include component.

My question would be how to assign this value to the record created in the new page using the File Upload component. I cannot see how to query the new record on the On-Upload Success Actions property.

Many thanks!
Jesus
Photo of Jesus Gonzalez

Jesus Gonzalez

  • 170 Points 100 badge 2x thumb

Posted 5 months ago

  • 1
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,224 Points 10k badge 2x thumb
Read through the comments on this post and see if it helps:
https://community.skuid.com/skuid/top...
Photo of Jesus Gonzalez

Jesus Gonzalez

  • 170 Points 100 badge 2x thumb
Hello!

Many thanks for your reply.

I finally followed a different approach which worked exactly as I needed:
Instead of having a Page Include component, I have a File Upload in every tab. In the On-Upload Actions of the File Upload component I update the ContentVersion record with the appropriate document type.

Regards,
Jesus
Photo of Griffin Brown

Griffin Brown

  • 2,766 Points 2k badge 2x thumb
Hey Jesus - how did you update the ContentVersion record with the appropriate document type? I can't figure it out
Photo of Jesus Gonzalez

Jesus Gonzalez

  • 170 Points 100 badge 2x thumb
Hello Griffin,

I save the changes in the ContentDocument record and then update the related ContentVersion (which contains the document type custom field):




I hope that helps.

Regards,
Jesus