Change approval and workflow

mbayefdieng
Giga Contributor

Hi everyone,

I am working on a change application and here is what I need.

Scenario:

  • I am looking to have separate workflow actions based on the value of the approval form field.

Questions

  • 1st, I customized the approval field on the form to add (Not yet requested, Requested, Assigned for analysis, Approved for implementation, Deferred, Canceled, Rejected). By doing this will the approver have the options listed in this field to pick from, or the approver just gets 2 options (approve, reject)?
  • 2nd, I want to have a switch control in my Normal Change Model workflow, that will do different things based on the value of the approval. How do I do that?
4 REPLIES 4

Michael Fry1
Kilo Patron

How can I restrict my changes to the approval state to the approvals from the change application only? I do not want user to see my custom options while approving something other than a change request.


You can try using removeOption(fieldName, value) in a client script if Approving for starts with or contains CHG. http://wiki.servicenow.com/index.php?title=GlideForm_(g_form)#removeOption&gsc.tab=0


damodarreddyp
ServiceNow Employee
ServiceNow Employee

hi,



To answer your questions:


1. Approval activities in workflow finally triggers an email notification on sysapproval_approver table which uses a template, so your change of approval values will not have a impact on email sent to approver.


2. How the approval values will be set, by default the approval value will be set to either Approved / Rejected based on the email inbound action / template action? Additionally any users are allowed to change the approval field on CHG request?


- If yes, then you can modify your workflow based on the approval field as start condition / with in flow by having a path


- if no, then you have to first find a way to control the approval values based on user actions and then you can modify workflow.



Hope this helps!



With regards,


Damodar