- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 08:09 PM
Hi, I receive a requirement that when the RITM is approved, it will create a story.
This is the workflow of the catalog item and I am planning to add run script to create story.
Is this possible?
Anyone can help with the script?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 09:34 PM
Hi @Vengeful ,
You can use the create task instead of running a script if this is a straightforward creation.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 08:27 PM
Hi @Vengeful ,
Please prove the code in the run script activity
Plz mark my solution as Accept, If you find it helpful.
Thanks & Regards,
Sumanth meda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 09:34 PM
Hi @Vengeful ,
You can use the create task instead of running a script if this is a straightforward creation.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 10:37 PM
Hi @olimanalo ,
I tried and it worked, but they want to map the catalog item variables to the description field in the Story.
Also the attachment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2024 01:18 AM
We can map this as long as there is a relationship in the rm_story table and sc_req_item table. Here's my idea:
- Create a new reference field in the Story table, reference is Requested Item record. Then on the create task activity, reference the requested item to the story record to be created. Once we have the relationship, we can get the variable.
- Regarding the attachment, once reference is established, you can create a business rule to copy attachment from parent (requested item) to child (story)
- I suggest also to transfer the workflow into a flow designer to make it easily maintainable. That is a suggestion only. That may take time, but it is worth it.
Thank you,
Oli