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
Akira007Akira007 

Attache text file to Object from S-Control or On-Click Javascript

Hi, every one.

I'm trying to create a cutom button and S-control or On-click javascript which creates a simple text file (including HTML) and attache it to a custom or standard Salesforce object.

But I don't know how to do it.

 

I appereciate very much if someone let me know how to do it with sample code.

 

Regards,

 

Akira Fujiwara

 

werewolfwerewolf
Why are you trying to create an S-control for that?  Why don't you just use the standard Attachments related list (with the "New Note" and "New Attachment" buttons on it)?