SlideShare uma empresa Scribd logo
1 de 23
.Net classes and Objects
Recap
2
1. Complex data types : DataTables
2. Collections
3. RegEx Builder
4. Invoke Method
5. Invoke Code
Agenda
3
DataTables (1)
What?
• Is the type of variable that can store data as a simple spreadsheet with rows and columns, so that each
piece of data can be identified based on their unique column and row coordinates.
• It is representation of a single database table which has collection of rows and columns. In other words,
Collection of rows and columns is known as DataTable.
How can be created?
• Via Excel activities: Excel application scope or Workbooks, by reading the excel file
• Via Read CSV activity
• Via Build Data Table activity
• Via Data Scraping feature
• Via code
4
DataTables (2)
• Via Read CSV activity
• Via Build Data Table activity
• Via Data Scraping feature
• Via code
5
Excel Activities (3)
Workbooks Excel Application Scope
All workbook activities will be executed in the background All activities can be set to either be visible to the user or run in the
background
Doesn't require Microsoft Excel to be installed Microsoft Excel must be installed, even when ‘Visible’ box is unchecked
Can be faster and more reliable for some operation If the file isn’t open, it will be opened, saved and closed for each activity
Works only with .xlsx files Works with .xls and .xlsx, and it has some specific activities to work with
.csv
RPA Advanced Developer Training | Foundation Recap | Essential Topics
© 2005–2021 UiPath. All rights reserved. UiPath confidential information.
6
DataTables (4)
RPA Advanced Developer Training | Foundation Recap | Essential Topics
© 2005–2021 UiPath. All rights reserved. UiPath confidential information.
Common activities As arguments
7
DataTables (5)
The Select Method
There are many ways of filtering
a datatable. Example : for a
table with the following schema:
The Filter Data Table Activity
© 2005–2021 UiPath. All rights reserved. UiPath confidential information.
8
Arrays
The array variable is a type of variable that enables storing multiple values of the same data type,
each identifiable through their index. The data type of the objects in the Array can be any .NET
data type.
Examples:
• Array of Int32: IntArray = {34, 25, 1}
• Array of String: StrArray = {"hello", "goodbye", "morning", "night"}
• Array of Object: CombinedArray = {"Jenny", 25}
© 2005–2021 UiPath. All rights reserved. UiPath confidential information.
9
Index
Array Methods
Examples:
• Array of Int32: IntArray = {34, 25, 1}
• Array of String: StrArray = {"hello", "goodbye", "morning", "night"}
• Array of Object: CombinedArray = {"Jenny", 25}
Use parenthesis and index to get a single
element. Index starts with 0.
• IntArray(0) -> 34
• IntArray(2) -> 1
• StrArray(3) -> "night"
Length
The length method returns the number of
elements in an array.
• IntArray.Length -> 3
• StrArray.Length -> 4
© 2005–2021 UiPath. All rights reserved. UiPath confidential information.
10
Arrays versus Lists
Array List
Collection
Used when we know the length of the
collection (for example split activity of a
string)
Used when we do not know the length of the
collection (for example, inputting values until
a condition is being met)
Arr = new String() {“a”, “b”} Lst = new List(of String) from {“a”, “b”}
Size Fixed – number of elements Dynamic – size differs on action performed
Index Arr(0) -> “a” Lst(0) -> “a”
Length Arr.Length Lst.Count
Other methods - add, remove, insert
11
Arrays versus Lists
© 2005–2021 UiPath. All rights reserved. UiPath confidential information.
RPA Advanced Developer Training | Foundation Recap | Essential Topics
12
Most Common String Methods
Example:
• MyText = “Test example “
Method Syntax Output
Trim/TrimStart/TrimEnd MyText.Trim "Test example"
ToLower/ToUpper MyText.Trim.ToUpper "TEST EXAMPLE"
Split MyText.Trim.Split(" "c) {"Test", "example"}
Contains MyText.Contains("example") True
Length MyText.Trim.Length 12
EndsWith/StartsWith MyText.StartsWith("Test") True
Substring MyText.Substring(5) "example "
Replace MyText.Replace("Test", "Hello") "Hello example "
© 2005–2021 UiPath. All rights reserved. UiPath confidential information.
13
String Methods - Conversions
Variable Value Method Syntax Conversion type Output
MyVar = 3 ToString MyVar.ToString Int32 to String “3”
MyVar = “3” Cint Cint(MyVar) String to Int32 3
MyVar = "33.4" CDbl CDbl(MyVar) String to Double 33.4
MyVar = "6/10/2020
11:41:21"
CDate CDate(MyVar) String to Date 6/10/2020 11:41:21
MyVar = True ToString MyVar.ToString Boolean to String "True"
MyVar={"Hello","you"} String.Join String.Join(",", MyVar) String[] to String "Hello,you"
MyVar = new List(of
String) from {"Hello",
"there"}
String.Join String.Join(" ", MyVar) List<String> to String "Hello there"
© 2005–2021 UiPath. All rights reserved. UiPath confidential information.
14
RegEx builder (1)
The RegEx Builder wizard is created to ease your
process of building and testing Regular Expression
search criteria. This wizard consists of three main parts:
• The text field editor: add the text against which the
RegEx is applied.
• The regular expression configurator: set
the Type, Value, and Quantifiers of the RegEx
expressions that should match the text, highlighting
the findings in the Test Text field. Only one regular
expression field can be viewed at a time in the Test
Text field.
• The full regular expression: displays the current
RegEx expression in its raw form.
The RegEx Builder wizard can be opened from the body
of any of the three activities IsMatch, Matches,
and Replace, by clicking the Configure Regular
Expression button. This wizard helps you build the
regular expressions you want to use for any of the three
activities.
15
RegEx builder (2)
16
Introduction to Invoke Method Activity
Invoke Method activity is used to call a method that is outside the standard built-in activities of
Studio, such as in a DLL file.
Calls a specific method in a class
Calls a public method of a specified type or object
Acts on either Target Type or Target Object
Invoke
Method
Activity
© 2005–2021 UiPath. All rights reserved. UiPath confidential information.
RPA Advanced Developer Training | Foundation Recap | Essential Topics
17
Properties of Invoke Method Activity
The properties of Invoke Method activity are:
GenericTypeArguments
Sets the generic type arguments
Parameters
Enters the list of parameters to be
passed to the method
MethodName
Inserts the method name to be
invoked
Result
Enters a variable to store output
TargetType
Enters the target whose method is
invoked
TargetObject
Passes the object whose method
is invoked
© 2005–2021 UiPath. All rights reserved. UiPath confidential information.
RPA Advanced Developer Training | Foundation Recap | Essential Topics
18
Types of Methods in Invoke Method Activity
Invoke Method activity can be used with the following methods:
Non-Static Method
• The object (from which the
method is derived) needs to be
defined
• TargetObject is used
Static Method
• Used for a class defined as static
• No need to define the object
• TargetType is used
© 2005–2021 UiPath. All rights reserved. UiPath confidential information.
RPA Advanced Developer Training | Foundation Recap | Essential Topics
19
Invoke Method
Invoke method activity is
useful when we need to call a
public method of a class.
It is particularly used to
invoke void methods.
This activity adds the string "hello" to the list of strings variable named MyList.
RPA Advanced Developer Training | Foundation Recap | Essential Topics
© 2005–2021 UiPath. All rights reserved. UiPath confidential information.
20
Configure Invoke Method Activity for DLL Files
The steps to call a method from a DLL file using Invoke Method Activity are:
Step 04
Call the specified
method using Invoke
Method activity
Step 03
Install the NuGet
package in Studio
Step 02
Convert class library
into a NuGet package
Step 01
Create a class library in
Visual Studio
© 2005–2021 UiPath. All rights reserved. UiPath confidential information.
RPA Advanced Developer Training | Foundation Recap | Essential Topics
21
It helps the users to:
• Simplify data
manipulation procedures
• Reduce the number of
Assign and Invoke
Method activities, by
replacing several with a
single Invoke Code
activity
Introduction to Invoke Code Activity
Invoke Code activity can be used to invoke VB.NET or
CSharp (C#)
codes and write custom codes for some steps in the
process.
Arguments
Pass the parameters to the invoked
code
Language
Select the
programming
language (VB.NET or
C#)
Code
Pass the codes to be invoked
© 2005–2021 UiPath. All rights reserved. UiPath confidential information.
RPA Advanced Developer Training | Foundation Recap | Essential Topics
22
Invoke Code Activity with VB.NET and C#
Invoke Code Activity with
VB.NET
• VB.NET code is used inside the
Invoke Code activity
• Example: A VB.NET code for adding
numbers is invoked using the activity
Invoke Code Activity with C#
• C# code is used inside the Invoke
Code activity
• Example: A C# code for adding two
numbers is invoked using the activity
RPA Advanced Developer Training | Foundation Recap | Essential Topics
© 2005–2021 UiPath. All rights reserved. UiPath confidential information.
23
Trainer name
Thank you
trainer.name@uipath.com

Mais conteúdo relacionado

Mais procurados

Module 12 aggregation, namespaces, and advanced scope
Module 12 aggregation, namespaces, and advanced scopeModule 12 aggregation, namespaces, and advanced scope
Module 12 aggregation, namespaces, and advanced scopePrem Kumar Badri
 
Ap Power Point Chpt5
Ap Power Point Chpt5Ap Power Point Chpt5
Ap Power Point Chpt5dplunkett
 
9781337102087 ppt ch05
9781337102087 ppt ch059781337102087 ppt ch05
9781337102087 ppt ch05Terry Yoast
 
Application package
Application packageApplication package
Application packageJAYAARC
 
9781337102087 ppt ch06
9781337102087 ppt ch069781337102087 ppt ch06
9781337102087 ppt ch06Terry Yoast
 
Ap Power Point Chpt7
Ap Power Point Chpt7Ap Power Point Chpt7
Ap Power Point Chpt7dplunkett
 
Defaultification Refactoring: A Tool for Automatically Converting Java Method...
Defaultification Refactoring: A Tool for Automatically Converting Java Method...Defaultification Refactoring: A Tool for Automatically Converting Java Method...
Defaultification Refactoring: A Tool for Automatically Converting Java Method...Raffi Khatchadourian
 
Easy ORMness with Objectify-Appengine
Easy ORMness with Objectify-AppengineEasy ORMness with Objectify-Appengine
Easy ORMness with Objectify-AppengineInphina Technologies
 
CS5393-Korat_Mittal_Akshay_ProjReport
CS5393-Korat_Mittal_Akshay_ProjReportCS5393-Korat_Mittal_Akshay_ProjReport
CS5393-Korat_Mittal_Akshay_ProjReportAkshay Mittal
 
Presentation 4th
Presentation 4thPresentation 4th
Presentation 4thConnex
 
Chapter 8 - Exceptions and Assertions Edit summary
Chapter 8 - Exceptions and Assertions  Edit summaryChapter 8 - Exceptions and Assertions  Edit summary
Chapter 8 - Exceptions and Assertions Edit summaryEduardo Bergavera
 
Ap Power Point Chpt3
Ap Power Point Chpt3Ap Power Point Chpt3
Ap Power Point Chpt3dplunkett
 
What Do the Asserts in a Unit Test Tell Us About Code Quality? (CSMR2013)
What Do the Asserts in a Unit Test Tell Us About Code Quality? (CSMR2013)What Do the Asserts in a Unit Test Tell Us About Code Quality? (CSMR2013)
What Do the Asserts in a Unit Test Tell Us About Code Quality? (CSMR2013)Maurício Aniche
 

Mais procurados (19)

Module 12 aggregation, namespaces, and advanced scope
Module 12 aggregation, namespaces, and advanced scopeModule 12 aggregation, namespaces, and advanced scope
Module 12 aggregation, namespaces, and advanced scope
 
Ap Power Point Chpt5
Ap Power Point Chpt5Ap Power Point Chpt5
Ap Power Point Chpt5
 
9781337102087 ppt ch05
9781337102087 ppt ch059781337102087 ppt ch05
9781337102087 ppt ch05
 
Application package
Application packageApplication package
Application package
 
CORE JAVA
CORE JAVACORE JAVA
CORE JAVA
 
9781337102087 ppt ch06
9781337102087 ppt ch069781337102087 ppt ch06
9781337102087 ppt ch06
 
Java generics final
Java generics finalJava generics final
Java generics final
 
Ap Power Point Chpt7
Ap Power Point Chpt7Ap Power Point Chpt7
Ap Power Point Chpt7
 
Defaultification Refactoring: A Tool for Automatically Converting Java Method...
Defaultification Refactoring: A Tool for Automatically Converting Java Method...Defaultification Refactoring: A Tool for Automatically Converting Java Method...
Defaultification Refactoring: A Tool for Automatically Converting Java Method...
 
Generics
GenericsGenerics
Generics
 
Easy ORMness with Objectify-Appengine
Easy ORMness with Objectify-AppengineEasy ORMness with Objectify-Appengine
Easy ORMness with Objectify-Appengine
 
DSA 103 Object Oriented Programming :: Week 4
DSA 103 Object Oriented Programming :: Week 4DSA 103 Object Oriented Programming :: Week 4
DSA 103 Object Oriented Programming :: Week 4
 
CS5393-Korat_Mittal_Akshay_ProjReport
CS5393-Korat_Mittal_Akshay_ProjReportCS5393-Korat_Mittal_Akshay_ProjReport
CS5393-Korat_Mittal_Akshay_ProjReport
 
Spring AOP
Spring AOPSpring AOP
Spring AOP
 
Presentation 4th
Presentation 4thPresentation 4th
Presentation 4th
 
Chapter 8 - Exceptions and Assertions Edit summary
Chapter 8 - Exceptions and Assertions  Edit summaryChapter 8 - Exceptions and Assertions  Edit summary
Chapter 8 - Exceptions and Assertions Edit summary
 
Java Generics - by Example
Java Generics - by ExampleJava Generics - by Example
Java Generics - by Example
 
Ap Power Point Chpt3
Ap Power Point Chpt3Ap Power Point Chpt3
Ap Power Point Chpt3
 
What Do the Asserts in a Unit Test Tell Us About Code Quality? (CSMR2013)
What Do the Asserts in a Unit Test Tell Us About Code Quality? (CSMR2013)What Do the Asserts in a Unit Test Tell Us About Code Quality? (CSMR2013)
What Do the Asserts in a Unit Test Tell Us About Code Quality? (CSMR2013)
 

Semelhante a NET Classes, Objects and Essential Topics

Linq in C# 3.0: An Overview
Linq in C# 3.0: An OverviewLinq in C# 3.0: An Overview
Linq in C# 3.0: An Overviewpradeepkothiyal
 
SQL Saturday 28 - .NET Fundamentals
SQL Saturday 28 - .NET FundamentalsSQL Saturday 28 - .NET Fundamentals
SQL Saturday 28 - .NET Fundamentalsmikehuguet
 
Agile_goa_2013_clean_code_tdd
Agile_goa_2013_clean_code_tddAgile_goa_2013_clean_code_tdd
Agile_goa_2013_clean_code_tddSrinivasa GV
 
Linq To The Enterprise
Linq To The EnterpriseLinq To The Enterprise
Linq To The EnterpriseDaniel Egan
 
.NET Portfolio
.NET Portfolio.NET Portfolio
.NET Portfoliomwillmer
 
Rails Tips and Best Practices
Rails Tips and Best PracticesRails Tips and Best Practices
Rails Tips and Best PracticesDavid Keener
 
Linq 1224887336792847 9
Linq 1224887336792847 9Linq 1224887336792847 9
Linq 1224887336792847 9google
 
housing price prediction ppt in artificial
housing price prediction ppt in artificialhousing price prediction ppt in artificial
housing price prediction ppt in artificialKrishPatel802536
 
MLOps pipelines using MLFlow - From training to production
MLOps pipelines using MLFlow - From training to productionMLOps pipelines using MLFlow - From training to production
MLOps pipelines using MLFlow - From training to productionFabian Hadiji
 
Intake 38 data access 3
Intake 38 data access 3Intake 38 data access 3
Intake 38 data access 3Mahmoud Ouf
 
Ivan Pashko - Simplifying test automation with design patterns
Ivan Pashko - Simplifying test automation with design patternsIvan Pashko - Simplifying test automation with design patterns
Ivan Pashko - Simplifying test automation with design patternsIevgenii Katsan
 
EKON 23 Code_review_checklist
EKON 23 Code_review_checklistEKON 23 Code_review_checklist
EKON 23 Code_review_checklistMax Kleiner
 
08 Dynamic SQL and Metadata
08 Dynamic SQL and Metadata08 Dynamic SQL and Metadata
08 Dynamic SQL and Metadatarehaniltifat
 
Intake 38 data access 5
Intake 38 data access 5Intake 38 data access 5
Intake 38 data access 5Mahmoud Ouf
 
Enterprise Library 2.0
Enterprise Library 2.0Enterprise Library 2.0
Enterprise Library 2.0Raju Permandla
 

Semelhante a NET Classes, Objects and Essential Topics (20)

Linq in C# 3.0: An Overview
Linq in C# 3.0: An OverviewLinq in C# 3.0: An Overview
Linq in C# 3.0: An Overview
 
SQL Saturday 28 - .NET Fundamentals
SQL Saturday 28 - .NET FundamentalsSQL Saturday 28 - .NET Fundamentals
SQL Saturday 28 - .NET Fundamentals
 
L04 Software Design Examples
L04 Software Design ExamplesL04 Software Design Examples
L04 Software Design Examples
 
Agile_goa_2013_clean_code_tdd
Agile_goa_2013_clean_code_tddAgile_goa_2013_clean_code_tdd
Agile_goa_2013_clean_code_tdd
 
Entity Framework 4
Entity Framework 4Entity Framework 4
Entity Framework 4
 
Linq To The Enterprise
Linq To The EnterpriseLinq To The Enterprise
Linq To The Enterprise
 
.NET Portfolio
.NET Portfolio.NET Portfolio
.NET Portfolio
 
Rails Tips and Best Practices
Rails Tips and Best PracticesRails Tips and Best Practices
Rails Tips and Best Practices
 
Linq 1224887336792847 9
Linq 1224887336792847 9Linq 1224887336792847 9
Linq 1224887336792847 9
 
housing price prediction ppt in artificial
housing price prediction ppt in artificialhousing price prediction ppt in artificial
housing price prediction ppt in artificial
 
MLOps pipelines using MLFlow - From training to production
MLOps pipelines using MLFlow - From training to productionMLOps pipelines using MLFlow - From training to production
MLOps pipelines using MLFlow - From training to production
 
Intake 38 data access 3
Intake 38 data access 3Intake 38 data access 3
Intake 38 data access 3
 
Lect1.pptx
Lect1.pptxLect1.pptx
Lect1.pptx
 
Intake 37 linq2
Intake 37 linq2Intake 37 linq2
Intake 37 linq2
 
Ivan Pashko - Simplifying test automation with design patterns
Ivan Pashko - Simplifying test automation with design patternsIvan Pashko - Simplifying test automation with design patterns
Ivan Pashko - Simplifying test automation with design patterns
 
Angular
AngularAngular
Angular
 
EKON 23 Code_review_checklist
EKON 23 Code_review_checklistEKON 23 Code_review_checklist
EKON 23 Code_review_checklist
 
08 Dynamic SQL and Metadata
08 Dynamic SQL and Metadata08 Dynamic SQL and Metadata
08 Dynamic SQL and Metadata
 
Intake 38 data access 5
Intake 38 data access 5Intake 38 data access 5
Intake 38 data access 5
 
Enterprise Library 2.0
Enterprise Library 2.0Enterprise Library 2.0
Enterprise Library 2.0
 

Mais de Rohit Radhakrishnan

UiPath Test Manager Connect Webinar UiPath Planview.pptx
UiPath Test Manager Connect Webinar UiPath Planview.pptxUiPath Test Manager Connect Webinar UiPath Planview.pptx
UiPath Test Manager Connect Webinar UiPath Planview.pptxRohit Radhakrishnan
 
UiPath Marketplace - HyperHack 2023.pptx
UiPath Marketplace - HyperHack 2023.pptxUiPath Marketplace - HyperHack 2023.pptx
UiPath Marketplace - HyperHack 2023.pptxRohit Radhakrishnan
 
UiPath_Orchestrtor_Upgrade_IAAS_PAAS.pptx
UiPath_Orchestrtor_Upgrade_IAAS_PAAS.pptxUiPath_Orchestrtor_Upgrade_IAAS_PAAS.pptx
UiPath_Orchestrtor_Upgrade_IAAS_PAAS.pptxRohit Radhakrishnan
 
DevDive_UnleashthFullPotentialofAutomationwithGenAI.pptx
DevDive_UnleashthFullPotentialofAutomationwithGenAI.pptxDevDive_UnleashthFullPotentialofAutomationwithGenAI.pptx
DevDive_UnleashthFullPotentialofAutomationwithGenAI.pptxRohit Radhakrishnan
 
Hackaton Moonshots - 06222023.pdf
Hackaton Moonshots - 06222023.pdfHackaton Moonshots - 06222023.pdf
Hackaton Moonshots - 06222023.pdfRohit Radhakrishnan
 
Automation Cloud Best practices series - Session 6.pptx
Automation Cloud Best practices series - Session 6.pptxAutomation Cloud Best practices series - Session 6.pptx
Automation Cloud Best practices series - Session 6.pptxRohit Radhakrishnan
 
Automation Cloud Series - Mastering the Automation Cloud Admin experience_Ses...
Automation Cloud Series - Mastering the Automation Cloud Admin experience_Ses...Automation Cloud Series - Mastering the Automation Cloud Admin experience_Ses...
Automation Cloud Series - Mastering the Automation Cloud Admin experience_Ses...Rohit Radhakrishnan
 
Maximizing efficiency and security in large-scale automation rollouts with Au...
Maximizing efficiency and security in large-scale automation rollouts with Au...Maximizing efficiency and security in large-scale automation rollouts with Au...
Maximizing efficiency and security in large-scale automation rollouts with Au...Rohit Radhakrishnan
 
Automation Cloud Series - Session 3.pptx
Automation Cloud Series - Session 3.pptxAutomation Cloud Series - Session 3.pptx
Automation Cloud Series - Session 3.pptxRohit Radhakrishnan
 
UiPath Automation Cloud Robots - Best Practises session 2.pptx
UiPath Automation Cloud Robots - Best Practises session 2.pptxUiPath Automation Cloud Robots - Best Practises session 2.pptx
UiPath Automation Cloud Robots - Best Practises session 2.pptxRohit Radhakrishnan
 
UiPath Automation Cloud - Best Practises session1.pptx
UiPath Automation Cloud - Best Practises session1.pptxUiPath Automation Cloud - Best Practises session1.pptx
UiPath Automation Cloud - Best Practises session1.pptxRohit Radhakrishnan
 
API Integration service & insights.pptx
API Integration service & insights.pptxAPI Integration service & insights.pptx
API Integration service & insights.pptxRohit Radhakrishnan
 

Mais de Rohit Radhakrishnan (20)

UiPath Devops.pptx
UiPath Devops.pptxUiPath Devops.pptx
UiPath Devops.pptx
 
UiPath Test Suite_final.pptx
UiPath Test Suite_final.pptxUiPath Test Suite_final.pptx
UiPath Test Suite_final.pptx
 
DU PPT (1).pptx
DU PPT (1).pptxDU PPT (1).pptx
DU PPT (1).pptx
 
UiPath Test Manager Connect Webinar UiPath Planview.pptx
UiPath Test Manager Connect Webinar UiPath Planview.pptxUiPath Test Manager Connect Webinar UiPath Planview.pptx
UiPath Test Manager Connect Webinar UiPath Planview.pptx
 
uipath_insights_upgrade.pptx
uipath_insights_upgrade.pptxuipath_insights_upgrade.pptx
uipath_insights_upgrade.pptx
 
UiPath Marketplace - HyperHack 2023.pptx
UiPath Marketplace - HyperHack 2023.pptxUiPath Marketplace - HyperHack 2023.pptx
UiPath Marketplace - HyperHack 2023.pptx
 
UiPath_Orchestrtor_Upgrade_IAAS_PAAS.pptx
UiPath_Orchestrtor_Upgrade_IAAS_PAAS.pptxUiPath_Orchestrtor_Upgrade_IAAS_PAAS.pptx
UiPath_Orchestrtor_Upgrade_IAAS_PAAS.pptx
 
Hyperhack_2023_06072023.pptx
Hyperhack_2023_06072023.pptxHyperhack_2023_06072023.pptx
Hyperhack_2023_06072023.pptx
 
DevDive_UnleashthFullPotentialofAutomationwithGenAI.pptx
DevDive_UnleashthFullPotentialofAutomationwithGenAI.pptxDevDive_UnleashthFullPotentialofAutomationwithGenAI.pptx
DevDive_UnleashthFullPotentialofAutomationwithGenAI.pptx
 
Hackaton Moonshots - 06222023.pdf
Hackaton Moonshots - 06222023.pdfHackaton Moonshots - 06222023.pdf
Hackaton Moonshots - 06222023.pdf
 
Dev Dives MAY Deck .pdf
Dev Dives MAY Deck .pdfDev Dives MAY Deck .pdf
Dev Dives MAY Deck .pdf
 
Automation Cloud Best practices series - Session 6.pptx
Automation Cloud Best practices series - Session 6.pptxAutomation Cloud Best practices series - Session 6.pptx
Automation Cloud Best practices series - Session 6.pptx
 
Variable and Arguments_4.pptx
Variable and Arguments_4.pptxVariable and Arguments_4.pptx
Variable and Arguments_4.pptx
 
Automation Cloud Series - Mastering the Automation Cloud Admin experience_Ses...
Automation Cloud Series - Mastering the Automation Cloud Admin experience_Ses...Automation Cloud Series - Mastering the Automation Cloud Admin experience_Ses...
Automation Cloud Series - Mastering the Automation Cloud Admin experience_Ses...
 
Maximizing efficiency and security in large-scale automation rollouts with Au...
Maximizing efficiency and security in large-scale automation rollouts with Au...Maximizing efficiency and security in large-scale automation rollouts with Au...
Maximizing efficiency and security in large-scale automation rollouts with Au...
 
Introduction-To-RPA_1.pptx
Introduction-To-RPA_1.pptxIntroduction-To-RPA_1.pptx
Introduction-To-RPA_1.pptx
 
Automation Cloud Series - Session 3.pptx
Automation Cloud Series - Session 3.pptxAutomation Cloud Series - Session 3.pptx
Automation Cloud Series - Session 3.pptx
 
UiPath Automation Cloud Robots - Best Practises session 2.pptx
UiPath Automation Cloud Robots - Best Practises session 2.pptxUiPath Automation Cloud Robots - Best Practises session 2.pptx
UiPath Automation Cloud Robots - Best Practises session 2.pptx
 
UiPath Automation Cloud - Best Practises session1.pptx
UiPath Automation Cloud - Best Practises session1.pptxUiPath Automation Cloud - Best Practises session1.pptx
UiPath Automation Cloud - Best Practises session1.pptx
 
API Integration service & insights.pptx
API Integration service & insights.pptxAPI Integration service & insights.pptx
API Integration service & insights.pptx
 

Último

Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 

Último (20)

Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 

NET Classes, Objects and Essential Topics

  • 1. .Net classes and Objects Recap
  • 2. 2 1. Complex data types : DataTables 2. Collections 3. RegEx Builder 4. Invoke Method 5. Invoke Code Agenda
  • 3. 3 DataTables (1) What? • Is the type of variable that can store data as a simple spreadsheet with rows and columns, so that each piece of data can be identified based on their unique column and row coordinates. • It is representation of a single database table which has collection of rows and columns. In other words, Collection of rows and columns is known as DataTable. How can be created? • Via Excel activities: Excel application scope or Workbooks, by reading the excel file • Via Read CSV activity • Via Build Data Table activity • Via Data Scraping feature • Via code
  • 4. 4 DataTables (2) • Via Read CSV activity • Via Build Data Table activity • Via Data Scraping feature • Via code
  • 5. 5 Excel Activities (3) Workbooks Excel Application Scope All workbook activities will be executed in the background All activities can be set to either be visible to the user or run in the background Doesn't require Microsoft Excel to be installed Microsoft Excel must be installed, even when ‘Visible’ box is unchecked Can be faster and more reliable for some operation If the file isn’t open, it will be opened, saved and closed for each activity Works only with .xlsx files Works with .xls and .xlsx, and it has some specific activities to work with .csv RPA Advanced Developer Training | Foundation Recap | Essential Topics © 2005–2021 UiPath. All rights reserved. UiPath confidential information.
  • 6. 6 DataTables (4) RPA Advanced Developer Training | Foundation Recap | Essential Topics © 2005–2021 UiPath. All rights reserved. UiPath confidential information. Common activities As arguments
  • 7. 7 DataTables (5) The Select Method There are many ways of filtering a datatable. Example : for a table with the following schema: The Filter Data Table Activity © 2005–2021 UiPath. All rights reserved. UiPath confidential information.
  • 8. 8 Arrays The array variable is a type of variable that enables storing multiple values of the same data type, each identifiable through their index. The data type of the objects in the Array can be any .NET data type. Examples: • Array of Int32: IntArray = {34, 25, 1} • Array of String: StrArray = {"hello", "goodbye", "morning", "night"} • Array of Object: CombinedArray = {"Jenny", 25} © 2005–2021 UiPath. All rights reserved. UiPath confidential information.
  • 9. 9 Index Array Methods Examples: • Array of Int32: IntArray = {34, 25, 1} • Array of String: StrArray = {"hello", "goodbye", "morning", "night"} • Array of Object: CombinedArray = {"Jenny", 25} Use parenthesis and index to get a single element. Index starts with 0. • IntArray(0) -> 34 • IntArray(2) -> 1 • StrArray(3) -> "night" Length The length method returns the number of elements in an array. • IntArray.Length -> 3 • StrArray.Length -> 4 © 2005–2021 UiPath. All rights reserved. UiPath confidential information.
  • 10. 10 Arrays versus Lists Array List Collection Used when we know the length of the collection (for example split activity of a string) Used when we do not know the length of the collection (for example, inputting values until a condition is being met) Arr = new String() {“a”, “b”} Lst = new List(of String) from {“a”, “b”} Size Fixed – number of elements Dynamic – size differs on action performed Index Arr(0) -> “a” Lst(0) -> “a” Length Arr.Length Lst.Count Other methods - add, remove, insert
  • 11. 11 Arrays versus Lists © 2005–2021 UiPath. All rights reserved. UiPath confidential information. RPA Advanced Developer Training | Foundation Recap | Essential Topics
  • 12. 12 Most Common String Methods Example: • MyText = “Test example “ Method Syntax Output Trim/TrimStart/TrimEnd MyText.Trim "Test example" ToLower/ToUpper MyText.Trim.ToUpper "TEST EXAMPLE" Split MyText.Trim.Split(" "c) {"Test", "example"} Contains MyText.Contains("example") True Length MyText.Trim.Length 12 EndsWith/StartsWith MyText.StartsWith("Test") True Substring MyText.Substring(5) "example " Replace MyText.Replace("Test", "Hello") "Hello example " © 2005–2021 UiPath. All rights reserved. UiPath confidential information.
  • 13. 13 String Methods - Conversions Variable Value Method Syntax Conversion type Output MyVar = 3 ToString MyVar.ToString Int32 to String “3” MyVar = “3” Cint Cint(MyVar) String to Int32 3 MyVar = "33.4" CDbl CDbl(MyVar) String to Double 33.4 MyVar = "6/10/2020 11:41:21" CDate CDate(MyVar) String to Date 6/10/2020 11:41:21 MyVar = True ToString MyVar.ToString Boolean to String "True" MyVar={"Hello","you"} String.Join String.Join(",", MyVar) String[] to String "Hello,you" MyVar = new List(of String) from {"Hello", "there"} String.Join String.Join(" ", MyVar) List<String> to String "Hello there" © 2005–2021 UiPath. All rights reserved. UiPath confidential information.
  • 14. 14 RegEx builder (1) The RegEx Builder wizard is created to ease your process of building and testing Regular Expression search criteria. This wizard consists of three main parts: • The text field editor: add the text against which the RegEx is applied. • The regular expression configurator: set the Type, Value, and Quantifiers of the RegEx expressions that should match the text, highlighting the findings in the Test Text field. Only one regular expression field can be viewed at a time in the Test Text field. • The full regular expression: displays the current RegEx expression in its raw form. The RegEx Builder wizard can be opened from the body of any of the three activities IsMatch, Matches, and Replace, by clicking the Configure Regular Expression button. This wizard helps you build the regular expressions you want to use for any of the three activities.
  • 16. 16 Introduction to Invoke Method Activity Invoke Method activity is used to call a method that is outside the standard built-in activities of Studio, such as in a DLL file. Calls a specific method in a class Calls a public method of a specified type or object Acts on either Target Type or Target Object Invoke Method Activity © 2005–2021 UiPath. All rights reserved. UiPath confidential information. RPA Advanced Developer Training | Foundation Recap | Essential Topics
  • 17. 17 Properties of Invoke Method Activity The properties of Invoke Method activity are: GenericTypeArguments Sets the generic type arguments Parameters Enters the list of parameters to be passed to the method MethodName Inserts the method name to be invoked Result Enters a variable to store output TargetType Enters the target whose method is invoked TargetObject Passes the object whose method is invoked © 2005–2021 UiPath. All rights reserved. UiPath confidential information. RPA Advanced Developer Training | Foundation Recap | Essential Topics
  • 18. 18 Types of Methods in Invoke Method Activity Invoke Method activity can be used with the following methods: Non-Static Method • The object (from which the method is derived) needs to be defined • TargetObject is used Static Method • Used for a class defined as static • No need to define the object • TargetType is used © 2005–2021 UiPath. All rights reserved. UiPath confidential information. RPA Advanced Developer Training | Foundation Recap | Essential Topics
  • 19. 19 Invoke Method Invoke method activity is useful when we need to call a public method of a class. It is particularly used to invoke void methods. This activity adds the string "hello" to the list of strings variable named MyList. RPA Advanced Developer Training | Foundation Recap | Essential Topics © 2005–2021 UiPath. All rights reserved. UiPath confidential information.
  • 20. 20 Configure Invoke Method Activity for DLL Files The steps to call a method from a DLL file using Invoke Method Activity are: Step 04 Call the specified method using Invoke Method activity Step 03 Install the NuGet package in Studio Step 02 Convert class library into a NuGet package Step 01 Create a class library in Visual Studio © 2005–2021 UiPath. All rights reserved. UiPath confidential information. RPA Advanced Developer Training | Foundation Recap | Essential Topics
  • 21. 21 It helps the users to: • Simplify data manipulation procedures • Reduce the number of Assign and Invoke Method activities, by replacing several with a single Invoke Code activity Introduction to Invoke Code Activity Invoke Code activity can be used to invoke VB.NET or CSharp (C#) codes and write custom codes for some steps in the process. Arguments Pass the parameters to the invoked code Language Select the programming language (VB.NET or C#) Code Pass the codes to be invoked © 2005–2021 UiPath. All rights reserved. UiPath confidential information. RPA Advanced Developer Training | Foundation Recap | Essential Topics
  • 22. 22 Invoke Code Activity with VB.NET and C# Invoke Code Activity with VB.NET • VB.NET code is used inside the Invoke Code activity • Example: A VB.NET code for adding numbers is invoked using the activity Invoke Code Activity with C# • C# code is used inside the Invoke Code activity • Example: A C# code for adding two numbers is invoked using the activity RPA Advanced Developer Training | Foundation Recap | Essential Topics © 2005–2021 UiPath. All rights reserved. UiPath confidential information.

Notas do Editor

  1. The basic differences between Workbook and Excel are: All workbook activities are executed in the background. Whereas, in Excel, all activities can be set to either be visible to the user or run in the background. Working with workbooks doesn't require Microsoft Excel to be installed. On the other hand, working with Excel requires Microsoft Excel to be installed. If the file isn't open, it will be opened, saved and closed for each activity. A workbook works only for .xlsx files and Excel works with .xls and .xlsx, and it has some specific activities for working with .csv. Workbooks can be faster and more reliable for some operations. The Excel Application Scope activity opens an Excel workbook and provides scope for Excel Activities. When the execution of this activity ends, the specified workbook and the Excel application are closed. The activities for read and write operations are: Read Activities: Read Cell: This activity reads the contents of a given cell and stores as String. Read Cell Formula: This activity reads the formula from a given cell and stores it as a string. Read Column: This activity reads a column starting with a cell inputted by the user and stores it as an IEnumerable<Object> variable. Read Range: This activity reads a specified range and stores it in a DataTable. If 'Use filter' is checked in the Read Range activity under 'Excel Application Scope', it will read only the filtered data. This option does not exist for the Read Range activity under 'Workbook'. Read Row: This activity reads a row starting with a cell inputted by the user and stores it as an IEnumerable<Object> variable. Write Activities: Write Cell: This activity writes a value into a specified cell. If the cell contains data, the activity will overwrite it. If the sheet specified doesn't exist, it will be created. Write Range: This activity writes the data from a DataTable variable in a spreadsheet, starting with the cell indicated in the StartingCell field. If the starting cell isn't specified, the data is written starting from the A1 cell. If the sheet does not exist, a new one is created with the SheetName value. All cells within the specified range are overwritten.
  2. CDate recognizes date formats according to the locale setting of your system. The correct order of day, month, and year may not be determined if it is provided in a format other than one of the recognized date settings. In addition, a long date format is not recognized if it also contains the day-of-the-week string.
  3. Invoke Method activity is used to call a method that is outside the standard built-in activities of Studio, such as in a DLL (Dynamic Link Library) file. It is used to call a specific method in a class. The activity calls a public method of a specified type or object. It acts on either Target Type or Target Object.
  4. The properties of Invoke Method activity are: GenericTypeArguments: Sets the generic type arguments. MethodName: Inserts the method name to be invoked. Result: Enters a variable to store the output. Parameters: Enters the list of parameters to be passed to the method. TargetObject: Passes the object whose method is invoked. TargetType: Enters the target whose method is invoked.
  5. Invoke Method activity can be configured through one of the following methods: Static Method: Used for a class defined as static. There is no need to define the object. Thus, the Static method can be called directly. (TargetObject field in the Invoke Method activity is left empty). Target type is used. (Example: MyClassLibrary.Static) Non-Static (Instance) Method: The object (from which the method is derived) needs to be defined. Target Object is used. (Example: MyClassLibrary.NonStatic)
  6. The steps to call a method from a DLL file using Invoke Method Activity are: Create a class library in Visual Studio. Convert class library into a NuGet package. Install the NuGet package in Studio. Call the specified method using the Invoke Method activity.
  7. Invoke Code activity is used to invoke VB.NET and CSharp (C#) codes. It helps the user to write custom codes as required within steps in a process, simplify data manipulation procedures, and reduce the number of Assign and Invoke Method activities, by replacing several with a single Invoke Code activity. Properties: Arguments: The parameters that can be passed to the code to be invoked. Code: The code that is to be invoked. This field supports only strings and String variables. Language: The drop-down menu that specifies the language in which the invoked code is written. The available options are VB.Net and CSharp. Refer https://docs.uipath.com/activities/docs/invoke-code for more details on Invoke Code activity.
  8. Invoke Code Activity with VB.NET: VB.NET code is used inside the Invoke Code activity. Example: The Input Dialog activity takes a number from the user as an input. A VB.NET code for adding the number with three predefined numbers is invoked using the activity. Invoke Code Activity with C#: C# code is used inside the Invoke Code activity. Example: A C# code for adding two numbers is invoked using the activity. Invoke Code activity contains the following buttons: Edit Code button is used to input VB.NET or C# codes to be executed. Edit Arguments button is used to pass input arguments to the code. Refer https://docs.uipath.com/activities/docs/invoke-code for more details on Invoke Code activity.