function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jonathan Wolff 7Jonathan Wolff 7 

Automatically set picklist values for files from salesforce integration mails

Hello,
I have the following problem I face:
I have a two required picklist fields in my org on content version. If somebody wants to upload a file he needs to set a picklist value in the fields "Vertraulichkeitsstufe" and "Dokumentenklasse". The problem i have, that when I want to upload a mail from outlook to salesforce through SF Integration, I get the error, that the values have to be assigned. Is there any possibility I can automatically assign values for content version when uploading it?

Greetings
Jonathan
VinayVinay (Salesforce Developers) 
Hi Jonathan,

You can't Expose custom fields on ContentVersion when uploading files.

https://ideas.salesforce.com/s/idea/a0B8W00000Gdc4LUAR/expose-custom-fields-on-contentversion-when-uploading-files

Thanks,