@Manjari_T try using outlook 365 tools
this will solve the requirement.
Outlook 365 Input Tool (alteryx.com)
Alternatively, if you want to stick with python tool you can connect to the Microsoft Graph API and query the desired inbox. We configured the app in Azure and got the credentials, then you are set to call it from python.