In servicenow, i have a reference field called asset on Ritm and sctask table. My…
- User
In servicenow, i have a reference field called asset on Ritm and sc_task table. My requirement is when i click on asset field it will show records in ritm records and view is asset but same field doesn't show any record on sc_task form EUS view. How to solve this problem. Give complete step by step
- Assistant
To solve the issue where the reference field 'asset' behaves differently in two different forms/views (
RITMandsc_tasktables) in ServiceNow, you can follow these steps to configure the behavior differently depending on the context (view or form). The likely root cause is view-specific configurations or ACLs impacting the display of the reference field in different views.Step-by-Step Guide
1. Verify the Configuration of the Asset Field in Both Forms
Firstly, check if the reference field has any view-specific configurations or scripts applied:
-
Navigate to the Form Configuration:
- Go to the respective tables (
sc_req_itemfor RITM andsc_task). - Open any record.
- Right-click on the form header and select "Configure" -> "Form Layout".
- Go to the respective tables (
-
Check the Asset field settings to ensure it is added to the forms and see if there are any differences in settings like view rules or UI policies.
2. Inspect ACLs on the Asset Field
Access Control Lists (ACLs) might be restricting visibility:
- Check ACLs:
- In the filter navigator, search for "Access Control (ACL)".
- Search for ACLs that apply to the
Assetfield specifically and compare any differences between thesc_req_itemandsc_tasktables.
3. Update or Create View-Specific ACLs
If necessary, you may need to adjust or create new ACLs to handle view-specific permissions:
- Modify or Create an ACL:
- Go to Access Controls and edit/create an ACL for the
assetfield where thetableissc_task. - Define the ACL by setting the required permissions, and make sure to set the correct view (EUS).
- Go to Access Controls and edit/create an ACL for the
4. Verify Reference Qualifiers
Reference Qualifiers can restrict which records are displayed in a reference field:
- Check/Modify Reference Qualifiers:
- Again, go to Form Design by opening a record and right-clicking on the form header.
- Find the
assetfield, and click on the Advanced view if available. - Check the Reference Qualifier to see if there are any conditions or scripts that could behave differently based on the view.
5. Check for View-Specific Scripts/UI Policies
Sometimes custom scripts or UI policies are applied to views:
- Inspect Scripts and Policies:
- Search for "UI Policies" and "Business Rules" in the navigator.
- Check for any scripts or policies that might be applying only to the
sc_tasktable in the EUS view.
6. Testing Changes
After making changes, always ensure to test both views:
- Open records in both
sc_taskandRITMin the respective views. - Verify that the
assetfield behaves as expected in both areas.
7. Clear Cache and Sessions
Sometimes, changes don’t reflect immediately due to caching:
- Clear cache: Log out, clear browser cache, or use an incognito window to test the changes.
Final Note
If configuration changes are being made in a production instance, consider testing in a development or staging instance first. If the configuration appears complex or risky, involving a ServiceNow administrator or consultant would be advisable to ensure compliance and operational continuity.
By following these steps, you should be able to configure the
assetreference field in ServiceNow to behave appropriately for different tables and views. Remember, changes in major platforms like ServiceNow can have large impacts if not thoroughly tested. -
- User
I cant find anything
- Assistant
If you’ve checked all the likely configurations (including Form Layouts, ACLs, Reference Qualifiers, UI Policies, and Business Rules) and still see no differences or solves, it might be helpful to inspect possibly subtler aspects of the configuration. Here’s a deeper step-by-step approach to further troubleshooting or validating settings, which could be affecting the visibility of assets in your
sc_taskform within the EUS view:Step-by-Step Deeper Dive
1. Recheck View-Specific Forms
Sometimes, form views can be overlooked. Confirm that you are modifying the correct form view:
- Open an
sc_taskrecord. - Right-click on the form header and select "Configure" -> "Form Layout".
- Carefully check the view selected in the dropdown present at the top left of the dialog. Ensure you are working on the EUS view.
2. Script Includes or Client Scripts
Check if there are any Script Includes or Client Scripts specific to the view or table that manipulate reference fields:
-
Client Scripts:
- Go to System Definition > Client Scripts.
- Filter by table (
sc_task) and check if there are scripts affecting theassetfield.
-
Script Includes:
- Go to System Definition > Script Includes.
- Search for scripts that are executed for the
sc_taskform operations which might impact the reference population.
3. Reassess Reference Field Properties
There could be details in the
assetreference field properties affecting visibility:- Field Properties:
- In Form Layout, click the gear icon next to the
assetfield. - Check properties like "Attributes,” which might have parameters such as
ref_contributionsaffecting functionality.
- In Form Layout, click the gear icon next to the
4. Analyze Dictionary Entries
The dictionary for the field might have conditions or attributes setting behavior for the field:
- Dictionary:
- Go to System Dictionary.
- Search for entries for the
assetfield tied to thesc_tasktable specifically. - Review conditions or attributes set there.
5. Re-examine Data Policies
Data policies can affect data visibility on forms:
- Data Policies:
- Navigate to Data Policy > Policies.
- Check for policies affecting
sc_taskand reference fields.
6. Additional Layers of Customization
Investigate other customizations such as UI pages, embedded widgets, or advanced conditional formatting scripts, which might be less obvious but could influence the rendering:
- Embedded Solutions:
- Consider whether there are any customized embedded pages or widgets within the form.
- Review any conditions or coding therein that might impact data displays.
7. Consult Logs and Debug
If these configurations yield no clues, proceed to look into error logs or debugging:
- Error Logs:
- Check logs under System Logs > All Logs for errors when accessing the
sc_taskform in EUS view.
- Check logs under System Logs > All Logs for errors when accessing the
- JavaScript Debugging:
- Open the browser’s developer console.
- Check for any console errors or warnings when loading the EUS view on
sc_task.
8. Community and Support
If local analysis doesn't resolve the issue, consider posting the issue in ServiceNow community forums or reaching out to ServiceNow technical support for more specific aid.
Final Recommendations
Be meticulous with every step. Sometimes, settings or configurations that impact functionality can be deeply nested or not apparent without a detailed inspection. If the system is considerably customized or the issue persists, getting a second pair of eyes from a colleague or a consultant specializing in ServiceNow might uncover overlooked configurations or custom code affecting the behavior.
- Open an