How to add an attachment from a catalog client script (onChange)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2023 04:48 AM
There is a field on my Record Producer that is used to template information for a new record, when this reference field on my form changes, it fills in several fields, including an attachment field, however on these records there may be any number of additional attachments included. I need to get all associated attachments and add them to the RP before submission
I am able to add these attachments to the record using a insert Business Rule, but the requirement is that it is visible on the form before submission. I need a way to access 'add attachments' through script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2023 05:18 AM
@Spocktopus8 Hi! I think you're a lot better off doing this with a KB with the attachment attached to it, then you can show a link to the kb article at the top of the form with a display business rule using gs.AddInfoMessage(). The advantage here is that you're not copying attachments all over the place and creating a bunch of duplicates.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2023 03:03 AM
Hi @Spocktopus8 ,
I had a similar requirement, were you able to achieve the above solution.
If yes, Could you please share it with me.