Alberto Consonn
ServiceNow Employee

Hi Sruthi,

please try to use the code described in the below thread:

https://community.servicenow.com/community?id=community_question&sys_id=c27193f9db7b9fc054250b55ca96...

Hope this can fit your need.

If I have answered your question, please mark my response as correct and/or helpful.

Thank you very much

Cheers
Alberto