You can find a full tutorial on how to create a Microsoft Office Taskpane Addin here.
https://stefan-weber.medium.com/build-a-deepl-translate-add-in-for-microsoft-outlook-with-outsystems-a59a9dd34e3e
Client Action
OfficeHost_AccessTokenGet
Retrieves the users access token from the Office Host. Returns IsSuccess true if a token could be retrieved and the token itself.
Server Action
OfficeHost_AccessTokenLogin
Takes the token as input, along with the targeted audience (taken from Azure App registrations) and performs an OutSystems login.
Returns IsSuccess true and UserId if successful.