Str_Commodity : I415 or D456 …etc… (this value will be captured from website)
Str_PurchOrg : [0001] HMP or [0001] HCP or 0005 or ADMI…etc… (this value will be captured from website)
Now bot has to match starting letter of commodity code and whole text of purg org with below DB and store the result as Yes or No based on the validation
small change
use for each row in datatable activity
inside use
Currentrow(“Commodity”).tostring.contains(Str_Commodity.substring(0,1)) and Currentrow(“PurchOrg”).tostring.contains(Str_PurchOrg)