You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Corrupted FileAttachments

Accepted answer
edited Jun 7, 2022 1:18PM in General Technical Discussions 1 comment


Can't download FileAttachments on Custom Object


I have created a Custom Object with a FileAttachments field associated with it. I am filling this property from the Portal by encoding the file with the btoa() function and sending it through the Rest API. Everything is working fine in the Customer Portal and I can get it back with the atob() function.

The problem is with the Agent Desktop and the AgentWeb (BUI). They both display the attachments correctly in the report but when I try to download them, through their respective environments, the files are corrupted.

Does anybody have any idea why this is happening? Am I missing something when I post them through the Rest API?

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!