Pass variable in ExtractMetadata


#1

How to pass variable in ExtractMetadata property of Data scraping?


#2

I think you can take your Metadata into a string variable and manipulate it per your requirement. Isn’t that what you need?


#5

Can I pass wildcards in variables?


#6

Thanks @vvaidya , it solved my problem. But why is it that I can’t manipulate it directly in the meta data property? Just curious…


#7

How did you write the string of the metadata? I always get an error when using the string to pass the metadata, even if I make no changes.
This is the error I get:
An error has occured

Message: Unable to cast object of type ‘Newtonsoft.Json.Linq.JValue’ to type ‘System.String’.

Any ideas? If you can, give an example of what you wrote.


#8

Hi,
Could you please paste the metatdata.
It should work.


#9
"<extract><row exact='1'><webctrl tag='div' class='formContent' idx='1'/><webctrl tag='div' class='formItemArea queryResultformborder  paddingFour' idx='1'/><webctrl tag='div' class='finch-grid finchgrid-1 slickgrid_"+sno+" ui-widget' idx='1'/><webctrl tag='div' class='slick-viewport' idx='1'/><webctrl tag='div' class='grid-canvas' idx='1'/><webctrl tag='div'/></row></extract>"

Its just a small sample of the metadata actually used.


#10

Hi,
Its working fine.
Do you have URL where you try to extract the data.
Or you can attach your workflow .


#11

It worked. I was that I was keeping the spaces between elements. Thank you anyway!