How to get the previous of variable in widget server script.

Gopal Allu
Tera Expert

Hi All,

 

I am trying the get the value of variable, but not able to get the previous value for the same variable in question_answer table.

 

If possible let me know the approach/logic for previous value to be shown using widget server script.

 

Thanks and Regards,

Allu Gopal.

1 REPLY 1

AJ-TechTrek
Giga Sage
Giga Sage

Hi @Gopal Allu ,

 

Refer the below article, which may help you.

 

https://www.servicenow.com/community/now-platform-forum/variable-sys-id-in-widget-server-side-script...

 

https://www.servicenow.com/community/developer-forum/service-portal-widget-grabbing-variable-value-o...

 

 

Please appreciate the efforts of community contributors by marking appropriate response as Mark my Answer Helpful or Accept Solution this may help other community users to follow correct solution in future.

 

Thanks

AJ

Linkedin Profile:- https://www.linkedin.com/in/ajay-kumar-66a91385/

ServiceNow Community Rising Star 2024