Run Async code in uipath

Hi All,

Actually, I am trying to add attachments to mail using Microsoft graph SDK. Here the SDK uses asynchronous call for executing the methods. The code works as expected in VS. But when i try executing it from uipath, the bot is getting stopped. I have tried calling result functions and asynccodeactivity. though, the bot stops.

Kindly help me on this issue.

Thanks in advance.