I'm trying to insert a File (ContentVersion) or ContentNote with Rich Text within a Flow.

But has anyone encountered the need to convert a string to a blob (base64 encoded type) in order to get a ContentVersion.VersionData to insert properly?

I know I could use an @InvokableApex method, but I was worried I might be overengineering this. So please let me know if I'm missing something simple...

There has to be a way out of the box Salesforce to allow the insertion of a ContentNote with Rich Text, right?


  • I'm going to go out on a limb and say that you're very probably not missing anything. Formulas don't have any way to convert to or from base64, which would be the minimum requirement to have a chance of this working. As such, an InvocableMethod is probably the right choice.
    – sfdcfox
    Commented May 12, 2023 at 1:27
  • I would like to know how were you able to insert Content Version's Version data using flow. Could you please share the SS of the complete flow? Commented Aug 2, 2023 at 8:25

1 Answer 1


So instead of creating a ContentVersion Record, I'm able to create a ContentNote combined with a ContentDocumentLink without any issue at all.

My problem is I didn't have 'Enable Notes' turned on in Notes Settings in order to see ContentNote.

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .