@Ravi Kumar
We are mainly responsible for general issues of Office desktop applications, but your question seems to be more related to code, which is not supported on Q&A forum.
To better help you, I would suggest you post the question on the following forums.
Office developer community
Office 365 Developer group community
Thanks for your understanding.
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.