Variable value not been passed to custom activity
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2024 04:21 PM
Hi All,
I am new to serviceNow workflow development. We have a catalog items which is to collect staff information as part of account creation process. The form has a workflow including custom activity at the back to save data submitted via this form into our own database table using powershell script command. There is a personal email field in the form and wasn't saved to database. Due to new business requirement, we need to save the personal email into database as well.
I added the new field in workflow activity, inputs in custom activity and the powershell script. When test input in powershell script custom activity, it works. However, it is not working if I test submit the form. It looks like the value not been passed from the form to the activity. Can someone please advise where got wrong?
Please see screen shots for more details.
- Variable in catalog item
- Pass variable to custom workflow
- Add it to the input of custom activity
- Map variables to powershell script: