Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Robotic Process Automation Projects

You're reading from   Robotic Process Automation Projects Build real-world RPA solutions using UiPath and Automation Anywhere

Arrow left icon
Product type Paperback
Published in May 2020
Publisher Packt
ISBN-13 9781839217357
Length 388 pages
Edition 1st Edition
Arrow right icon
Authors (3):
Arrow left icon
Ivan Loncar Ivan Loncar
Author Profile Icon Ivan Loncar
Ivan Loncar
Arun Kumar Asokan Arun Kumar Asokan
Author Profile Icon Arun Kumar Asokan
Arun Kumar Asokan
Nandan Mullakara Nandan Mullakara
Author Profile Icon Nandan Mullakara
Nandan Mullakara
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Getting Started with Robotic Process Automation 2. Help Desk Ticket Generation FREE CHAPTER 3. CRM Automation 4. Moderating Social Media Using AI 5. Purchase Order Processing with UiPath ReFramework 6. Completing an RPA Challenge 7. Sales Order Processing 8. ERP User Administration 9. Employee Emergency Notifications 10. Using AI and RPA for Invoice Processing 11. Other Books You May Enjoy Appendix A and B for UiPath 1. Appendix: Looking Forward and Next Steps

Putting it all together

It is time to finish up the main workflow so that it reads the requests, creates the tickets, and then moves the Request spreadsheet out once processed. In order to do this, perform the following steps:

  1. Go back to Main.xaml, create a new variable called boolTicketCreated of the Boolean type, set the scope to Event Handler sequence, and set the default value as False:

We will use this to check whether the ticket was created successfully.

  1. To invoke the Zoho Desk workflow that we just added, let's add a new Invoke Workflow File activity and browse to the ZOHOAtuomation.xaml file:

Note that we are adding this to the Then part of the If control we last added in Main.

  1. Let's import the arguments by clicking on Import Arguments within the Invoke activity. On the popup, map the arguments to the strContactName, strEmail, strSubject, and boolTicketCreated variables:

  1. Next, let's use this last variable, boolTicketCreated, and add an If control:

  1. If the ticket was created, then we will move Request.xlsx from the Requests folder to the Processed folder. For that, let's add a Move File activity within the Then block with the following inputs:
    • From: Environment.CurrentDirectory+"\Requests\Request.xlsx".
    • To: Environment.CurrentDirectory+"\Processed\Request.xlsx".
    • Check the Overwrite checkbox.
  2. Finally, add a Message Box with the message "Zoho Ticket Created and File Moved to the Processed Folder. Use ALT+S to check for new requests to process.". Also, add a Log Message activity with the same message and a Log Level of Info.
  1. Next, in the Else branch, let's add a Message Box saying "Zoho Ticket not created and file is not processed yet. Please check the input request file and Use ALT+s to reprocess the same request". Also, add a Log Message activity with the same message and a Log Level of Error:

  1. Let's save the project. Go to Remove Unused Variables in Studio and click on Validate Project:

You should get a message from Studio saying No errors foundNow, we are ready to test the project.

You have been reading a chapter from
Robotic Process Automation Projects
Published in: May 2020
Publisher: Packt
ISBN-13: 9781839217357
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image