Fix code with Remediate Scan Engine findings with Now Assist

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 6분
  • As a ServiceNow developer, you can access code fix suggestions when an error is detected and apply those suggestions, if applicable.

    시작하기 전에

    Complete the pre-requisites and setup steps in order to activate Resolve Scan Engine findings with Now Assist. See Configure Remediate Scan Engine findings with Now Assist for details.

    팁:
    • Prioritize high-severity findings first
    • Review the explanation to understand why the original code was flagged
    • Use the code comparison view to quickly identify what changed
    • Test fixes in a sub-production environment before promoting
    • Provide feedback on rejected fixes to help improve AI recommendations

    Role required: sn_impact_gen_ai_ai_code_fix_user, impact developer

    프로시저

    1. Navigate to All > Impact > Platform Health > Findings Dashboard.
      This view displays all fixable Platform Health findings assigned to you. Filter and sort findings by impact to instance, category, or application. The following AI fix statuses are available:
      Status Definition
      Not requested No AI fix has been requested for this finding.
      Pending Now Assist is reviewing the request and generating suggested fixes.
      Ready for review Once Now Assist processes your request to list findings eligible for AI fixes and generates the suggested fixes, the AI status updates to ready for review.
      Reviewed Status once the developer has reviewed Now Assist suggested fixes
      Accepted Status if the developer accepts the Now Assist suggested fixes to apply the fix as-is. The code is updated and the finding is marked resolved.
      Rejected Status if the developer does not accept the Now Assist suggested fixes.
      Error An error is returned and you should reselect the findings for Now Assist batch processing.
    2. Select one or more findings to remediate using AI assistance.
    3. Select Fix with Now Assist to start the batch processing.
      • A modal displays a summary and confirmation.
      • Not all findings are eligible for AI fixes and non-AI-fixable findings are filtered from the Open findings list. See Remediate Scan Engine findings with Now Assist for information on findings that are eligible for AI resolution.
      • Once Now Assist processes your request and generates the suggested fixes, the AI status updates to ready for review.
    4. Select Review AI Fixes to open the review page.
      • Use the Application drop-down to select the application you want to review.
      • Each file with AI fixes available are displayed menu.
    5. Select a file to view its proposed fixes.
      표 1. Review AI Fixes table
      Field Description
      Code Comparison Review the AI-suggested fixes side-by-side with the original script
      AI Finding Details View the AI reasoning behind each fix, including why the original code violates best practices
      Record Quick access to the actual record for additional context
    6. Review the proposed changes carefully.The AI-generated code should be validated for accuracy and tested before applying to production.
      중요사항:
      Review the proposed changes carefully. The AI-generated code should be validated for accuracy and tested before applying to production.
    7. Choose one of the actions:
      • Accept: Apply the fix as-is. The code is updated and the finding is marked resolved. Ensure you are in the correct scope.
      • Revise with Now Assist: Edit the proposed fix before applying. Use this when the AI recommendation needs minor adjustments. This will allow you to prompt the model for an updated response.
      • Reject: Decline the fix and resolve the finding manually. Use this when the AI recommendation doesn’t fit your use case.
      Changes are saved to the update set in context.
    8. Verify the code works as expected in your development environment and run applicable tests before promoting to production.
      중요사항:
      All fixes are generated by AI and should be reviewed for accuracy before applying. You remain responsible for validating code changes in your environment.