How to revert a widget back to oob

B-Bob
Tera Contributor

I have modefied a widget and would like to keep it as it is, but now I also need the widget in the oob version. I now have a clone, but unfortunately this is also modified, how can I get a widget in the OOTB version?

1 ACCEPTED SOLUTION

Juhi Poddar
Kilo Patron

Hello @B-Bob 

Reverting back to the initial version is the preferred method, but if you need to keep both the modified widget and the OOTB version without reverting, you can follow these steps:
  1. Obtain the XML File: Get the XML file of the OOTB widget (e.g., from a fresh instance or by exporting it from another environment).

  2. Navigate to the Widget Record: Go to Service Portal > Widgets in your ServiceNow instance.

  3. Create a New Widget:

    • Click on New to create a new widget record.
    • Give it a unique name to avoid overwriting the modified widget.
  4. Import the XML:

    • In the newly created widget record, look for the Import option (this is usually available in the form's header or context menu).
    • Import the XML file directly to bring in the OOTB content.

This method will allow you to import the OOTB widget into your instance without affecting the modified version, keeping both widgets separate. You can then configure the OOTB widget as needed.

 

"If you found my answer helpful, please like and mark it as an "accepted solution". It helps others find the solution more easily and supports the community!"

 

Thank You
Juhi Poddar

View solution in original post

4 REPLIES 4

Hemanth M1
Giga Sage
Giga Sage

Hi @B-Bob ,

 

Can you see the Versions list under the widget related list (Service Portal > Widgets and open your widget)? If so, you can revert to the very first version of the widget.

 

HemanthM1_0-1734445740026.png

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

Robbie
Kilo Patron
Kilo Patron

Hi @B-Bob,

 

ServiceNow has in built version control that be leveraged for this very purpose.

Widgets, like other records such as business rules, client scripts etc (to name only a few), maintain the version history.

Out of Box, a 'Versions' tab is not visible, but it can easily displayed by configuring the Related Lists.

 

Open the widget via the 'Widgets' link under 'Service Portal' in the Navigation menu.

Once you have the widget open in the Platform view, right click at the top of the form and click on 'Configure' > 'Related lists'.

From here select the 'Versions' field from the left hand side of the 'slush bucket' and move it to the right.Once saved and 'Versions' tab.

The great thing about this tab is you not only have the ability to compare the difference between each versions, but you can also revert to the version you wish... which in your case would be the first version. I would however compare first so you know what changes and functionality will be reverted.

 

Screenshot 2024-12-17 at 13.53.07.png

 

To help others (and for me to gain recognition for my efforts), please mark this response correct by clicking on Accept as Solution and/or Kudos.





Thanks, Robbie

Juhi Poddar
Kilo Patron

Hello @B-Bob 

Reverting back to the initial version is the preferred method, but if you need to keep both the modified widget and the OOTB version without reverting, you can follow these steps:
  1. Obtain the XML File: Get the XML file of the OOTB widget (e.g., from a fresh instance or by exporting it from another environment).

  2. Navigate to the Widget Record: Go to Service Portal > Widgets in your ServiceNow instance.

  3. Create a New Widget:

    • Click on New to create a new widget record.
    • Give it a unique name to avoid overwriting the modified widget.
  4. Import the XML:

    • In the newly created widget record, look for the Import option (this is usually available in the form's header or context menu).
    • Import the XML file directly to bring in the OOTB content.

This method will allow you to import the OOTB widget into your instance without affecting the modified version, keeping both widgets separate. You can then configure the OOTB widget as needed.

 

"If you found my answer helpful, please like and mark it as an "accepted solution". It helps others find the solution more easily and supports the community!"

 

Thank You
Juhi Poddar

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @B-Bob 

You can go to versions in the related list of widget record and revert to your desired version. (In this case, the OOB version).

 

Please mark the answer as helpful and correct if helped. 

Kind Regards,

Ravi Chandra