Variable value not been passed to custom activity

GraceCai
Kilo Contributor

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

 

GraceCai_1-1731024926090.png

 

 

- Pass variable to custom workflow

GraceCai_0-1731024896314.png

 

- Add it to the input of custom activity 

GraceCai_2-1731025026916.png

 

- Map variables to powershell script:

GraceCai_3-1731025084885.png

 

GraceCai_5-1731025176220.png

 

 

0 REPLIES 0