<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question I can't get the Request Approval UI Action to Work in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/i-can-t-get-the-request-approval-ui-action-to-work/m-p/1533842#M190768</link>
    <description>&lt;P&gt;We're on Istanbul Patch 9a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am trying to insert new steps into our Change workflow to allow for assessment of risk before approvers are asked to approve changes.&lt;/P&gt;&lt;P&gt;I have added a stage in the Process Flow called assess_risk to show in the Process Formater&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/177514iAD6CB5F97A3A58AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have added a choice called Assess Risk to the state field for change requests&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/177516iBD5C66C5B87883CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P&gt;I have added 2 steps to the workflow to set the state to "Assess Risk" and then wait for the state to move to Assess (for approval)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/177508i6D4DAEADB26F210B/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/177520iCDFE515268B62AE2/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/177518i457676B2B3703515/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The UI Action for Request Approval says this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/177522i5CEE855749871A97/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I click on the Request Approval button on the change record, nothing happens. However, when I manually change the state on the change form to assess, the workflow progresses and approvers are asked to approve the change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In advance.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Dec 2017 20:58:27 GMT</pubDate>
    <dc:creator>robinf_chadwick</dc:creator>
    <dc:date>2017-12-19T20:58:27Z</dc:date>
    <item>
      <title>I can't get the Request Approval UI Action to Work</title>
      <link>https://www.servicenow.com/community/developer-forum/i-can-t-get-the-request-approval-ui-action-to-work/m-p/1533842#M190768</link>
      <description>&lt;P&gt;We're on Istanbul Patch 9a&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am trying to insert new steps into our Change workflow to allow for assessment of risk before approvers are asked to approve changes.&lt;/P&gt;&lt;P&gt;I have added a stage in the Process Flow called assess_risk to show in the Process Formater&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/177514iAD6CB5F97A3A58AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have added a choice called Assess Risk to the state field for change requests&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/177516iBD5C66C5B87883CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P&gt;I have added 2 steps to the workflow to set the state to "Assess Risk" and then wait for the state to move to Assess (for approval)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/177508i6D4DAEADB26F210B/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/177520iCDFE515268B62AE2/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/177518i457676B2B3703515/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The UI Action for Request Approval says this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/177522i5CEE855749871A97/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I click on the Request Approval button on the change record, nothing happens. However, when I manually change the state on the change form to assess, the workflow progresses and approvers are asked to approve the change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks In advance.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 20:58:27 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-can-t-get-the-request-approval-ui-action-to-work/m-p/1533842#M190768</guid>
      <dc:creator>robinf_chadwick</dc:creator>
      <dc:date>2017-12-19T20:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: I can't get the Request Approval UI Action to Work</title>
      <link>https://www.servicenow.com/community/developer-forum/i-can-t-get-the-request-approval-ui-action-to-work/m-p/1533843#M190769</link>
      <description>&lt;P&gt;When you set the value of a state from a script, you must use the value not the name of the state. In this situation you could either do:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;current.state = 9; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OR &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; current.setValue('state',9);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I got the 9 value from your second snippet. You shouldn't need to set the approval field in your UI Action. This should be handled in the workflow.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Dec 2017 21:08:26 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-can-t-get-the-request-approval-ui-action-to-work/m-p/1533843#M190769</guid>
      <dc:creator>Tyler_MTech</dc:creator>
      <dc:date>2017-12-19T21:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: I can't get the Request Approval UI Action to Work</title>
      <link>https://www.servicenow.com/community/developer-forum/i-can-t-get-the-request-approval-ui-action-to-work/m-p/1533844#M190770</link>
      <description>&lt;P&gt;I think the problem is using the 'Set Values' activity.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Replace that with a 'Run Script' and set your values there. &amp;nbsp; Be sure to set the value like Tyler suggests. &amp;nbsp; &amp;nbsp; &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Dec 2017 21:16:37 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-can-t-get-the-request-approval-ui-action-to-work/m-p/1533844#M190770</guid>
      <dc:creator>swong212</dc:creator>
      <dc:date>2017-12-19T21:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: I can't get the Request Approval UI Action to Work</title>
      <link>https://www.servicenow.com/community/developer-forum/i-can-t-get-the-request-approval-ui-action-to-work/m-p/1533845#M190771</link>
      <description>&lt;P&gt;Thanks Tyler&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;I get that I should set the state in the workflow instead of the UI action. &amp;nbsp; I'm not sure how that will work in this case.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The process is as follows:&lt;/P&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;Fill in Change Record and Save it&lt;/LI&gt;&lt;LI&gt;Complete the Risk Assessment&lt;/LI&gt;&lt;LI&gt;Calculate Risk&lt;/LI&gt;&lt;LI&gt;Submit the Change for approval&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I need the workflow to wait until the risk assessment and risk calculation is done before going to get approval. &amp;nbsp; Hence the Wait for condition in the workflow (see the image below). &amp;nbsp; Since the workflow is waiting for the state to be Assess, I need some kind of event that causes the state to change to that value. &amp;nbsp; I can have the user manually change the state from Assess Risk to Assess, which works fine, but was looking for something more intuitive to trigger the change in state. Hence the Request Approval button.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/177512i0F69002FC417545E/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Dec 2017 00:08:51 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-can-t-get-the-request-approval-ui-action-to-work/m-p/1533845#M190771</guid>
      <dc:creator>robinf_chadwick</dc:creator>
      <dc:date>2017-12-20T00:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: I can't get the Request Approval UI Action to Work</title>
      <link>https://www.servicenow.com/community/developer-forum/i-can-t-get-the-request-approval-ui-action-to-work/m-p/1533846#M190772</link>
      <description>&lt;P&gt;I don't see a problem with changing the state in the UI action. But the current.approval = 'requested'; seems like it would go better in the workflow. &lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;We implemented the risk assessment a bit differently. Our first two states are Draft and Submitted. While in Draft you can edit the change request. After the initial save you get a UI Action called Risk Assessment which lets the user fill out a survey and then calculates the risk. We prevent them from moving forward by having an onSubmit script check if they have a value in the risk field.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Dec 2017 13:55:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-can-t-get-the-request-approval-ui-action-to-work/m-p/1533846#M190772</guid>
      <dc:creator>Tyler_MTech</dc:creator>
      <dc:date>2017-12-20T13:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: I can't get the Request Approval UI Action to Work</title>
      <link>https://www.servicenow.com/community/developer-forum/i-can-t-get-the-request-approval-ui-action-to-work/m-p/1533847#M190773</link>
      <description>&lt;P&gt;That's great food for thought Tyler and has caused a change in direction. &amp;nbsp; i'm no longer using the Request Approval UI Action.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;In the first Set Values action, I'm setting the state to Assess Risk and setting the Risk value to None.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The wait condition waits for the risk value to be any one of the possible values, other than none. &amp;nbsp; With the field read only, the only way to get a risk value in the field is to fill out the Risk Assessment and calculate the risk.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Dec 2017 16:57:45 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/i-can-t-get-the-request-approval-ui-action-to-work/m-p/1533847#M190773</guid>
      <dc:creator>robinf_chadwick</dc:creator>
      <dc:date>2017-12-20T16:57:45Z</dc:date>
    </item>
  </channel>
</rss>

