Primo RPA Global
  • Primo RPA
  • Primo Studio
    • Useful links
    • System requirements
    • Editions
    • Installation and updates
      • Robot Core manual installation and execution
      • Updates
    • Launching and getting started
      • Getting started
    • Studio settings
      • Extensions and plugins install
        • Chrome
        • FireFox
        • Opera (Deprecated)
        • Edge
        • Yandex
        • RDP
        • Java
      • Automated installation of extensions for browsers
      • Updating Selenium WebDriver
      • NuGet
      • Fine-tuning
        • Multi-session work
    • Working with projects
      • Analyzing projects
      • Creating libraries
      • Dependencies
      • Namespaces
    • Working with processes
      • Sandbox
    • Working with sequences
    • Working with workflows
    • Working with Code
    • Working with elements
    • Process execution and debugging
      • Testing
    • Script recording
    • Log
    • Variables and arguments
    • Search
    • Search patterns
    • Release control
    • Traffic record
    • UI inspector
    • SAP Inspector
    • Mobile devices
    • Panel management
    • Robot
      • Robot editions
    • RDP
    • Tools
      • Import
      • OCR pattern editor
      • Dialog designer
  • Elements
    • Base elements
      • 1C
        • 1C (local)
        • 1C (server)
        • Execute query
      • Assistant
        • Show hint
      • Browser
        • Open browser
        • Attach browser
        • Activate browser
        • Text input
        • Element vanish
        • Close browser
        • Mouse click
        • Navigate
        • Get attribute
        • Get list
        • Get text
        • Element exists
        • Read table
        • Get image
        • Select item
        • Set focus
        • Anchor
        • Execute JS
        • Back
      • Clipboard
        • Get from clipboard
        • Copy to clipboard
      • Collections
        • Add to array
        • Table to CSV
        • Table filter
      • Cryptography
        • Set Credentials
        • Get Credentials
        • Delete Credentials
      • Data
        • Date/time
          • Current date/time
          • Date diff
          • Date part
          • Date to string
          • Modify date
          • String to date
        • Archiving
          • Create archive
          • Extract archive
        • HTML
          • HTML to object
        • JSON
          • JSON to object
          • Object to JSON
        • Mapping
          • Create mapping
          • Update mapping
        • Strings
          • Cast to string
          • Get substring
          • Regular expression
          • Replace substring
          • Split string
          • String length
          • Substring exists
          • Trim string
        • XML
          • XML to object
          • XPath query
          • Object to XML
        • Data tables
          • Add column
          • Add row
          • Clean table
          • Create table
          • Merge tables
          • Remove column
          • Remove row
          • Sort table
      • Database
        • Connect
        • Execute query
      • Desktop
        • Activate window
        • Anchor
        • Attach application
        • Close application
        • Create desktop video
        • Drag and drop
        • Element exists
        • Element vanish
        • Get list
        • Get processes
        • Get text
        • Hot-key simulation
        • Kill application
        • Maximize window
        • Minimize window
        • Mouse click
        • Read table
        • Restore window
        • Select item
        • Set focus
        • Start application
        • Take screenshot
        • Text input
        • Type simulate
      • Dialogs
        • Add to log
        • Comment
        • Message box
        • Input dialog
        • Beep
        • Custom input
      • E-mail
        • Data types
          • OMailMessage
          • MailFormats
          • OMailAttachment
          • MailMessage
          • MailAttachments
          • OContact
        • Lotus Notes
          • Attach Lotus Notes
          • Save attachment
          • Delete mail
          • Move mail
          • Read mail
          • Send message
        • MS Exchange
          • MS Exchange Server
          • Delete messages
          • Mark messages
          • Move to folder
          • Read mail
          • Save attachment
          • Save mail
          • Send mail
        • Move to folder (IMAP)
        • Receive mail (IMAP)
        • Receive mail POP3
        • Send message (SMTP)
      • File system
        • Append line
        • Write file
        • Copy file
        • Move file
        • File search
        • Create directory
        • Create file
        • File/folder exists
        • Delete file/folder
        • Read file
      • Flow control
        • If-Else
        • Switch
        • Try-Catch
        • Exit sequence
        • Break
        • Comment out
        • Throw
        • Wait
        • Parallel threads
        • Sequence
        • Assign
        • Continue
        • Process link
        • Do-While
        • ForEach
        • While
      • Google Sheets
        • Google Sheets document
        • Write range
        • Read range
      • Message queues
        • ActiveMQ
          • Send message
          • ActiveMQ
        • Kafka
          • Send message
          • Read messages
      • MS Excel
        • Run macro
        • Excel workbook
        • Cell input
        • Select range
        • Append range
        • Calculate formulas
        • Sort range
        • Get sheets
        • Save workbook
        • Delete range
        • Filter range
        • Read range
      • MS Outlook
        • Outlook
        • Close Outlook
        • Send message
        • Read address book
        • Read mail
      • MS Word
        • Add table row
        • Copy to clipboard
        • Delete text
        • Export document
        • Find text
        • Get text
        • Insert image
        • Insert table
        • Read table
        • Replace text
        • Save document
        • Select range
        • Text input
        • Word document
        • Write table cell
      • Network
        • FTP
          • Send to FTP
          • Download FTP file
          • List FTP files
        • Terminal server
          • Connect
          • Execute script
          • Disconnect
        • Web request
      • OCR
        • ABBYY FlexiCapture
          • FlexiCapture server
          • Process documents
        • Dbrain
          • Classify documents
          • Dbrain server
          • Process documents
        • Microsoft OCR
        • Tesseract OCR
        • Yandex Vision OCR
        • Image Vanish
        • Image click
        • Text click
        • Image exists
        • Text recognition
        • Validate document
      • Orchestrator
        • Assets
          • Get Asset
          • Get Credentials
          • Set Asset
          • Set Credentials
        • Process
        • Queues
          • Peek queue
          • Add to queue
      • PDF
        • Add watermark
        • Page count
        • Merge documents
        • Get image
        • Get text
      • Programming
        • C# Script
        • Invoke method
        • JavaScript
        • Python Script
        • Command prompt
        • Power Shell
      • SAP Front end
        • BAPI
          • BAPI connection
          • BAPI function
        • Attach SAP
        • Calendar
        • Check box
        • Combo box
        • Control exists
        • Get text
        • Mouse click
        • Open SAP
        • Radio button
        • Set focus
        • Tab strip
        • Table
        • Text input
        • Tree
      • Smart devices
        • Attach device
        • Press hot-key
        • Type text
        • Start application
        • Tap control
        • Get text
      • Testing
        • Get next local test data
        • Mock
        • Verify expression
        • Verify expression with operator
        • Verify output with operator
      • Workflow
        • Decision
        • Sequence
        • State
        • Workflow
  • Orchestrator
    • Monitoring
    • Automation
      • Tasks
    • Administration
      • Workers
      • Robots
      • Projects
      • Templates
      • Assets
      • Queues
    • Setting
      • Distribute
      • Journal
      • Users
      • Roles
      • Licenses
    • User settings
