Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Form views for different catalog items

davidb2000
Kilo Contributor

Hi all,

I have attempted to build out a new custom application that captures user details for Employee Administration

Reason we are not using the inbuilt hr functionality is a long story.

Category / Application Menu:

        Employee Changes

Catalog Items / Modules:

        Onboarding

        Offboarding

Tables:

        Employee Administration Changes

        Employee Administration Tasks

Ideally a user will be presented with a form view when they click on 'Onboarding' and a different form view for when they click on 'Offboarding' - is that possible?

Is there some comprehensive documentation on how to go about creating an application from scratch?

forgive my lack of knowledge

1 ACCEPTED SOLUTION

It would appear that the user you are impersonating does not have x_orin_employee_ad_employee_administration role. By default that role is required for your custom app & table. Without read access they won't have access to the record or the fields. Two options:


  • Grant the role to the users you want to access the table
    • Be careful - this role also may allow delete access!
  • Update the read, write, and create ACL on the table to include public along with your app's custom role


Short answer - review the roles the user has and understand the ACLs on that table!



References:


http://wiki.servicenow.com/index.php?title=Using_Control_Rules


Security Best Practices - ServiceNow Wiki


Contextual Security - ServiceNow Wiki


View solution in original post

5 REPLIES 5

Haritha Kotturi
Giga Contributor

Hello,

For List view:

You need to edit the module. There is fields called 

 
View name = your specified view name and Argument = &sysparm_view_forced = true
 
  
For form view:
 
You need to write view rules else it'll display based on user prefered view.