I am trying to read body of the emails from outlook which has following details and get The value of website URL, Name, Phone, Email etc… using regex match and testing it a write line activity.
Website URL: http://www.somthing.com
Name: Something
Email: Something@Something.com
Phone: 12345
Referal URL: https://www.Something.com/search?q=Something&src=IE-TopResult
Referal Landing URL: Something.com/
IP address: 255.255.255.205
Affiliate Id: 1234
In few email body some of these details are missing. e.g, Referal URL will not be present. In such cases I get ‘Object reference not sent to an instance of an Object Write line error’. Saw in some forum they asked me to try str_output = IF(String.IsNullOrEmpty(str_input.ToString)," ",str_Input.ToString).ToString. But I get the same error for Assign activity. Please help with a solution. How to assign the value of those missing strings as ‘N/A’?