El robot que tengo, busca los EAN l en la web que me dan en un Excel y hay algunos productos que tienen el mismo EAN y tengo que comparar con el campo de referencia entre la web y el Excel y no sé cómo hacerlo.
La referencia que viene en la web es la rodeada en circulo rojo:
y la referencia que viene en el Excel es sólo el número (sin la letra)
Yo lo quería plantear de tal manera que diga por cada EAN encontrado, que compare la referencia de la web si es la misma que la del Excel y si lo es, extráeme el stock.
Gracias.
ppr
(Peter Preuss)
April 24, 2023, 9:17am
2
For extraction the website data we would check if DataScraping / Table extraction is possible
Feel free to share with us URL
for extraction the EAN we can use REGEX
This CheatSheet introduces the basic use of regex functions. With further examples also special cases are presented.
Introduction
From the namespace System.Text.RegularExpressions following methods are offered:
Regex.Match
Regex.Matches
Regex.isMatch
Regex.Replace
Regex.Split
A simple usage for example would look like this:
[grafik]
Recommendation:
add System.Text.RegularExpressions to the imports:
[grafik]
it allows to use the shortened statement, as the namespace part can be ommited…
Srini84
(Srinivas Kadamati)
April 24, 2023, 9:21am
3
lidia.villaverde:
y la referencia que viene en el Excel es sólo el número (sin la letra)
Yo lo quería plantear de tal manera que diga por cada EAN encontrado, que compare la referencia de la web si es la misma que la del Excel y si lo es, extráeme el stock.
Gracias.
@lidia.villaverde
You can use Get Text activity to get the value from the website and declare a variable
Now you can use Read Range activity to read the excel which contains all the details
Now declare a string variable as ArtNumber, Now you can write as GetTextVariable.Split(“:”)(1).ToString
You will get the only Number from that
Now use Filter Datatable and pass the ArtNumber to that
Place a If Condition to check If there are matching rows to that ArtNumber
Like DatatableVariable.Rows.Count > 0
Then It has a match
Hope this may help you
Thanks,
Srini
Hi,
I check all these steps and I made this:
I create variabe named Referencia as String and ArtNumber as:
but it returns me an error and then, I don´t know how can I continue.
Thanks.