File Upload to Salesforce Files instead of Attachment?

edited February 4 in Questions
Since Salesforce is phasing out Attachments in favor of Files, is there a way for the File Upload component to upload to an Object's Files?

I assumed that updating the Files Settings would trick the Skuid component into placing the upload into Files, but nothing gets past Skuid!

ContentDocument is the object that represents Salesforce files. I can easily view ContentDocument records related to an object but I cannot create them. Does anyone have a workaround to create ContentDocuments on a record through Skuid?

Comments

  • edited October 2017
    Nosa,

    You can upload to chatter files in Skuid and create a ContentDocument and a ContentDocumentLink to that file that you can see in Skuid. Below I have my file upload component settings on my Account page uploading 'in Chatter Feed Item'. (This will create a content document!) The parent model is the Account model that is running for my detail page. 

    Lastly, I like to show a table of the object ContentDocumentLink where LinkedEntityId = the main model's Id. That shows any ContentDocument where I have a related ContentDocumentLink record with it. I am on Banzai in this screenshot below. 

     image

    Hope this helps get you started. 

    -Jeff Rutter
  • edited October 2017
    Thanks, Jeff! That works perfectly.

    And thanks Raymond for the supplemental info!!
  • Karen WaldschmittKaren Waldschmitt 🛠️ 
    edited October 2017
    Nosa & all,

    Jeff, Thanks for sharing that workaround!!!

    Currently, there is the option to have the file upload component attach something to the content document object but this is only if you do not select a parent model. 
     image

    BUT, be on the lookout for changes with this functionality (and the documentation to support it) when Millau comes out on in two weeks on October 31, 2017!!! We will update this community post when the Millau release is publicly available ... 

    Thanks!
    Karen
  • edited May 2018
    Do you need Chatter  enabled in the org to get this to work?  I get this message "This feature is not currently enabled for this user."  Is there a way to get this to work without Chatter being turned on in the whole org?
  • edited October 2019
    For upload to chatter you need chatter enabled at org and chatter feed enabled on the object.
  • Mark DeSimoneMark DeSimone 🛠️ 
    edited February 4
    We really appreciate your suggestion about inserting ContentDocuments related to records. It has been implemented and is now available in the Millau release, now available from the Skuid Releases page at http://www.skuid.com/skuidreleases. As a reminder, Salesforce does not allow reverting back to prior versions of managed packages. Skuid always recommends installing new versions in a non-business critical sandbox environment to test all mission critical functionality before installing into a production environment. We also recommend that you update out of date themes when you upgrade. Thanks again for helping Skuid become an even better product!

    Please review these release notes regarding this feature (and other changes and improvements in Millau).
    https://docs.skuid.com/latest/en/release-notes.html#salesforce-notes-attachments-versus-files
Sign In or Register to comment.