I have a web to case form where users have the ability to attach files.Once a user attaches a file I read it in javascript(fr.readAsText(fileTag.files[0])) as Text and store it in a LongTextareafield. How to attach the file in after insert trigger to that particular Case? Can anybody suggest me how to do it? I want the attachment to be displayed under the Files related tab of that particular case ?


As you know Web To Case can not accept Attachments.

You can use SOAP/Rest API to insert attachments with cases, as mentioned in this help article and you can try upvoting this idea that is present in idea exchange

For an implementation using rest API you can try using this link for reference.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.