Remove everything before and after a specific word
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello community,
I am currently getting a response from a API and I use Text to Columns to convert the data into the below format.
DownloadHeaders | JSON_Name | JSON_ValueString |
HTTP/1.1 200 Connected HTTP/1.1 200 OK | d.Name | ABC.csv |
HTTP/1.1 200 OK Cache-Control: private, max-age=0 Transfer-Encoding: chunked Content-Type: application/json;odata=verbose;charset=utf-8 Content-Encoding: gzip Expires: Sun, 02 Apr 2023 14:14:03 GMT Last-Modified: Mon, 17 Apr 2023 14:14:03 GMT | d.Name | DEF.csv |
HTTP/1.1 200 OK Cache-Control: private, max-age=0 Transfer-Encoding: chunked Content-Type: application/json;odata=verbose;charset=utf-8 Content-Encoding: gzip Expires: Sun, 02 Apr 2023 14:14:08 GMT Last-Modified: Mon, 17 Apr 2023 14:14:08 GMT | d.Name | GHI.csv |
DownloadHeaders | JSON_Name | JSON_ValueString |
HTTP/1.1 200 OK | d.Name | ABC.csv |
HTTP/1.1 200 OK | d.Name | DEF.csv |
HTTP/1.1 200 OK | d.Name | GHI.csv |
I would like to get rid of anything other than HTTP/1.1 200 OK from the DownloadHeaders column. The objective here is to send an email with the filenames only when DownloadHeaders is HTTP/1.1 200 OK is present.
Thank you
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
If the objective is to send emails when you have a 200 OK, then just filter with,
Contains([DownloadHeaders], '200 OK')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Another way.
IF Contains([DownloadHeaders], 'HTTP/1.1 200 OK') THEN 'HTTP/1.1 200 OK' ELSE '' ENDIF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you for the solution @ShankerV
