How to capture data or specific string from .txt file?

IS there anyone knows how to capture data or specific string from .txt ?
I use Scrape Scraping get information like picture, and then out put them as .txt fileRPSPUSH3.txt (786 Bytes)
but i dont kwno how to get “rps_id:1234572”
BELOW IS the picture and sample file.

[RPSPUSH4.txt|attachment]
I tried just scraping small area only for it, but some times it cant distinguished 3 & 8, also if string at other place it might output something very strange…
THougt it might better scraped full text then catch information inside
Any advice all makes me appriciate alot.

@111402
as it looks like json we can try to handle it like this:

ensure uipath.webApi.Activities are referenced with the dependecy manager

use the text output from the scraping and pass it to the deserialize json activity
this retrurns a JObject - myJObject

the value can now be retrieved within an assign activity:
left side: myValueVar
right side: myJObject(“rps_id”).toString

1 Like

CAN you showTestCase.xaml (7.6 KB)
Because i am a noob, not sure how to do what you said…
i send you what best i can doright now(by following your insturaction), hope you can sent me back your xaml or screen shot of what you mean how to do… i am not really familliar about activities, i am just a begginer!
Thank you!!

grafik
grafik

TestCase_V2.xaml (4.6 KB)

2 Likes

You are a genius!!!
IT work!!!
Thank you sooo much
:slight_smile:

Here is a nice video which explains json value extraction step-by-step:

ok, thanks

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.