When i use get text activity I get the whole content (marked in a red). But I need to check whether certain value/string exists or not. Say Name field in this case. trade__name_eng which is in double quoted. How can I check if there is certain name exsits which I am trying to verify through API
Hi,
Can you try the following expression?
System.Text.RegularExpressions.Regex.Match(yourString,"(?<=trade_Name_Eng:\s+"")[^""]+").Value
Or it might be better to de-serialize Json then extract trade_Name_Eng.
Regards,
To check for existance you can directly use contains…say string is stored in str then str.Tolower.Contains("trade_name_eng")
This returns true if present…
Hope this helps
Cheers
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.