Read header information from an e-mail that is an attachment to another e-mail
I've written a macro using VBA code within Outlook 2010 that will extract header information from an e-mail and then save it to a csv file. The code works well, but unfortunately, the header information I need is within e-mails that are sent to
me as attachments. Which means that I am opening the attachment and then running the macro to get the header information. Is there a way for VBA to open the attached e-mail and read its header?
Ideally, I would like to write code that will cycle through all of the e-mails in a folder, open the e-mails that are attachments and save off the header information.
Any help or suggestions would be greatly appreciated.
Thank you for your time.
You should try the Exchange Development forum
https://social.technet.microsoft.com/Forums/office/en-US/home?forum=exchangesvrdevelopment
DJ Grijalva | MCITP: EMA 2007/2010 SPA 2010 | www.persistentcerebro.com
Similar Messages
-
Read Header Text From VF03 Transaction
Hi Frds,
I want to Read Header Text From VF03 Transaction
Read Transport Number and Transport Date From Vf03 Transaction.
Guide Me Briefly
How to pass the varaibles to the function Module
Regards,
Kabilhi Kabil ,
Your issue completely accepted just keep in mind
1) if you have to read both text you have to use read_text 2 times
2) in that for first read_text
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = '0002'
LANGUAGE = SY-LANGU
NAME = ' ' "" YOUR VARIABLE THAT CONTAINS Invoices number
OBJECT = 'VBRK'
TABLES
LINES = TLINE
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
is ok for Header note 1 .(means first text ) but for second text your ID is change other thing is same .
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = '0013'
LANGUAGE = SY-LANGU
NAME = ' ' "" YOUR VARIABLE THAT CONTAINS Invoices number
OBJECT = 'VBRK'
TABLES
LINES = TLINE
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Hope this will help you
Thanking You,
shrikant padwale. -
Can I load the information from my iCloud account that was backed up earlier this year to a new device since my iPad was stolen?
Yes you can. iCloud: Restore or set up your iOS device from iCloud
-
Can Audit Vault be used for getting detailed read type information from the siebel database?
Can Audit Vault be used for getting detailed read type information from the siebel database?
Kramer wrote:
saurabh wrote:
check below cmd to see where archive are generated.
SQL> archive log list
And also check the following
SQL> select flashback_on from v$database;
Hi
Here is the out put
SQL> select flashback_on from v$database;
FLASHBACK_ON
NO
SQL> archive log list
Database log mode Archive Mode
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 11
Next log sequence to archive 12
Current log sequence 12
The flashback is not enabled. But archive log list shows archive destination is specified to use_db_recovery_file_dest. And I checked the log_archive_dest_10 still empty
Flashback off or on has nothing to do with it. -
How do I compress a pdf with Create PDF so that I can attach it to e-mail?
How do I compress a pdf with Create PDR so that I can attach it to e-mail?
Hi, Blue Mamba.
Your file is automatically compressed when using the CreatePDF service to convert from some other file type (e.g. Word, Excel) to PDF. For example, most PowerPoint files get compressed 50% to 90% over their original size.
If there is a particular file you're converting to PDF using the CreatePDF service, and you are not seeing the size savings that you would like, please provide more details.
Thanks.
Dave -
I have a new ipad4. I can not open e-mails that have an attachment that ends in WMV. Is there a solution to this? Thanks.
WMV is an unsupported format on Ipad.
Here is a good discussion to read. an dit may help you decide what to do
https://discussions.apple.com/thread/3721087?start=0&tstart=0
Cheers -
Reading Webservice information from ABAP Program
Hi All,
How to read a webservice information from a ABAP program ?
Are there any webservices available in ABAP which can do this .
Gopal.Hi,
The following code will call the web service and fill the data into internal table which was received from the Web service. This code will send & Receive the data from ABAP to Webservice.
Change the Header detail as per your Webservice.
REPORT ZWORKORDER.
TYPES: BEGIN OF OUTTAB1 ,
JOBCODE(20),
COMPONENTCODE(20),
ACCURATEHOURS(20),
ACCURATECOST(20),
LENGTH TYPE I,
END OF OUTTAB1 .
DATA: OUTTAB TYPE TABLE OF OUTTAB1.
DATA: TAB TYPE OUTTAB1.
DATA: WF_O LIKE LINE OF OUTTAB .
DATA: XSLT_ERR TYPE REF TO CX_XSLT_EXCEPTION .
DATA: RLENGTH TYPE I,
TXLEN TYPE STRING .
DATA: HTTP_CLIENT TYPE REF TO IF_HTTP_CLIENT .
DATA: WF_STRING TYPE STRING .
DATA: WF_STRING1 TYPE STRING .
DATA: WF_PROXY TYPE STRING ,
WF_PORT TYPE STRING .
CLEAR WF_STRING .
Form the input string to send the Input Data to Web service.
CONCATENATE
'<?xml version="1.0" encoding="utf-8"?>'
'<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">'
' <soap:Body>'
' <GetWorkOrder xmlns="http://*******erica.net/webservices/">'
' <nWorkOrder>2</nWorkOrder>'
' <nDistributorCode>4871</nDistributorCode>'
' <model>HM400</model>'
' <type>1 </type>'
' </GetWorkOrder>'
' </soap:Body>'
'</soap:Envelope>'
INTO WF_STRING .
CLEAR :RLENGTH , TXLEN .
RLENGTH = STRLEN( WF_STRING ) .
MOVE: RLENGTH TO TXLEN .
CLEAR: WF_PROXY, WF_PORT .
CALL METHOD CL_HTTP_CLIENT=>CREATE
EXPORTING
HOST = '192.168.1.41' "'http://****merica.net/webservices'
SERVICE = '8080'
SCHEME = '1'
IMPORTING
CLIENT = HTTP_CLIENT.
HTTP_CLIENT->PROPERTYTYPE_LOGON_POPUP = HTTP_CLIENT->CO_DISABLED.
CALL METHOD HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
EXPORTING
NAME = '~request_method'
VALUE = 'POST'.
CALL METHOD HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
EXPORTING
NAME = '~server_protocol'
VALUE = 'HTTP/1.1'.
CALL METHOD HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
EXPORTING
NAME = '~request_uri'
VALUE = '/service/accurate/workorder.asmx?'.
CALL METHOD HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
EXPORTING
NAME = 'Content-Type'
VALUE = 'text/xml; charset=utf-8'.
CALL METHOD HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
EXPORTING
NAME = 'Content-Length'
VALUE = TXLEN.
CALL METHOD HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
EXPORTING
NAME = 'SOAPAction'
VALUE = 'http://********merica.net/webservices/GetWorkOrder'.
CALL METHOD HTTP_CLIENT->REQUEST->SET_CDATA
EXPORTING
DATA = WF_STRING
OFFSET = 0
LENGTH = RLENGTH.
Send the Input Data to Web service.
CALL METHOD HTTP_CLIENT->SEND
EXCEPTIONS
HTTP_COMMUNICATION_FAILURE = 1
HTTP_INVALID_STATE = 2.
Receive the Input from Web Serice.
CALL METHOD HTTP_CLIENT->RECEIVE
EXCEPTIONS
HTTP_COMMUNICATION_FAILURE = 1
HTTP_INVALID_STATE = 2
HTTP_PROCESSING_FAILED = 3.
CLEAR WF_STRING1 .
WF_STRING1 = HTTP_CLIENT->RESPONSE->GET_CDATA( ).
DATA: LENGTH TYPE I.
LENGTH = STRLEN( WF_STRING1 ).
DATA: VALUE_FIELD TYPE NAME_KOMP.
DATA: VALUE TYPE REF TO DATA.
FIELD-SYMBOLS: <FS_CONVERTED_DATA>.
DATA: TAB1 TYPE TABLE OF STRING.
DATA: FROM_LENGTH TYPE I VALUE 1.
DATA: TO_LENGTH TYPE I.
DATA: DIFF TYPE I.
DATA: START TYPE I VALUE 1.
DO.
JOBCODE.
SEARCH WF_STRING1 FOR 'JobCode=' . "STARTING AT START .
IF SY-SUBRC <> 0.
EXIT.
ENDIF.
FROM_LENGTH = SY-FDPOS .
FROM_LENGTH = FROM_LENGTH + 8.
SEARCH WF_STRING1 FOR 'JobDescription=' ."STARTING AT START ..
TO_LENGTH = SY-FDPOS .
DIFF = TO_LENGTH - FROM_LENGTH .
MOVE WF_STRING1+FROM_LENGTH(DIFF) TO TAB-JOBCODE.
TO_LENGTH = DIFF + TO_LENGTH.
SHIFT WF_STRING1 BY TO_LENGTH PLACES.
COMPONENT CODE
SEARCH WF_STRING1 FOR 'ComponentCode=' .
IF SY-SUBRC <> 0.
EXIT.
ENDIF.
FROM_LENGTH = SY-FDPOS .
FROM_LENGTH = FROM_LENGTH + 14.
SEARCH WF_STRING1 FOR 'ComponentDescription=' .
TO_LENGTH = SY-FDPOS .
DIFF = TO_LENGTH - FROM_LENGTH .
MOVE WF_STRING1+FROM_LENGTH(DIFF) TO TAB-COMPONENTCODE.
TO_LENGTH = DIFF + TO_LENGTH.
SHIFT WF_STRING1 BY TO_LENGTH PLACES.
AccurateHours
SEARCH WF_STRING1 FOR 'AccurateHours=' .
IF SY-SUBRC <> 0.
EXIT.
ENDIF.
FROM_LENGTH = SY-FDPOS .
FROM_LENGTH = FROM_LENGTH + 14.
SEARCH WF_STRING1 FOR 'AccurateCost='.
TO_LENGTH = SY-FDPOS .
DIFF = TO_LENGTH - FROM_LENGTH .
MOVE WF_STRING1+FROM_LENGTH(DIFF) TO TAB-ACCURATEHOURS.
TO_LENGTH = DIFF + TO_LENGTH.
AccurateCost
SEARCH WF_STRING1 FOR 'AccurateCost='.
FROM_LENGTH = SY-FDPOS.
FROM_LENGTH = FROM_LENGTH + 13.
SEARCH WF_STRING1 FOR '/>'.
TO_LENGTH = SY-FDPOS.
DIFF = TO_LENGTH - FROM_LENGTH .
MOVE WF_STRING1+FROM_LENGTH(DIFF) TO TAB-ACCURATECOST.
TO_LENGTH = DIFF + TO_LENGTH.
SHIFT WF_STRING1 BY TO_LENGTH PLACES.
APPEND TAB TO OUTTAB.
ENDDO.
WRITE: (10) 'JOBCODE'.
WRITE (20) 'COMPONENTCODE'.
WRITE (30) 'ACCURATEHOURS'.
WRITE (40) 'ACCURATECOST'.
LOOP AT OUTTAB INTO TAB.
WRITE:/ TAB-JOBCODE .
WRITE (20) TAB-COMPONENTCODE.
WRITE (30) TAB-ACCURATEHOURS.
WRITE (40) TAB-ACCURATECOST.
ENDLOOP .
It is better to create a proxy, it then puts a level of abstraction between in that coding. All you need to do is then access the proxy class.
Besides that i think you can do it by configuring the ITS and calling the webservice by means of using BSP applications in ABAP
<b>I believe you need to create a proxy in order to consume your web service.
http://help.sap.com/saphelp_nw2004s/helpdata/en/bf/d005244e9d1d4d92b2fe7935556b4c/frameset.htm
Reward points</b>
Regards -
Work order header information from BAPI_ALM_ORDERHEAD_GET_LIST
Upfront I'll admit that this question likely falls outside of MII as I am getting bad results in SE37 as well. Was hoping others in this group have experience with this.
When I use BAPI_ALM_ORDERHEAD_GET_LIST there are several work orders that do not get returned, and I can't figure out why, or even what is the common thread between them. The missing orders are viewable via iw33, and information can also be returned from BAPI_ALM_ORDER_GET_DETAIL.
Right now, the only thing I pass in OPTIONS_FOR_ORDERID with a range of orders (ie 20 or so). Orders are returned in the correct range, just not the one I am looking for.
RodHi Rod,
The only thing I can think of is that there are times where orders (or other objects) are created outside of normal procedures. My experience was with Batch histories, but if the objects are not created in the normal process (a nebulous term at best), they will sometimes not be stored in all the proper tables. Can you check the processing history of the orders missing to see if there are any discrepancies there?
Otherwise, you may need to get some ECC side help. The ABAP code in the underlying function module may direct you to all the tables which should be populated with the correct data so you can check which tables are not populated.
An alternative option for getting the work order header information would be to go back to the old reliable RFC_READ_TABLE.
Good luck,
Mike
Edited by: Michael Appleby on Feb 12, 2011 4:13 PM -
How to read my information from a html file?
Hi
I saved an html file from a website.
How can I read my information (For example the first URL) from the html file?
following code reads line by line:
using (StreamReader reader = new StreamReader(Application.StartupPath + @"\x.htm"))
String line = String.Empty;
while ((line = reader.ReadLine()) != null)
MessageBox.Show(line);How about this...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Diagnostics;
namespace ReadFromHtml
class Program
static void Main(string[] args)
using (StreamReader reader = new StreamReader(Environment.CurrentDirectory + @"..\..\..\page1.html"))
String line = String.Empty;
while ((line = reader.ReadLine()) != null)
if (line.Trim().StartsWith("<a"))
Console.WriteLine(line.Trim());
break;
Console.ReadLine();
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>mobile craigslist</title>
</head>
<body>
<h1>PAGE1.HTML</h1>
<hr />
<a href="http://mobile.craigslist.com">mobile craigslist</a>
<hr />
</body>
</html>
UML, then code -
Losing Header Information from Siteminder
We have been working to migrate several of our internal CF8 sites over to a new CF11 server. I have only been supporting CF for about a year, so I'm afraid I am not as knowledgeable as I should be.
Most of our sites are working correctly; however, we are encountering a unique issue with a site called Workforce Tracking. It utilizes a header variable (RACFGROUPS) that is returned by Siteminder. This is handled by the application.cfm file, with the relevant section below:
When I navigate to devworkforcetracking2.localnetwork.com/Jobs/, the default index.cfm page gets loaded, the application file is called, and the RACFGROUPS header information is available. I have been using CFOUTPUT on the variable for debugging:
However, if I try to navigate to workforcetracking.localnetwork.com/Jobs/index.cfm (or any site under /Jobs/), I receive this error message:
This is despite the fact that the exact same index.cfm file is being called.
I contacted our Siteminder team, and they provided me with a file to test if the RACFGROUPS variable is being received by other file types inside that folder. The header information is working correctly for their test file.
As far as we can tell, our setup between CF8 and CF11 is identical. We have been picking over this site for quite some time, trying to figure out why the header information is available for /Jobs/ but not for anything under it, and we have not had any luck.
Anyone run into this before? Any advice?In my case, if I show headers via an ASP page, I see all 27 headers. When I show the same headers from a CFM page, I only see 24 headers. And the 3 missing headers are the last 3 headers listed on the ASP page.
I have enabled debug logging for isapi_redirect.log. The log only shows 24 headers (see below).
Is there a limit to the number of headers that isapi_redirect.dll supports?
I am running ColdFusion 11 Enterprise on Windows Server 2008 32 bit.
[Tue Nov 04 10:26:00.940 2014] [8800:8912] [debug] init_ws_service::jk_isapi_plugin.c (3944): Forwarding request header usertype : Employee
[Tue Nov 04 10:26:00.940 2014] [8800:8912] [debug] init_ws_service::jk_isapi_plugin.c (3973): Service protocol=HTTP/1.1 method=GET host=10.4.101.59 addr=10.4.101.59 name=devasicint.internal.local port=80 auth= user= uri=/secureint/headerinfo.cfm
[Tue Nov 04 10:26:00.940 2014] [8800:8912] [debug] init_ws_service::jk_isapi_plugin.c (3985): Service request headers=24 attributes=0 chunked=no content-length=0 available=0 -
How to read header text from VF03 into smartfrom
Hi all,
i want to print header text from vf03 in smartforms
byeHi,
Tcode VF03 enter Billing Doc no -
>goto header-----> select header texts
When you get the values Textname, text id, textobject to the smartform.
call the FM read_text in the programing lines to get the long text in the internal table. Another way to retrieve the long text is to use INCLUDE but for your requirement is better to uses READ_TEXT function module.
Once you get the data in the internal table.
Create table and loop the long text internal table. Now in the table when create a text node, keep a condition on the text node in the conditions column that when sy-tabix = 3. Which means you are skipping two lines (Administrative data).
Procedure:
1. Right click > create-> programming lines.
2. In the Input parameters pass TEXT NAME, TEXT ID, Text Object and Interanal table(itab) and In output paramaeters the Internal table (itab).
3. call function Read_text and pass the values.
4. create a table for Itab.
5. create a text node.
6. Keep a condition on the text node sy-tabix = 3 in the condition tab of the text node.
7. &itab-line&
<b>Check this link for sample program</b>
long text in smartform
Regards,
Maha -
Remove Header Information from PDF Report
Is there a way to not have the Filters and Variables Information show on a report that is emailed from the BeX Broadcaster as PDF document? We are having issues with the information being displayed having gone from being single spaced to having large gaps between the lines. Or has anyone else had a similar issue and knows how to remove the extra lines?
Hello John,
In TX RSCUSTV27 it is possible to maintain default templates.
For broadcasting, the default template is 0QUERY_TEMPLATE_BROADCAST_PDF.
The template can be edited so filters and variables can be removed.
BR
Ondrej -
I am trying to add another e-mail address to FaceTime, but do not want to change the e-mail address associated with my Apple ID. Everytime I try to add the e-mail address in my FaceTime settings, it send me a verification e-mail asking me to verify that I want to change to this new e-mail address for my apple ID. I do not. I just want to have an additional e-mail address for people to contact me via FaceTime. Does anyone know how to do this?
You can have multiple addresses associated with your apple id. You will have to verify any changes before they can be added and this is done by sending you an email. This is to protect you from someone else makeing changes to your account.
You can make any changes and view all your info here:
My Apple ID
https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/ -
How to retrieve photos from my apple ID that was backed up by another apple ID from itunes
so i plugged in my iphone 5 to my laptop and then open itunes then suddenly it restores my mothers backup file from my computer then my photos was replaced by my mothers photos. how can i retrieve my photos again ?
The photos are on the ipod. Photo sync will erase them. I need a way to extract them from the ipod, or to.extract them from the ipod backup that is who knows where on my PC.
I've been searching for an app to do that with no luck. They all seem to want a newer OS than is on my ipod yet I have the most recent update installed. -
Reading my email from my iPad which is no longer allowing me to do. Thanks!
Hey there palmierl,
Welcome to Apple Support Communities.
It sounds like there’s an issue sending and receiving emails from your Gmail account on your iPad. Take a look at the article linked below, the troubleshooting suggestions it provides will likely resolve the issue.
Gmail account cannot get or send email in iOS - Apple Support
Cheers,
-Jason
Maybe you are looking for
-
Last year I produced a textbook using iBookAuthor for my students. I exported it as an iBook and they uploaded it to their iPads. This year, I revised it, including revising the title page. However, when I upload the new version, the old title page i
-
How to reset my Admin Password?
Hi, I bought a new Macbook Pro laptop yesterday running OS X Mavericks 10.9.1 and had it been set up in store so when I got home it was ready to use. Did not have to set up anything! Today I was trying to search for some videos on youtube and apparen
-
An unexpected exception while resolving a new connection to an Adobe Service.
Hi i am new to LC and trying to generate pdf from doc using java API . while doing this i am geting error an unexpected exception while resolving a new connection to an Adobe Service.what is exact reason of this error.from. thanks in advance N1223
-
How to find out the RFC in an existing BOP
Hello Is there a way to find out what RFC is used by an existing BOP?
-
Gurus, I have to write the logic to fetch data from bkpf and bseg. Need help on how can i do that.. I have to get bukrs belnr gjahr ldgrp from BKPF for a given date and company code. For all these documents, then i have to get the line items from BS