Create Variable (Ex: GetNum) in the Output of Property of Get Text Activity.
Use Read Range Activity (Workbook) for getting all phone Number from Excel. Ex:
Give your Excel Path in Read Range Activity and Sheet name of Your Excel Sheet (i.e. "Sheet1”) and Range become Empty.
In Property Section of Read Range Activity, Check on Add Headers and Create one variable and his Variable Type is “System.Data.Datatable” type(i.e. dtPhoneNum)
Use another read Range Activity with different output name (i.e. dtNum). (Note: All field same as above Read Range Activity except Output Variable Name).
Use Clear Data Table Activity and put datatable Name(i.e. dtNum) in Input of Property section of this Activity.
Use For Each Row Activity for using all Phone Number coming from Excel and then we will compare with our Get text.
Put your DataTable Variable Name (i.e. dtPhoneNum ) in Input of Property Section of for Each Row Activity.
Use If Activity inside Body part of For Each Row Activity to check condition i.e. phone Number same or Not.
Condition is “row(0).tostring=GetNum” So If this condition true then Move to Then Part otherwise move to Else Part.
Use Add Data Row inside Then Part of IF Activity and put this {row(0),”Success”} inside Array Row of Input of Property and also put Name Datatable Variable Name which we use in Clear Data Table Activity.(i.e. dtNum)
Same Add Data Row Activity in Else Part also except in Property in ArrayRow is { row(0),”Failed”}
At End, Use Write Range Activity for update Excel.