UiPath | TAKE Function - LINQ | LINQ Tutorials

Опубликовано: 16 Октябрь 2024
на канале: Act Automate
3,035
41

#rpa #uipath #linq
👉 𝐄𝐧𝐠𝐥𝐢𝐬𝐡
● This video is about🔍𝗧𝗔𝗞𝗘 function in🔥LINQ🔥
● You will learn, what is this function for and how to use it exactly.
● There are 4 examples in the video to explain this function.
➊ Example about Arrays 📐 → How to get the first numbers from a LINQ query result?
➋ Example about Files 📂 → How to get the three newest files from directory?
➌ Example about DataTables 📋 → How to get the first n rows from table?

🌟 𝗖𝗼𝗱𝗲
✔ Take(Number)
Number: indicates, how many items should be taken from the IEnumerable variable.

✔ From n in NumArray.Take(7)
✔ From row in MyDT.Take(4)
✔ From f in New DirectoryInfo("C:\Temp").GetFiles("*.*").Take(6)
✔ .Take(4).ToArray
✔ .Take(3).ToList
✔ .Take(2).CopyToDataTable

🕜 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀
► 00:00 Introduction
► 02:40 Array Example
► 05:30 Files Example
► 10:30 DataTables Example
► 13:35 Take Function within Query
► 15:05 Take Number bigger than Length

📝 𝗟𝗜𝗡𝗤 𝗩𝗶𝗱𝗲𝗼𝘀
𝗔. 𝗣𝗔𝗥𝗧𝗜𝗧𝗜𝗢𝗡 𝗢𝗣𝗘𝗥𝗔𝗧𝗢𝗥𝗦
➊ 𝗧𝗔𝗞𝗘:    • UiPath | TAKE Function - LINQ | LINQ ...  
➋ 𝗦𝗞𝗜𝗣:    • UiPath | SKIP Function - LINQ | LINQ ...  
➌ 𝗧𝗔𝗞𝗘𝗪𝗛𝗜𝗟𝗘:    • UiPath | TAKEWHILE Function - LINQ | ...  
➍ 𝗦𝗞𝗜𝗣𝗪𝗛𝗜𝗟𝗘:    • UiPath | SKIPWHILE Function - LINQ | ...  

𝗕. 𝗣𝗥𝗢𝗝𝗘𝗖𝗧𝗜𝗢𝗡 𝗢𝗣𝗘𝗥𝗔𝗧𝗢𝗥𝗦
➊ 𝗦𝗘𝗟𝗘𝗖𝗧:    • UiPath | SELECT Function - LINQ | LIN...  
➋ 𝗦𝗘𝗟𝗘𝗖𝗧𝗠𝗔𝗡𝗬:    • UiPath | SELECTMANY Function - LINQ |...  

𝗖. 𝗙𝗜𝗟𝗧𝗘𝗥𝗜𝗡𝗚 𝗢𝗣𝗘𝗥𝗔𝗧𝗢𝗥𝗦
➊ 𝗪𝗛𝗘𝗥𝗘:    • UiPath | WHERE Function - LINQ | LINQ...  

𝗗. 𝗤𝗨𝗔𝗡𝗧𝗜𝗙𝗜𝗘𝗥 𝗢𝗣𝗘𝗥𝗔𝗧𝗢𝗥𝗦
➊ 𝗔𝗟𝗟:    • UiPath | ALL Function - LINQ | LINQ T...  
➋ 𝗔𝗡𝗬:    • UiPath | ANY Function - LINQ | LINQ T...  

𝗘. 𝗘𝗟𝗘𝗠𝗘𝗡𝗧 𝗢𝗣𝗘𝗥𝗔𝗧𝗢𝗥𝗦
➊ 𝗘𝗹𝗲𝗺𝗲𝗻𝘁𝗔𝘁:    • UiPath | ElementAt Operator | Element...  
➋ 𝗘𝗹𝗲𝗺𝗲𝗻𝘁𝗔𝘁𝗢𝗿𝗗𝗲𝗳𝗮𝘂𝗹𝘁:    • UiPath | ElementAt Operator | Element...  
➌ 𝗙𝗶𝗿𝘀𝘁:    • UiPath | First Operator | FirstOrDefa...  
➍ 𝗙𝗶𝗿𝘀𝘁𝗢𝗿𝗗𝗲𝗳𝗮𝘂𝗹𝘁:    • UiPath | First Operator | FirstOrDefa...  
➎ 𝗟𝗮𝘀𝘁:    • UiPath | Last Operator | LastOrDefaul...  
➏ 𝗟𝗮𝘀𝘁𝗢𝗿𝗗𝗲𝗳𝗮𝘂𝗹𝘁:    • UiPath | Last Operator | LastOrDefaul...  
➐ 𝗦𝗶𝗻𝗴𝗹𝗲:    • UiPath | Single Operator | SingleOrDe...  
➑ 𝗦𝗶𝗻𝗴𝗹𝗲𝗢𝗿𝗗𝗲𝗳𝗮𝘂𝗹𝘁:    • UiPath | Single Operator | SingleOrDe...  
➒ 𝗗𝗲𝗳𝗮𝘂𝗹𝘁𝗜𝗳𝗘𝗺𝗽𝘁𝘆:    • UiPath | DefaultIfEmpty Operator | LI...  

✍ 𝗞𝗲𝘆 𝗪𝗼𝗿𝗱𝘀
→ UiPath
→ UiPath Automation
→ UiPath Activity
→ LINQ Tutorials
→ LINQ for beginners
→ LINQ functions
→ LINQ in UiPath
→ Language Integrated Query
→ Take Function
→ Filter LINQ Query Output
→ Filter DataTable
→ Filter Files in Folder
→ Loop Files in Folder using LINQ
→ Filter Array using LINQ
→ Filter Table using LINQ
→ Get the newest three files from Folder using LINQ
→ Get first two rows from Table using LINQ
→ Get first 4 numbers from array using LINQ

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

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