Change model

Alekhya12
Tera Contributor

HI, 

I have created a custom change model with flow designer and trying to add that create change to incident context menu but if i click this ui action it is redirecting me to undefined page. Can anyone let me know other than this UI action is there any other script includes where i have to modify something

1 REPLY 1

Amit Gujarathi
Giga Sage
Giga Sage

Hi @Alekhya12 ,
I trust you are doing great.

As a ServiceNow technical architect, I understand that you have created a custom change model using the flow designer in ServiceNow. You are facing an issue where clicking on the "Create Latent Change" UI action redirects you to an undefined page. You would like to know if there are any other script includes that need modification.

Looking at the provided code, it seems that the issue may lie within the UI action itself. The code snippet you shared is the script associated with the UI action. It creates a new latent change request and populates it with relevant information from the current incident record. After inserting the change request, it updates the incident record and sets the redirect and return URLs.

To troubleshoot the issue, I recommend the following steps:

  1. Verify the UI action configuration: Ensure that the UI action is properly configured and associated with the correct table (Change Request) and target script.
  2. Check for script includes: Look for any other script includes related to the creation of change requests or the UI action. Examine their code to see if any modifications are required.
  3. Review system logs: Check the system logs in ServiceNow for any error messages or warnings related to the UI action or the redirection issue. This can provide additional information about the problem.

Based on the code provided, it does not appear that there are any other script includes that need modification. However, to confirm this, you should review the entire codebase and check for any other relevant script includes that might affect the functionality of the UI action.


Was this answer helpful?


Please consider marking it correct or helpful.


Your feedback helps us improve!


Thank you!


Regards,


Amit Gujrathi