Use the UiPath.MicrosoftOffice365.Activities package that will use Microsoft Graph API endpoints.
Check here for more details:
https://docs.uipath.com/activities/other/latest/user-guide/about-the-microsoft-office-365-activities-pack
https://docs.uipath.com/activities/other/latest/user-guide/office365-project-compatibility
https://docs.uipath.com/activities/other/latest/user-guide/office365-setup