Powered by GitBook
On this page
  • Properties
  • Learning
  • Pure code
  1. Elements
  2. Base elements
  3. E-mail
  4. MS Exchange

MS Exchange Server

PreviousMS ExchangeNextDelete messages

Last updated 11 months ago

This element establishes a connection to Microsoft Exchange server and enables robots to interact with it to perform operations with email.

It is a container for other elements that are part of the MS Exchange group (see the illustration below), which are used for sending/receiving email, attaching files to messages, extracting attachments and other email operations.

Properties

Property
Type
Description

Exchange

Version

Microsoft.Exchange.WebServices. Data.ExchangeVersion

Version of MS Exchange server. By default, Exchange2013_SP1 version is set. To select another version, click on the dropdown list.

Server URL

String

URL of MS Exchange server. Example: "https://<server>/EWS/Exchange.asmx"

E-mail

String

Specify user email to use autodiscovery of the URL for Exchange web services (EWS) endpoint. Example: "user1@example.com"

Domain

String

Domain name

Login

String

User login

Password

String

Password of the Exchange account

Secure password

Field for the encrypted password. For security purposes the password in SecureString format is not stored openly. It can be obtained, for example, from Credential Manager application

Russian time zone

Boolean

This setting is meant for time corrections. For example, if the time zone is determined incorrectly in the Russian localized version. By default it is disabled.

Learning

  1. Download the archive with training materials using the link specified above.

  2. Unpack the archive and open StudioActivities project in Studio.

  3. Find StudioActivities/Ru/Почта/MS Exchange/Основы.ltw process in the project.

Pure code

Example of using the element in a process of Pure code type:

LTools.Office.MSExchangeApp app = LTools.Office.MSExchangeApp.InitSvc(wf, Microsoft.Exchange.WebServices.Data.ExchangeVersion.Exchange2013_SP1, "server url", "login", "pass", "domain");
LTools.Office.MSExchangeApp app2 = LTools.Office.MSExchangeApp.InitAd(wf, Microsoft.Exchange.WebServices.Data.ExchangeVersion.Exchange2013_SP1, "autodiscovery url", "login", "pass", "domain");
app = LTools.Office.MSExchangeApp.InitSvc(wf, Microsoft.Exchange.WebServices.Data.ExchangeVersion.Exchange2013_SP1, "server url", "login", "pass", "domain")
app2 = LTools.Office.MSExchangeApp.InitAd(wf, Microsoft.Exchange.WebServices.Data.ExchangeVersion.Exchange2013_SP1, "autodiscovery url", "login", "pass", "domain")
var app = _lib.LTools.Office.MSExchangeApp.InitSvc(wf, _lib.Microsoft.Exchange.WebServices.Data.ExchangeVersion.Exchange2013_SP1, "server url", "login", "pass", "domain");
var app = _lib.LTools.Office.MSExchangeApp.InitAd(wf, _lib.Microsoft.Exchange.WebServices.Data.ExchangeVersion.Exchange2013_SP1, "autodiscovery url", "login", "pass", "domain");

Description of general properties can be found in the section. If the name of the property is marked with an asterisk *, this means that it is mandatory to specify it.

Important! Extracting of email attachments requires enabling the Russian time zone property.

There is a sample RPA project available to practice using the MS Exchange server element. It can be accessed by .

🔸
Element properties
downloading a Learning archive
SecureString