Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2019 12:30 PM
I have a service catalog item with an MVRS with a few fields. I have a link on the page to a spreadsheet template I want to allow users to fill out and upload to populate the MVRS.
Can I do this?
Solved! Go to Solution.
Labels:
- Labels:
-
Scripting and Coding
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-2019 08:35 AM
It's possible - I did it like so:
- Create a workflow script task that
- If an attachment exists for the SC item, I create an Excel attachment datasource
- Copy the attachment from the SC item to the Excel data source
- Import from the data source created in #3 into an Import Set
- Query the Import Set table and read the imported rows, converting them into Javascript objects and pushing them onto an array
- Set the MVRS value to the JSON.stringify(...) value of the array created in step 5
I do data validation and all that, and add comments in the task if rows in the spreadsheet contain invalid data.
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2019 12:05 PM
Here is the article about it with a link to the script: