Catalog Item Creating Either Request (RITM) or Incident - Attachment Issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hi Everyone,
I have a issue where users can submit either a Request or an Incident from a single Service Catalog form.
Current Design
User selects Type:
- Request
- Incident
If Request is selected:
- Standard Service Catalog submission occurs.
- REQ, RITM, and Catalog Task records are created through Flow Designer.
If Incident is selected:
- No REQ/RITM should be created.
- An Incident record is created directly using an onSubmit Catalog Client Script, GlideAjax, and Script Include.
Issue
The catalog item uses the standard Attachments control available on Service Catalog forms.
When the user selects Request, the attachments are copied correctly because the platform creates the REQ/RITM records.
However, when the user selects Incident, the Incident record is created successfully through GlideAjax, but the attachments uploaded on the catalog form are not copied to the Incident.
Question
Has anyone implemented a similar solution where a single catalog item can create either:
- REQ/RITM (Request path)
- Incident only (Incident path)
If so:
- What is the best practice for handling attachments uploaded on the catalog form?
- Can the catalog form attachments be copied to the Incident record after creation?
- Is there a recommended approach using:
- GlideSysAttachment
- Business Rule
- Script Include
- Flow Designer
- Is using a Catalog Item for Incident creation the right approach, or would a Record Producer be a better design?
Any suggestions or examples would be greatly appreciated.
Thanks!
