17-11-22 02:59 PM
Hi,
we are facing an issue with HTTP request by Send Mail with Microsoft 365 – Outlook.
Authenticate works fine because we a Auth Token (AccessToken) back when we use our TenantID, ClientID and Client Secret.
But when we go futher the process we get a error in Utility - HTTP when we do the HTTP request.
The error is:
{"error":{"code":"InvalidAuthenticationToken","message":"Access token is empty.","innerError":{"date":"2022-11-17T13:26:30","request-id":"507dcf7a-db97-4f38-9f10-df1bf5a4952a","client-request-id":"507dcf7a-db97-4f38-9f10-df1bf5a4952a"}}}
Could anyone please help me on this and let me know what caused this error?
Thanks in advance...
Regards,
Patrick
17-11-22 05:35 PM
21-11-22 01:32 PM
@ewilson Thanks for your help.
I have imported the latest release of Utility - HTTP VBO and now sending an email works.
Only this works when I run the process from studio and does not work when I run the process from the control room. Then I see the following messages in the process log:
Stage Name: Get Auth Token - Client Secret
Result: ERROR: Internal : Could not run the object because one of the code stages has a compile error, use Check for Errors for a list of problems
Stage Name: Microsoft 365 - Outlook::Authenticate
Result: ERROR: Internal : Could not run the object because one of the code stages has a compile error, use Check for Errors for a list of problems
Do you have any idea what could be causing this?
21-11-22 02:01 PM
21-11-22 02:14 PM
@Eric Wilson ,Thanks again.
When I run the process from Control Room I'm running it on a different Runtime Resource than my local dev machine.
I forgot to place the MSAL DLL on the Runtime Resource.
Now it works both ways.