Hi kavsanu,
You can easily extract the client information by using split method.
string.split({“Delimiter1”,“Delimiter2”},StringSplitOptions)
Let the result of the get text activity be ‘text’ (Client information block)
Assign client_id =text.Split({"ID:","Client Name:"},StringSplitOptions.None)(1).Trim
Here, our delimiters are “ID:” &“Client Name:”. So the text block is divided into 3 parts. String before"ID:", String in between “ID:” & “Client Name:”, string after Client Name. That is {0,1,2}. We need the 1st string in the array, that’s why we specified as (1).
Likewise assign,
client_name=text.Split({"Name:","Client Country:"},StringSplitOptions.None)(1).Trim
client_country=text.Split({"Country:"},StringSplitOptions.None)(1).Trim
For your reference, Please have a look at the workflow.Extract_Client_Info.xaml (7.6 KB)
For more details about split method, check this. String.Split Method (System) | Microsoft Learn
Warm regards,
Nimin