21-03-23 04:03 PM
Hi Everyone!
We're supposed to use Graph API in sending emails and using OAuth for the Azure cloud (thing).
What are the process steps we need to configure for doing so?
I'm thinking, Microsoft 365 - Outlook: Authenticate -> Microsoft 365 - Outlook: Send Email would be the Process actions needed for the task of sending emails, but am I wrong? Should there be a process beforehand to get a token or something? Under the Blue Prism system we have the Microsoft Graph - Outlook under the Web API Services, our HTTP Utility object is also updated... what else should be configured?
Hoping to be enlightened from you guys!
Thank you!
Chris
Answered! Go to Answer.
22-03-23 01:24 PM
Hi Chris,
A lot of what you ask depends on how you want to set this up. I'll explain below broadly how we use it, which may give you a starting point.
What you'll need:
Once you've got all of that, you'll need to run the authorisation object to obtain an authorisation token. This object will take in the details from Azure (client secret, etc), along with the username and password (if using delegated access). You then pass that authorisation token into the MS Graph APIs, along with the mailbox you want to use and anything else required by that specific action (e.g. details of the email you want to send).
NB: The authorisation token does expire after a short while, so you'll need to re-authenticate when this happens.
That's about it really. Everything else is going to be specific to how you want it to work within your robots. For us, I've created some object wrappers which add together all of the authentication/re-authentication steps, email formatting, etc. so that they're easier to embed within multiple processes.
I hope this is useful - there is some great documentation available from Blue Prism if you do a quick search, but as you say, no YouTube videos.
------------------------------
John Wilding
Robotic Architect
ReAssure Ltd
Europe/London
------------------------------
22-03-23 01:24 PM
Hi Chris,
A lot of what you ask depends on how you want to set this up. I'll explain below broadly how we use it, which may give you a starting point.
What you'll need:
Once you've got all of that, you'll need to run the authorisation object to obtain an authorisation token. This object will take in the details from Azure (client secret, etc), along with the username and password (if using delegated access). You then pass that authorisation token into the MS Graph APIs, along with the mailbox you want to use and anything else required by that specific action (e.g. details of the email you want to send).
NB: The authorisation token does expire after a short while, so you'll need to re-authenticate when this happens.
That's about it really. Everything else is going to be specific to how you want it to work within your robots. For us, I've created some object wrappers which add together all of the authentication/re-authentication steps, email formatting, etc. so that they're easier to embed within multiple processes.
I hope this is useful - there is some great documentation available from Blue Prism if you do a quick search, but as you say, no YouTube videos.
------------------------------
John Wilding
Robotic Architect
ReAssure Ltd
Europe/London
------------------------------
22-03-23 02:24 PM
Thank you, John. This overview is quite helpful. So we would need to do bullets 2 and 3 first, and then use the VBOs mentioned in bullet 1.
May we know what steps are needed in the process?
Like, I've seen an old (and could be outdated) process where the steps are:
Also, with Web API Services in Blue Prism,,, do we just update it to include the applicable keys for our use? Or is that done using an object/VBO?
Thank you.