How to update field through workflow?

Ankit Kashyap
Kilo Contributor

I have created a table in which user can change their department by entering their present department and new department.

I have a requirement that when user submit the request then their manager's approval will be trigered and after  the manager's approval their department will be changed and auto updated in sys_user table.

Here is the table 

find_real_file.png

1 ACCEPTED SOLUTION

Tadz
Tera Guru
Tera Guru

Hi Ankit,

 

On what I understand, you want to update the department in sys_users table after managers approval.

You can achieve this through Run Script - workflow activity.

And a update GlideRecord.

 

Please see references.

View solution in original post

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Ankit,

you can use set value activity to set value from workflow

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur ,

could you please explain me how can i achieve that and is it possible to update other table's field using set values activity in workflow.

 

Thanks 

Ankit

Hi Ankit,

 

To update values in other table you can make use of 'run script' avctivity.

 

Thanks,

vm1104

Hi Ankit,

You can only use set value activity of workflow to set current table's field and not other.

for other table you need to query and update

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader