<?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 Re: NeedIt Exercise - Answer to Access Control Exercise in Community Central forum</title>
    <link>https://www.servicenow.com/community/community-central-forum/needit-exercise-answer-to-access-control-exercise/m-p/3303473#M3533</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/345317"&gt;@Joel DSilva&lt;/a&gt;,&amp;nbsp;I think you are supposed to create only one ACL for this task. Can you please remove all the new ones created and try to create new ACL as below?&lt;/P&gt;&lt;P&gt;- should be read&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nishant8_0-1751178836516.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/451727iBCA061C5B5C3EAB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nishant8_0-1751178836516.png" alt="Nishant8_0-1751178836516.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- assign role as&amp;nbsp;&lt;SPAN&gt;x_****.Needit_user&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- write following script in script section&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;answer = current.isNewRecord();&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nishant8_1-1751178965255.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/451728iF50840D64C7465D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nishant8_1-1751178965255.png" alt="Nishant8_1-1751178965255.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;</description>
    <pubDate>Sun, 29 Jun 2025 06:38:21 GMT</pubDate>
    <dc:creator>Nishant8</dc:creator>
    <dc:date>2025-06-29T06:38:21Z</dc:date>
    <item>
      <title>NeedIt Exercise - Answer to Access Control Exercise</title>
      <link>https://www.servicenow.com/community/community-central-forum/needit-exercise-answer-to-access-control-exercise/m-p/3303443#M3532</link>
      <description>&lt;P&gt;I am unable to identify what the solution is to this exercise under&amp;nbsp;&lt;FONT color="#993366"&gt;&lt;A href="https://developer.servicenow.com/dev.do#!/learn/learning-plans/yokohama/new_to_servicenow/app_store_learnv2_securingapps_yokohama_exercise_access_controls" target="_self"&gt;https://developer.servicenow.com/dev.do#!/learn/learning-plans/yokohama/new_to_servicenow/app_store_learnv2_securingapps_yokohama_exercise_access_controls&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;As a user with the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;NeedIt&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;user role, Beth Anglin is unable to create&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;NeedIt&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;records because the fields are not visible on the form to configure a new record. Your challenge is to create an&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Access Control&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;record to allow Beth to see the fields to be able to create&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;NeedIt&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;records. Use these hints to help you and view the solution if you get stuck.&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT color="#0000FF"&gt;You only need one&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Access Control&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;record.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#0000FF"&gt;What type of Access Control do you need?&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#0000FF"&gt;What roles and conditions need to be applied in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Access Control&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;record?&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#0000FF"&gt;The isNewRecord() method may be helpful.&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried adding a new read,write,create control with * access and returning IsNewRecord() from the script and the role is the x_****.Needit_user. Nothing allows Beth to view the form when selecting "Create new"&amp;nbsp; so obviously I am missing something. Let me know. Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jun 2025 04:54:59 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/needit-exercise-answer-to-access-control-exercise/m-p/3303443#M3532</guid>
      <dc:creator>Joel DSilva</dc:creator>
      <dc:date>2025-06-29T04:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: NeedIt Exercise - Answer to Access Control Exercise</title>
      <link>https://www.servicenow.com/community/community-central-forum/needit-exercise-answer-to-access-control-exercise/m-p/3303473#M3533</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/345317"&gt;@Joel DSilva&lt;/a&gt;,&amp;nbsp;I think you are supposed to create only one ACL for this task. Can you please remove all the new ones created and try to create new ACL as below?&lt;/P&gt;&lt;P&gt;- should be read&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nishant8_0-1751178836516.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/451727iBCA061C5B5C3EAB8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nishant8_0-1751178836516.png" alt="Nishant8_0-1751178836516.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- assign role as&amp;nbsp;&lt;SPAN&gt;x_****.Needit_user&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- write following script in script section&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;answer = current.isNewRecord();&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nishant8_1-1751178965255.png" style="width: 400px;"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/451728iF50840D64C7465D0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nishant8_1-1751178965255.png" alt="Nishant8_1-1751178965255.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jun 2025 06:38:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/needit-exercise-answer-to-access-control-exercise/m-p/3303473#M3533</guid>
      <dc:creator>Nishant8</dc:creator>
      <dc:date>2025-06-29T06:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: NeedIt Exercise - Answer to Access Control Exercise</title>
      <link>https://www.servicenow.com/community/community-central-forum/needit-exercise-answer-to-access-control-exercise/m-p/3305311#M3549</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/117150"&gt;@Nishant8&lt;/a&gt;&amp;nbsp; this worked. I am guessing it was incorrect for me to 'return' from my script i.e. return current.isNewRecord().&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jul 2025 00:58:02 GMT</pubDate>
      <guid>https://www.servicenow.com/community/community-central-forum/needit-exercise-answer-to-access-control-exercise/m-p/3305311#M3549</guid>
      <dc:creator>Joel DSilva</dc:creator>
      <dc:date>2025-07-01T00:58:02Z</dc:date>
    </item>
  </channel>
</rss>

