Pass variable in ExtractMetadata

How to pass variable in ExtractMetadata property of Data scraping?

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

1 Like

Can I pass wildcards in variables?

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

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.

Could you please paste the metatdata.
It should work.

"<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.


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

1 Like

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

1 Like