How can I print out a message in the system log?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2021 02:28 AM
Hi all, Im new to ServiceNow I would like some help with:
How can I print out a message in the system log?
The workflow assigned to this catalogue item should print out a log in the system logs to say "User <name of the user> has ordered more <RAM or CPU> for server <server name>". The same message should be written also in the Work Notes field of the Requested Item. Set the
state of the RITM to Closed complete after writing the messages in the previous step.
Many thanks!
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2021 04:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2021 05:00 AM
Hi,
you must have associated workflow to your catalog item.
Once you link workflow with catalog item.
Now when you submit catalog item it would trigger the workflow
Within that workflow you should use run script activity
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2021 05:13 AM
Im sorry, I can't find what you are trying to assist me with.
The run script workflow activity link has very little info to help me further.
Would you mind to be more specific? Im just new with ServiceNow. But im doing my best!
So what I have trouble with from your reply:
Within that workflow you should use run script activity
Is this what you mean with linking to catalog item (I chose a random one, Or should i make a new one?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2021 05:28 AM
Hi,
So you have workflow associated to your catalog item as per above image
Now open that workflow from workflow editor
Checkout that workflow
Then use run script activity and add the script
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2021 05:41 AM
Why can't I drag the run script to the canvas?