workflow - scratchpad - List collector variable -catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2024 01:06 AM
Hi,
I have a requirement as, there is a list collector variable(back end :request_access)on a catalog item, this has to be stored in runscript using scratchpad in workflow, the stored value has to use in catalog task to set cmdb_ci field based on following conditions. Any help on this team.
Type: Catalog task
Stage: Fulfillment
Script:
a. If g_scratchpad value of 'What report access is required?' is 'Treasury Statements' or 'Other' is selected then Configuration Item = Treasury Statements [sys_id=5f605f3647e2715c109bb000126d4336]
b. If g_scratchpad value of 'What report access is required?' is Leasing then Configuration Item = Leasing [sysID = ccb63b1d1bfdce10c98ac6d2604bcb66]
c. If g_scratchpad value of 'What report access is required?' is Working Capital then CI is Working Capital Configuration Item = [sysID = f8273b1d1bfdce10c08dc7d2604bcb6b]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-30-2024 01:39 AM - edited 04-30-2024 01:48 AM
@Gousia Syed1 - Why don't you use flow (Low to no code platform) instead of Workflow?
If you still prefer to use workflow then you can access catalogue item variables directly using the current.variables.variable_name after you set the "Advanced' field to true which allows you to write your own script to set the value of the catalog task.
Thanks & Regards,
Vasanth