UiPath | Invoke Method Activity in UiPath | Full Tutorial for beginners | Static vs. Non-Static

Опубликовано: 30 Сентябрь 2024
на канале: Act Automate
16,879
147

#rpa #uipath #invokemethod
👉 𝐄𝐧𝐠𝐥𝐢𝐬𝐡
● This video is about the activity Invoke Method in UiPath
● You will learn every thing about this activity, how to use it for any method.
● In the video there are 13 examples about 13 different methods from different classes.
● You will learn, which methods you can use in this activity.
● You will also learn, what is the difference between static and non-static methods.
● You will also learn, how is the structure of a method, and how to get the different parts from any method.
● The video is for very beginners, how has no experience in the programming languages (for low-code people).

📋 Here are some useful links for you:
System Namespace: https://docs.microsoft.com/en-us/dotn...
Invoke Method: https://docs.microsoft.com/en-us/dotn...
Access Modifier: https://docs.microsoft.com/en-us/dotn...

📜 Here are the links for the used methods in the video:
1. WriteLine: https://docs.microsoft.com/en-us/dotn...)
2. Max: https://docs.microsoft.com/en-us/dotn...)
3. Contains: https://docs.microsoft.com/en-us/dotn...)
4. Replace: https://docs.microsoft.com/en-us/dotn...)
5. AddDays: https://docs.microsoft.com/en-us/dotn...
6. Sort Array: https://docs.microsoft.com/en-us/dotn...)
7. Copy DataTable: https://docs.microsoft.com/en-us/dotn...
8. Compute DataTable: https://docs.microsoft.com/en-us/dotn...
9. Add Row: https://docs.microsoft.com/en-us/dotn...)
10. Remove Column from DataTable: https://docs.microsoft.com/en-us/dotn...)
11. GetFiles from Directory: https://docs.microsoft.com/en-us/dotn...)
12. ReadAllLines from Text file: https://docs.microsoft.com/en-us/dotn...)
13. RenameFile: https://docs.microsoft.com/en-us/dotn...

🌟 𝗖𝗼𝗱𝗲
✔ TargetType → Class Name
✔ TargetObject → Instance
✔ MethodName → Method Name
✔ Parameters → Parameters of the method
✔ Result → Output of the method

🕜 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀
► 00:00 Introduction
► 00:39 Which Methods?
► 03:52 Static Vs. Non-Static
► 06:34 Invoke Method Properties
► 08:51 Method Structure
► 10:47 Procedure to fill in the Properties
► 13:04 WriteLine Method
► 15:40 Max Method
► 18:06 Contains Method
► 21:06 Replace Method
► 23:33 AddDays Method
► 26:10 Sort Array Method
► 29:19 Copy DataTable Method
► 31:41 Compute DataTable Method
► 35:15 Add Row Method
► 39:28 Remove Column Method
► 41:48 GetFiles Method
► 44:28 ReadAllLines Method
► 47:00 RenameFile Method
► 49:35 GenericTypeArguments & RunAsynchronously

📝 𝐏𝐫𝐨𝐜𝐞𝐝𝐮𝐫𝐞
➊ Check the method if static or non-static
➋ Fill in one of the both (TargetType or TargetObject)
➌ Write the method name (without class name)
➍ Add the parameters (if there are any)
➎ Create variable to store the result (if there is output)

✍ 𝗞𝗲𝘆 𝗪𝗼𝗿𝗱𝘀
→ UiPath
→ UiPath Automation
→ UiPath Activity
→ Invoke Method Activity
→ System.Console.WriteLine
→ System.Math.Max
→ System.String.Contains
→ System.String.Replace
→ System.DateTime.AddDays
→ System.Array.Sort
→ System.Data.DataTable.Copy
→ System.Data.DataTable.Compute
→ System.Data.DataRowCollection.Add
→ System.Data.DataColumnCollection.Remove
→ System.IO.Directory.GetFiles
→ System.IO.File.ReadAllLines
→ Microsoft.VisualBasic.FileIO.FileSystem.RenameFile

📰 𝗙𝗮𝗰𝗲𝗯𝗼𝗼𝗸 𝗣𝗮𝗴𝗲:   / actautomate  
📌 𝗙𝗮𝗰𝗲𝗯𝗼𝗼𝗸 𝗚𝗿𝗼𝘂𝗽:   / 3241715929443302  
💼 𝗟𝗶𝗻𝗸𝗲𝗱𝗜𝗻:   / 70939125  
📸 𝗜𝗻𝘀𝘁𝗮𝗴𝗿𝗮𝗺:   / actautomate  
📢 𝗬𝗼𝘂𝗧𝘂𝗯𝗲 𝗦𝗵𝗼𝗿𝘁𝘀: ‪@ActAutomateShorts‬

👍 𝗦𝘂𝗯𝘀𝗰𝗿𝗶𝗯𝗲:    / @actautomate