3/15/2026 7:22:37 PM
|
| |
| slxdeveloper.com Community Forums |
|
| |
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
|
|
|
|
Saving attachments
Posted: 14 Sep 07 8:17 AM
|
I know about the saveAs command, is there a Save command that doesn't present a dialog box?
Application.BasicFunctions.SaveAttachmentas(objRS.fields("filename"))
Thanks. |
|
|
|
Re: Saving attachments
Posted: 14 Sep 07 10:57 AM
|
| Nope. The only way to do it without the dialog is to code it all yourself. You'd need to copy the attachment to the proper location, rename it to fit SLX naming, write the entry to the attachment table, call LogSendFileAttachment (from BasicFunctions) so it syncs properly. If this is the route you want to take, there are other posts in this forum that outline the steps more completely. |
|
|
|
Re: Saving attachments
Posted: 14 Sep 07 11:27 AM
|
Thanks, but I hope youv'e misunderstood me. I'm wanting to go the other way. Save from SLX to a directory. Then entry is already in the ATTACHMENT table.
again, thanks. |
|
|
|
Re: Saving attachments
Posted: 14 Sep 07 11:45 AM
|
Well that is even easier. You just get the file name from the file name from the attachment table, get the attachment path from Application.BasicFunctions.GetAttachmentPath and then copy the file (sample code to copy a file below)
Dim filesys Set filesys = CreateObject("Scripting.FileSystemObject") If filesys.FileExists("c:\sourcefolder\anyfile.html") Then filesys.CopyFile Application.BasicFunctions.GetAttachmentPath & attachmentfile, "C:\DestFolder\" End If
Make sense? |
|
|
| |
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|