UiPath Code snippets

Split by line: 

out_val.Split(CChar(vblf))


before text:
Single text

Client ID: RU90268
Account Number: 634796
Account Amount: 88917 USD


After text

array of 3 elements

1.Client ID: RU90268
2.Account Number: 634796
3. Account Amount: 88917 USD



------
Get Secure String for Password:
New System.Net.NetworkCredential(String.Empty, <--password variable-->).Password

------------------------------------------------------------------------------
Dynamic Selectors--> UiExplore the page & then check for parent attributes to find the aaname ...

<html title='*IBM Cognos Viewer' />
<webctrl tableRow='1' tag='TR' aaname='*Account Code/Desc*' />
<nav up='1'>
<webctrl id='PRMT_SV_N*_NS_' tag='SELECT' />



<nav up='3'> if the parent is 3 steps above the child





Add values to list using Assign activity
New List(Of Integer)(new integer(){1,3,6,8})
or
new List(of string)(new string(){“value1”,“value2”})

Systems.Collections.Generic.List<int32orString>






Top 50 Records from a DataTable

use Assign Activity
Dt2 = Dt1.Clone

Dt2=Dt1.AsEnumerable().Take(50).CopyToDataTable()
https://forum.uipath.com/t/top-50-records-from-a-datatable/8568/1










Comments

  1. This information is really awesome thanks for sharing most valuable information.
    We are giving all Programming Courses such as

    Register for a free Demo Sessions

    RPA Ui Path Online Training
    Best Python Online Training
    Online AWS Training
    Online Data Science Training

    ReplyDelete

Post a Comment

Popular posts from this blog

UiPath ShortCuts

Install UiPath Orchestrator