It seems that I solved my issue.
The last error I get was following:
"This message is for C/AL programmers:
The call to member GetFolderFromID failed."
I change my code from
olNamespace := olApplication.GetNamespace('MAPI');
olFolder := olNamespace.GetFolderFromID(EDISetup."Outlook Folder ID");
to
olSession := olApplication.Session;
olFolder := olSession.GetFolderFromID(EDISetup."Outlook Folder ID");
The Outlook Client which was opened is the past is now closed.