whitestar
(Phyo)
October 19, 2022, 11:06am
12
isn’t it the same as another topic? I already provided you workflow
Anyhow, here is what I have done on another topic for you.
Sort the excel name
Sort the Queue Name
array[string] queueFullNameSorted = queueFullName.Split(" “c).OrderBy(Function(x) x).ToArray()
array[string] excelFullNameSorted = excelFullName.Split(” "c).OrderBy(Function(x) x).ToArray()
join the sorted array variables
queueFullName= String.Join(" “,queueFullNameSorted ).ToUpper
excelFullName = String.Join(” ",fullNameSorted).ToUpper
if(excelFullName.Contains(queueFullName))
this way your name will always be in the same order when you compare in the if statement.
HI @Sandhya_Gajare
Checkout this expression
String.Join(", ","Sandhya Gajare".Split(" ").ToArray().Reverse)
Hope this helps!!
Regards
Sudharsan
1 Like
if i use this in if loop is it work for me
Gokul001
(Gokul Balaji)
October 19, 2022, 11:18am
16
Yes @Sandhya_Gajare , You need to use this in the if activity
@Sandhya_Gajare
Try this
(strName.Split(" "c)(1)+","+strName.Split(" "c)(0)).Contains(CurrentRow(“Name”).ToString)
Gokul001
(Gokul Balaji)
October 19, 2022, 11:30am
19
Hi @Sandhya_Gajare
Assign activity
ReverseStr = strName.ToString.Split(" "c)(1)+","+strName.ToString.Split(" "c)(0)
If activity
ReverseStr.Contains(ExcelName)
Check out the screenshot
2 Likes
Can you tell what is the condition you are going to give? @Sandhya_Gajare
Can you try this in your condition @Sandhya_Gajare
String.Join(", ","Sandhya Gajare".Split(" ").ToArray().Reverse).Contains(CurrentRow("Name").ToString)
Regards
Sudharsan
1 Like
(strName.Split(" “c)(1)+”, “+strName.Split(” "c)(0)).Contains(CurrentRow(“Name”).ToString) And CurrentRow(“Eligible”)=Y
and i have to check eligibilty=‘y’ how i can write
Gokul001
(Gokul Balaji)
October 19, 2022, 12:05pm
23
Gokul001:
Assign activity
ReverseStr = strName.ToString.Split(" "c)(1)+","+strName.ToString.Split(" "c)(0)
If activity
ReverseStr.Contains(ExcelName)
Try like this in the if activity @Sandhya_Gajare
ReverseStr.Contains(ExcelName) And CurrentRow("Eligible").Tostring.Contains("Y")
1 Like
I have to check
eligibility=‘y’ or eligibility=“N” or eligibility=“Blank”
then i have to write all data of emp into another excel
Gokul001
(Gokul Balaji)
October 19, 2022, 12:12pm
25
@Sandhya_Gajare
ReverseStr.Contains(ExcelName) And CurrentRow("Eligible").Tostring.Contains("Y") Or CurrentRow("Eligible").Tostring.Contains("N") or CurrentRow("Eligible").Tostring.Contains("Blank") Or String.IsNullOrEmpty(CurrentRow("Eligible").Tostring)
1 Like
Gokul001
(Gokul Balaji)
October 19, 2022, 12:19pm
27
Kindly close this topic by mark as solved @Sandhya_Gajare
Gokul001
(Gokul Balaji)
October 19, 2022, 12:42pm
28
Kindly mark the correct post as solved @Sandhya_Gajare
How can i write the queue data and excel data to another excel
if my condition is match then
ReverseStr.Contains(ExcelName) And CurrentRow(“Eligible”).Tostring.Contains(“Y”)
I have to write the emplyee data from queue and
eligibility and details this two column of another excel
so i have to write that data to new excel which is already available with header
Gokul001
(Gokul Balaji)
October 19, 2022, 12:57pm
30
Hey @Sandhya_Gajare
Create an New topic for this query. It will be confused for other users.
Regards
Gokul
1 Like
system
(system)
Closed
October 22, 2022, 12:57pm
31
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.