I have a problem with chatter files, I have a webcam theese webcam take a snap and I need upload this snap to chatter entry in a Chatter of custom object.
After of take a picture with the webcam I upload the base64 code of image to a file in Salesforce, but i don't know how to upload the file without attachment this file. I need use the file in Chatter file.
Some of the errors I get are:
FIELD_INTEGRITY_EXCEPTION, ContentFileName is a required field for feed posts of type ContentPost: [ContentFileName]
FIELD_INTEGRITY_EXCEPTION, Related Record ID: id value of incorrect type: 069Q0000000Y3QHIA0: [RelatedRecordId]