NeedIt Exercise - Answer to Access Control Exercise

Joel DSilva
Tera Contributor

I am unable to identify what the solution is to this exercise under https://developer.servicenow.com/dev.do#!/learn/learning-plans/yokohama/new_to_servicenow/app_store_...

 

As a user with the NeedIt user role, Beth Anglin is unable to create NeedIt records because the fields are not visible on the form to configure a new record. Your challenge is to create an Access Control record to allow Beth to see the fields to be able to create NeedIt records. Use these hints to help you and view the solution if you get stuck.

  • You only need one Access Control record.
  • What type of Access Control do you need?
  • What roles and conditions need to be applied in the Access Control record?
  • The isNewRecord() method may be helpful.

 

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"  so obviously I am missing something. Let me know. Thank you. 

1 ACCEPTED SOLUTION

Nishant8
Giga Sage

Hello @Joel DSilva, 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?

- should be read

Nishant8_0-1751178836516.png

- assign role as x_****.Needit_user

- write following script in script section

answer = current.isNewRecord();

Nishant8_1-1751178965255.png

 

Regards,

Nishant

View solution in original post

2 REPLIES 2

Nishant8
Giga Sage

Hello @Joel DSilva, 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?

- should be read

Nishant8_0-1751178836516.png

- assign role as x_****.Needit_user

- write following script in script section

answer = current.isNewRecord();

Nishant8_1-1751178965255.png

 

Regards,

Nishant

Joel DSilva
Tera Contributor

Thank you @Nishant8  this worked. I am guessing it was incorrect for me to 'return' from my script i.e. return current.isNewRecord().