Pass document variable to subscript?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2017 08:21 AM - edited 03-14-2019 05:33 PM
Is it possible to pass a document as an input item to a subscript? I'm trying to edit our current holiday subscript to accept a holiday document. This way we can have one holiday subscript and pass in the specific holiday table document and return the true/false holiday value. Ultimately I'd like to find a way to check if a document was passed in and if not then use a default. If that part isn't possible I can just always pass in the default. I've tried to do it and the script fails when trying to access the passed in variable.
- Labels:
-
Other Contact Center
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2017 08:52 AM
Yes you can pass a document.
Here's how I check for the document being passed in to my subflow, and use a default document if none was passed. Note that default_calendar would contain a reference to a default file.
Set calendar = (calendar == null || calendar == DOC[]) ? default_calendar : calendar
