Dynamically selecting Outlook Account to send e-mail from

Hello,

I would like my UiPath StudioX automation to create an e-mail draft using an Outlook Mailbox specified by name in an Excel file that is the input for my process.

The “Use Outlook Account” resource only allows typing the name of the account to be used directly into the properties window at design time. Instead, I would like to treat the account as a variable and the automation to select the appropriate account to send e-mails from at run-time, reading the desired account name from an Excel workbook cell.

Is this possible? Any help would be greatly appreciated.

Hi @dhejduk

I am sure @studioX will jump in to correct me if I’m wrong, but I think StudioX is meant to automate tasks at hand, and doesn’t support the concept of input/output arguments.

This is achievable in Studio profile, where you can specify an input argument from the Arguments panel and then use it from your Mail activities.

1 Like

Yes, unfortunately you are not able to achieve what you want at this point. The concept is that StudioX is able to send emails only using configured accounts on the computer.
Might be an improvement for later releases.

1 Like

That is kind of want I want to achieve. The thing is I will want to deploy the robot created in StudioX to other users in my department through Orchestrator. I would like the robot to be able to draft e-mails from any Outlook account they have configured in their Outlook application. However, I do not want to specify the exact account at design time, instead I was hoping I can somehow include the name of the account to be used in an Excel input file used by the robot.

Example: My robot downloads data to a file from an online application, saves the data on a local drive and should draft an e-mail with the data as an attachment. The robot does this set of activities for each row specified in a configuration Excel file - each row specifies what kind of data should be downloaded, where to save it and how to populate the e-mail. I would also like to be able to specify the Outlook account to be used (to send from) as part of this configuration, but from the developer’s position in StudioX I can only set the “from account” field as static and I can only choose from the set of accounts I have currently mapped in my own Outlook application at design time.

Hi @dhejduk
Thanks for your feedback, it makes sense.

I will add this to the backlog of next StudioX version.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.