Hello I have a little problem with my project which uses the Microsoft Graph API. I need to implement a REST API that retrieves users' shared calendar from an Azure AD. I use NodeJS and express for this.
Here is the handlebars:
I implemented a script (script.js) which retrieves the username of the users (the username corresponds to their email address):
Now that I get the email address of the person I want to consult his calendar I would have to pass this variable in a function of another script (graph.js):
I would like instead of the giveUser () function in the getSharedCalend to put the email address of the person who has been checked in the .hbs
Thank you in advance for your help.