Help creating applescript to select email data and insert in existing Excel workbook

Hi there
I'd really appreciate some help.
I want to select three types of data, specifically Name, Email address, and a Date, from the body text of emails in Mac Mail, and export them into columns in an existing Excel workbook.
I've set up a rule in Mail based on the sender, and specified an Applescript action based on the script below. I've sent test emails to meet the rule conditions, and included in the body of these emails the text items below to trigger the script rules, but the Applescript doesn't do anything.
Where I am going wrong?
using terms from application "Mail"
  on perform mail action with messages theMessages for rule TravelRule
  tell application "Mail"
  repeat with each_message in theIncomingMessages
  -- reset the variables
  set thetext to content of each_message
  display dialog thetext
                                        set {thename, theemail, thedates} to {"", "", "", ""}
  -- get the message text
  set message_text to content of each_message
  -- setup text item delimiters
  set {old_delims, my text item delimiters} to {my text item delimiters, ": "}
  -- iterate through the lines of the message looking for the keywords
  repeat with each_para in (paragraphs of message_text)
                                                  if text item 1 of each_para = "Name" then
  set thename to text item 2 of each_para
                                                  else if text item 1 of each_para = "Email" then
  set theemail to text item 2 of each_para
                                                  else if text item 1 of each_para = "Dates" then
  set thedates to text item 2 of each_para
                                                  end if
  end repeat -- each para
  set my text item delimiters to old_delims
  end repeat -- each_message
                              tell application "Microsoft Excel"
  activate
                                        open workbook "/PathDetailsHere/Workbook1.xls"
                                        set formula of range "G6" of worksheet "sheet1" to thename
                                        set formula of range "G9" of worksheet "sheet1" to theemail
                                        set formula of range "G12" of worksheet "sheet1" to thedates
  end tell
  end tell -- application "Mail"
  end perform mail action with messages
end using terms from
I'm a complete Applescript newbie, so any help would be really appreciated! Thank you.

my variables are global for all data providers since I use the same query for my data providers.
It's just the values (some of them : ex: conso version) that differ from one data provider to another.
ex : here for 2 diff Data providers based on the same query i need to enter the following values for mandatory variables
Different versions / different years but same conso group / data entry year/ posting period.
i would like to have the possibility to enter these values out of the "select values for variable" window (not convenient when we have 7 or 8 DP...), but directly in the workbook.
But maybe this is not possible...
In DP1                 
conso version = A_PL                         
conso group = FR01
data entry year = 9999
fiscal year = 2010
Posting period = 12
In DP2
Conso version = P4_MAG
Conso group = FR01
Data entry year = 9999
fiscal year =2011
Posting period = 12

Similar Messages

  • IPad2 and a new MacBook running Lion, Both Devices use the same Apple ID which is a Hotmail eMail id. Can I create a new iCloud eMail Id and use iCloud eMail and continue to use my Hotmail Id for my Apple Id and use it for iTunes, iCloud

    I have an iPad2 and a new MacBook running Mountain Lion. Both Devices use the same Apple ID which is a Hotmail eMail id. Can I create a new iCloud eMail Id and use iCloud eMail and continue to use my current Hotmail Id for my Apple Id for iTunes, iCloud.
    Note, I will use both Hotmail and iCloud eMail.

    Welcome to the Apple Community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")

  • Select RTF Data and display in PDF Document

    Hi all,
    I have a simple table:
    CONTENT_ID - NUMBER
    CONTENT - VARCHAR2(4000)
    On top of this table I have a form that allows the user to enter / update data. The 'CONTENT' field is a Rich Text Editor (ApEx 4.0 - CKEditor 3). This allows the user to enter and format their text as they require.
    I need to be able to select this data and display it in a PDF Document (via BI Publisher).
    I therefore have a simple query
    select content from content_table where content_id = 1;and a simple template that processes the resulting xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <ROWSET>
       <ROW>
          <CONTENT>& lt;h2& gt;
         This is a heading& lt;/h2& gt;
    & lt;p& gt;
         This is the text& lt;/p& gt;
    </CONTENT>
       </ROW>
    </ROWSET>(There is not really a space between the & and 'lt' etc but I had to add this to get it to display correctly here).
    Where I run this past my template I get a PDF with:
    <h2>
    This is a heading</h2>
    <p>
    This is the text</p>I get the same if I generate HTML.
    but what I want to see is the text formatted as the user has entered in the RTF editor.
    Can this be done?
    Many thanks,
    Martin

    I think your mixing 2 technologies.
    At 1 side you have xml in combination with xsl (style sheets used in BI Publisher and FOP) to generate your pdf. And at the other side you have HTML...
    XML and HTML are 2 entirely different technologies which you can not mix this simple. I investigated the same problem as you had, and in the end I ended up using jasperreports instead of FOP.
    Maybe BI Publisher has some html regions which you could insert into your word document but I doubt it cause more people have asked the same question on this board...
    So my advice: use jasperreports (also it is free for commercial usage)
    Success
    Br,
    Nico

  • Hi,I want  ABAP program to create an file of this data and to upload in app

    Hi Sir/Madam,
               I want  ABAP program to create an file of this data and to upload in application server.this is urgent requirement.plz reply soon. i'll b thankful to u.
    Regards,
    Vishali

    Hi ,
    Use this abap code .this will create a file in AL11 that you can use .
    data: d_msg_text(50),
          v_string(20000) type c,
          v_filename type rlgrap-filename,
    ******Create a file on app server
    concatenate '<directory name present in AL11 case sensitive>' ' filename.CSV' into v_filename .
    condense v_filename no-gaps .
    open dataset v_filename for output in text mode
    encoding default message d_msg_text.
    if sy-subrc ne 0.
      write: 'File cannot be opened. Reason:', d_msg_text.
      exit.
    endif.
    ****Header for file
    concatenate 'information you want to write in file like header etc ' into v_string separated by '|'.
    transfer v_string to v_filename.
    *****Write data into file by looping an internal table
    loop at  <internal table > assigning <work area>.
      concatenate      <work area>-field name1   <work area>-field name2    into v_string separated by '|' .
      transfer v_string to v_filename.
    endloop.
    close dataset v_filename.
    Hope this will solve your purpose.
    Regards,
    Jaya Tiwari

  • How to create a table with datatype blob and insert a pdf file (ravi)

    how to create a table with datatype blob and insert a pdf file,
    give me the explain asap
    1.create the table?
    2.insert the pdffiles into tables?
    3.how to view the files?
    Thanks & Regards
    ravikumar.k
    Edited by: 895044 on Dec 5, 2011 2:55 AM

    895044 wrote:
    how to create a table with datatype blob and insert a pdf file,
    give me the explain asapPerhaps you should read...
    {message:id=9360002}
    especially point 2.
    We're not just sitting here waiting to answer your question as quickly as possible for you.

  • Creating a fm with end date and start date

    hi gurus,
    I want to create a FM where my importing parameters will be date.
    like we give in select-options. if i give my importing parameters
    as sdate and edate.
    how my coding will work.
    Eg I want to select emp joining between jan to may. i can pass in importing parameter but what query shud i write so that it will work like a select-option works in a report.
    plz help me in solving this.
    points will be awarded
    regards
    puneet

    Hi,
    U can do like this.
    Declare a range for date and pass ur low and high values to the range in the function module source code.
    RANGES: r_date FOR sy-datum.
    Let us assume ur importing parameters are low_date, high_date.
    If high_date is not mandatory field then do like this.
    CLEAR: r_date, r_date[].
    MOVE: 'I' TO r_date-sign.
    IF NOT high_date IS INITIAL.
       MOVE  'BT' TO r_date-option.
    ELSE.
       MOVE 'EQ' TO r_date-option.
    ENDIF.
    MOVE: low_date TO r_date-low,
                 high_date TO r_date-high.
                APPEND r_date.
    If high_date also mandatory field then do like this.
    CLEAR: r_date, r_date[].
    MOVE: 'I' TO r_date-sign.
               'BT' TO r_date-option.
                low_date TO r_date-low,
                high_date TO r_date-high.
                APPEND r_date.
    If both are not mandatory fields then do like this.
    CLEAR: r_date, r_date[].
    SELECT....
    INTO TABLE ...
    FROM..
    WHERE date IN r_date.
    Hope this will solve ur problem.
    U can also use Between operator in the select statement, But it is relatively slow in performance.
    Thanks,
    Vinod.
    Edited by: Vinod Kumar Vemuru on Mar 9, 2008 4:55 PM
    Edited by: Vinod Kumar Vemuru on Mar 9, 2008 4:56 PM

  • Problem in reading Data and Inserting...Urgent help..

    INITIALIZATION.
      AUTHORITY-CHECK OBJECT 'ZZABAP'
               ID 'ZZABAP' FIELD 'ZCOU2006'
               ID 'ZZAKTI' FIELD '1'.
      IF sy-subrc <> 0.
        MESSAGE e001(zm) WITH text-001.
      ENDIF.
    *... Selektionen .......................................................
      PARAMETER:
        bu AS CHECKBOX,
        p_vtweg LIKE zknvh-vtweg OBLIGATORY.           ".. Update JA/NEIN ?
    START-OF-SELECTION.
    *... Löschen ZKNVH .....................................................
      IF NOT bu IS INITIAL.
        DELETE FROM zknvh WHERE hityp = 'A'.
        IF sy-subrc GT 4.
          ROLLBACK WORK.
          MESSAGE e001(zm) WITH text-002.
        ENDIF.
      ENDIF.
    *Select the Vtweg and perform based on the Vtweg..
    *Running two Variants in the BG processing..
      IF p_vtweg EQ 'MZ'.
        PERFORM form_06.
      ELSEIF p_vtweg EQ 'AU'.
        PERFORM form_04.
      ENDIF.
          FORM form_06                                                  *
    FORM form_06.
    *... Fuellen LKNVH ....................................................
      SELECT * INTO CORRESPONDING FIELDS OF TABLE lknvh
               FROM knvh
               WHERE hityp = 'A'
               AND   datbi GE sy-datum
               AND   hzuor = '06'.
      MESSAGE i002(zm) WITH text-005 sy-dbcnt.
    *... Fuellen Knoten KKNVH .............................................
      SELECT * INTO CORRESPONDING FIELDS OF TABLE kknvh
               FROM knvh
               WHERE hityp = 'A'
               AND   datbi GE sy-datum
               AND   hzuor LT '06'.
    *... Aufbau BU_ZKNVH ..................................................
      LOOP AT lknvh.
        CLEAR: bu_zknvh, flag.
        MOVE-CORRESPONDING lknvh TO bu_zknvh.
        zaehler = 6.
        DO 4 TIMES.
          zaehler = zaehler - 1.
          UNPACK zaehler TO help_hzuor.
          bu_zknvh-hier05 = lknvh-hkunnr.
          IF sy-index = 1.
            READ TABLE kknvh WITH TABLE KEY
                       mandt = sy-mandt
                       hzuor = help_hzuor
                       hityp = lknvh-hityp
                       kunnr = lknvh-hkunnr
                       vkorg = lknvh-hvkorg
                       vtweg = lknvh-hvtweg
                       spart = lknvh-hspart.
          ELSE.
            READ TABLE kknvh WITH TABLE KEY
                       mandt = sy-mandt
                       hzuor = help_hzuor
                       hityp = kknvh-hityp
                       kunnr = kknvh-hkunnr
                       vkorg = kknvh-hvkorg
                       vtweg = kknvh-hvtweg
                       spart = kknvh-hspart.
          ENDIF.
          IF sy-subrc = 0.
            CASE help_hzuor.
              WHEN '05'. bu_zknvh-hier04 = kknvh-hkunnr.
              WHEN '04'. bu_zknvh-hier03 = kknvh-hkunnr.
              WHEN '03'. bu_zknvh-hier02 = kknvh-hkunnr.
              WHEN '02'. bu_zknvh-hier01 = kknvh-hkunnr.
            ENDCASE.
          ELSE.
            WRITE: / text-004,
                     kknvh-hityp,
                     kknvh-kunnr,
                     kknvh-vkorg,
                     kknvh-vtweg,
                     kknvh-spart,
                     kknvh-hkunnr,
                     kknvh-hvkorg,
                     kknvh-hvtweg,
                     kknvh-hspart,
                     kknvh-hzuor.
            flag = 'X'.
            EXIT.
          ENDIF.
        ENDDO.
        IF flag IS INITIAL.
          APPEND bu_zknvh.
        ENDIF.
      ENDLOOP.
    ENDFORM.                                                    " form_06
    Form_4 looks exactly like form_6 just the table name changed and Hier05 and Hier04 fields are Blanks..
    INSERT zknvh from Table bu_zknvh.
      MESSAGE i002(zm) WITH text-006 sy-dbcnt.
      IF sy-subrc <> 0 OR bu IS INITIAL.
        ROLLBACK WORK.
        MESSAGE e001(zm) WITH text-003.
      ELSE.
        COMMIT WORK.
      ENDIF.
    INSERT zknvh from Table au_zknvh.
      MESSAGE i002(zm) WITH text-006 sy-dbcnt.
      IF sy-subrc <> 0 OR bu IS INITIAL.
        ROLLBACK WORK.
        MESSAGE e001(zm) WITH text-003.
      ELSE.
        COMMIT WORK.
      ENDIF.
    1) When I select VTWEG 'MZ' everything is working without anyproblem...
    2) When I select VTWEG 'AU' I can see only one RECORD.. where as their are around 41,000 records.. in this Selection..
    Normally with this prog the ZKNVH table should be filled with the specified fields..
    Only if the VTWEG is AU the Hier05 and Hier04 is Blank and others are filled with data.. bcoz in the Customer Hierarchy of AU has only 4 levels...
    and if VTWEG is MZ all the fields should be filled with data as the Customer Hierarchy of Mz has 6 levels..
    Please check the prog and suggest me how I can Fill append the table ZKNVH with data when I select AU..
    Thanx in advance...
    Preethu
    Message was edited by: Preethu

    HERE IS THE FULL CODE:: please help
    REPORT zcou2006.
    TABLES: zknvh.
    *... Datentypen ................................
    TYPES:
         BEGIN OF t1_knvh,                 "... Knoten
            mandt LIKE knvh-mandt,
            hzuor LIKE knvh-hzuor,
            hityp LIKE knvh-hityp,
            kunnr LIKE knvh-kunnr,
            vkorg LIKE knvh-vkorg,
            vtweg LIKE knvh-vtweg,
            spart LIKE knvh-spart,
            hkunnr LIKE knvh-hkunnr,
            hvkorg LIKE knvh-hvkorg,
            hvtweg LIKE knvh-hvtweg,
            hspart LIKE knvh-hspart,
            grpno LIKE knvh-grpno,
            bokre LIKE knvh-bokre,
            prfre LIKE knvh-prfre,
          END OF t1_knvh,
          t2_knvh LIKE knvh,
          t3_zknvh LIKE zknvh,
          t4_zknvh LIKE zknvh,
        t1_hknvh TYPE HASHED TABLE OF t1_knvh WITH UNIQUE KEY
                  mandt hzuor hityp kunnr vkorg vtweg spart.
    DATA:
      lknvh TYPE t2_knvh OCCURS 0 WITH HEADER LINE,
      bu_zknvh TYPE t3_zknvh OCCURS 0 WITH HEADER LINE,
      au_zknvh TYPE t4_zknvh OCCURS 0 WITH HEADER LINE,
      kknvh TYPE t1_hknvh WITH HEADER LINE,
      flag(1) TYPE c,
      help_hzuor LIKE knvh-hzuor,
      zaehler TYPE p.
    INITIALIZATION.
      AUTHORITY-CHECK OBJECT 'ZZABAP'
               ID 'ZZABAP' FIELD 'ZCOU2006'
               ID 'ZZAKTI' FIELD '1'.
      IF sy-subrc <> 0.
        MESSAGE e001(zm) WITH text-001.
      ENDIF.
      PARAMETER:
        bu AS CHECKBOX,
      p_vtweg LIKE zknvh-vtweg OBLIGATORY.          
    START-OF-SELECTION.
      IF NOT bu IS INITIAL.
        DELETE FROM zknvh WHERE hityp = 'A'.
        IF sy-subrc GT 4.
          ROLLBACK WORK.
          MESSAGE e001(zm) WITH text-002.
        ENDIF.
      ENDIF.
      IF p_vtweg EQ 'MZ'.
        PERFORM form_06.
      ELSEIF p_vtweg EQ 'AU'.
        PERFORM form_04.
      ENDIF.
    FORM form_06.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE lknvh
               FROM knvh
               WHERE hityp = 'A'
               AND   datbi GE sy-datum
               AND   hzuor = '06'.
      MESSAGE i002(zm) WITH text-005 sy-dbcnt.
    SELECT * INTO CORRESPONDING FIELDS OF TABLE kknvh
               FROM knvh
               WHERE hityp = 'A'
               AND   datbi GE sy-datum
               AND   hzuor LT '06'.
      LOOP AT lknvh.
        CLEAR: bu_zknvh, flag.
        MOVE-CORRESPONDING lknvh TO bu_zknvh.
        zaehler = 6.
        DO 4 TIMES.
          zaehler = zaehler - 1.
          UNPACK zaehler TO help_hzuor.
          bu_zknvh-hier05 = lknvh-hkunnr.
          IF sy-index = 1.
            READ TABLE kknvh WITH TABLE KEY
                       mandt = sy-mandt
                       hzuor = help_hzuor
                       hityp = lknvh-hityp
                       kunnr = lknvh-hkunnr
                       vkorg = lknvh-hvkorg
                       vtweg = lknvh-hvtweg
                       spart = lknvh-hspart.
          ELSE.
            READ TABLE kknvh WITH TABLE KEY
                       mandt = sy-mandt
                       hzuor = help_hzuor
                       hityp = kknvh-hityp
                       kunnr = kknvh-hkunnr
                       vkorg = kknvh-hvkorg
                       vtweg = kknvh-hvtweg
                       spart = kknvh-hspart.
          ENDIF.
          IF sy-subrc = 0.
            CASE help_hzuor.
              WHEN '05'. bu_zknvh-hier04 = kknvh-hkunnr.
              WHEN '04'. bu_zknvh-hier03 = kknvh-hkunnr.
              WHEN '03'. bu_zknvh-hier02 = kknvh-hkunnr.
              WHEN '02'. bu_zknvh-hier01 = kknvh-hkunnr.
            ENDCASE.
          ELSE.
            WRITE: / text-004,
                     kknvh-hityp,
                     kknvh-kunnr,
                     kknvh-vkorg,
                     kknvh-vtweg,
                     kknvh-spart,
                     kknvh-hkunnr,
                     kknvh-hvkorg,
                     kknvh-hvtweg,
                     kknvh-hspart,
                     kknvh-hzuor.
            flag = 'X'.
            EXIT.
          ENDIF.
        ENDDO.
        IF flag IS INITIAL.
          APPEND bu_zknvh.
        ENDIF.
      ENDLOOP.
    ENDFORM.                                                    " form_06
    FORM form_04.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE lknvh
               FROM knvh
               WHERE hityp = 'A'
               AND   datbi GE sy-datum
               AND   hzuor LE '06'.
      MESSAGE i002(zm) WITH text-005 sy-dbcnt.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE kknvh
               FROM knvh
               WHERE hityp = 'A'
               AND   datbi GE sy-datum
               AND   hzuor LT '06'.
      LOOP AT lknvh.
        CLEAR: au_zknvh, flag.
        MOVE-CORRESPONDING lknvh TO au_zknvh.
        zaehler = 6.
        DO 4 TIMES.
          zaehler = zaehler - 1.
          UNPACK zaehler TO help_hzuor.
          au_zknvh-hier05 = '          '.
          IF sy-index = 1.
            READ TABLE kknvh WITH TABLE KEY
                       mandt = sy-mandt
                       hzuor = help_hzuor
                       hityp = lknvh-hityp
                       kunnr = lknvh-hkunnr
                       vkorg = lknvh-hvkorg
                       vtweg = lknvh-hvtweg
                       spart = lknvh-hspart.
          ELSE.
            READ TABLE kknvh WITH TABLE KEY
                       mandt = sy-mandt
                       hzuor = help_hzuor
                       hityp = kknvh-hityp
                       kunnr = kknvh-hkunnr
                       vkorg = kknvh-hvkorg
                       vtweg = kknvh-hvtweg
                       spart = kknvh-hspart.
          ENDIF.
          IF sy-subrc = 0.
            CASE help_hzuor.
              WHEN '05'. au_zknvh-hier04 = '          '.
              WHEN '04'. au_zknvh-hier03 = kknvh-hkunnr.
              WHEN '03'. au_zknvh-hier02 = kknvh-hkunnr.
              WHEN '02'. au_zknvh-hier01 = kknvh-hkunnr.
            ENDCASE.
          ELSE.
            WRITE: / text-004,
                     kknvh-hityp,
                     kknvh-kunnr,
                     kknvh-vkorg,
                     kknvh-vtweg,
                     kknvh-spart,
                     kknvh-hkunnr,
                     kknvh-hvkorg,
                     kknvh-hvtweg,
                     kknvh-hspart,
                     kknvh-hzuor.
            flag = 'X'.
            EXIT.
          ENDIF.
        ENDDO.
        IF flag IS INITIAL.
          APPEND au_zknvh.
        ENDIF.
      ENDLOOP.
    ENDFORM.                                                    " form_04
    END-OF-SELECTION.
      INSERT zknvh FROM TABLE bu_zknvh.
      MESSAGE i002(zm) WITH text-006 sy-dbcnt.
      IF sy-subrc <> 0 OR bu IS INITIAL.
        ROLLBACK WORK.
        MESSAGE e001(zm) WITH text-003.
      ELSE.
        COMMIT WORK.
      ENDIF.
      INSERT  ZKNVH FROM TABLE AU_ZKNVH.
      MESSAGE I002(ZM) WITH TEXT-006 SY-DBCNT.
      IF SY-SUBRC <> 0 OR BU IS INITIAL.
        ROLLBACK WORK.
        MESSAGE E001(ZM) WITH TEXT-003.
      ELSE.
        COMMIT WORK.
      ENDIF.
      CALL FUNCTION 'Z_SELECT_OPTIONS_PRINT'
           EXPORTING
                irepid  = 'ZCOU2006'
                ausgabe = ' '
           EXCEPTIONS
                OTHERS  = 1.
    Message was edited by: Preethu

  • Cannot view the detailed Email date and time about the meeting request

    Hi,I am unable to view the detailed message and Date and time of a meeting request in the default Email app in my Sony Xperia P mobile. Even when i select the calender it does not defaultly go to the meeting date. I need to manually select the date to see the meeting. I cannot see the meeting details without accepting it.I have seen the better behaviors on HTC One V and Galaxy Nexus where full meeting details including message, Date, time, venue appears in the meeting request message.Is there any setting which needs to be changes or is it the limitation of the phone app.Regards,Pratik Ranjan

    Hi Johan,Im also seeing this on my xperia s, ICS.  Here's some additional info i have after some testing:Work have Exchange 2010, I have sent calendar invites from outlook 2007 and 2010 clients and it works for the 2007 clients as it automatically adds the meeting details into the body of the request, something it doesn’t do in 2010, so it may be the way the calendar form has changed in 2010.   It also works fine when i get an invite from an external person.This however is just adding the text into the body, I too have tested with the HTC One S and Samsung Galxay S3, bith use the stock email and both display the time as part ofthe invite no tin the body of the invite,
    In doing the testing I have also found another issue. I have found that it doesn’t inform you of a calendar conflict.ThanksMike

  • How to extract data from a dummy email address and insert them into APEX db

    Hi All,
    I am developing a project management system on APEX 4.1.0.00.21.
    A very important function for the system will be - one sends an email in certain format to a dummy email address, then some data will be extracted from the email based on the pre-defined format and inserted into the database my APEX application is using.
    Any idea on how I can make it happen please?
    Thanks,
    Christine

    A very important function for the system will be - one sends an email in certain format to a dummy email address, then some data will be extracted from the email based on the pre-defined format and inserted into the database my APEX application is using.
    Any idea on how I can make it happen please? I agree that this is not really an Apex question, but a more general PL/SQL question.
    There are many approaches, all boiling down to one of these two:
    1) Push: Some process in the mail server sends/forwards information to your database when new mail arrives.
    The language/tools used to do this, and the way it would connect to your database, depends on your environment (what is your operating system? mail server? existing middleware/tools? security protocols used? etc.).
    2) Pull: Some process in the database contacts the mail server and polls for new information.
    Ie. some PL/SQL code would communicate with the mail server. Again, it depends on your environment (what is your operating system? mail server? existing middleware/tools? security protocols used? etc.).
    For example, if you are using Exchange 2007 or newer, it has a web services API:
    http://msdn.microsoft.com/en-us/library/dd877045.aspx
    The challenge here will be to build the correct SOAP requests from PL/SQL, and to handle the security protocols used.
    - Morten
    http://ora-00001.blogspot.com

  • Selection Screen - Date and Time

    Hi,
    I have given a selection screen where the user needs to key in the input in the following format
    dd.mm.yyyy hh:mm:ss.
    Reason is that the database fetching these elements accepts only in this criteria.
    Now as they look into automating this program, they would want to automatically take the current system date and time - 24 hours .
    How do I achieve this in the above format? If this is not possible, let me know if i can make the selection screen with normal sap date format and convert it to the above format on passing to the select statement.
    Regards
    Sam

    Hi Sam,
    See this. Is this your requirement.
    With this we are able to get Current time-stamp to selection parameter.
    REPORT ZTEST.
    DATA: L_TS TYPE TZNTSTMPS,
           L_TS_C TYPE CHAR14.
    PARAMETERS:
    P_TMSTMP TYPE TMSTMP OBLIGATORY MEMORY ID TEST.
    INITIALIZATION.
       GET TIME STAMP FIELD L_TS.
       MOVE L_TS TO L_TS_C.
       SET PARAMETER ID  'TEST' FIELD L_TS_C.
    The output is
    Jogeswara Rao K

  • Creating AppleScript That Watches a Folder and Adds New Files to iTunes

    Is it possible to create a AppleScript that watches a folder and automatically adds any new files placed into the folder to my iTunes library?

    Probably. You can take a look through Doug's AppleScripts for iTunes and see if there's anything pre-existing you could use or modify.
    An alternative might be Hazel which says it can do that. It's not free, but if it works it would probably be a lot easier.
    Regards.

  • Automator- create file names with creation date and time

    I have photo files that I want to rename with a base name, plus a sequential number, based on the creation date (and ideally time). It appears that Automator does not honor the time of the source file when date stamping a new set of files. If there is anyway to use date + time so I can recreate a date_timestamp in addition to a base filename, that would be great.

    Hi Nikhil_BI_Dev,
    According to your description, you find your report runs properly in BIDS but shows blank after deploying onto report server. Right?
    In this scenario, it might be the issue on retrieving data in SQL 2005. Here is a thread with same issue, please refer to the link below:
    Detail report is blank after deploying
    Reference:
    Using SQL Server 2005 Reporting Services with SQL Server 2005 Express Edition
    If you have any question, please feel fee to ask.
    Best Regards,
    Simon Hou

  • How to retrieve sharepoint list data and show it on excel-addin using C#

    Hi,
    we have a sharepoint list where all students are present. we wanted to get the data from the list and show it via excel addin (VSTO) (something like save,retrieve buutons) . we have some more business logic which need to be performed before the data is retrieved
    . once data is shown on excel , user modifies it and update/save the record back to sharepoint.
    can you please give some samples and suggest any links to start with development.
    Thanks
    chaitu

    Hi chaituatp,
    For this requirement, I would suggest you to get familiar with how to create VSTO applications, and how SharePoint object model works. Here are some sample code about this:
    How to: Retrieve List Items using JavaScript:
    http://msdn.microsoft.com/en-us/library/hh185007(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/office/ee534956(v=office.14).aspx
    VSTO application show data in datagridview:
    http://stackoverflow.com/questions/16926275/simple-example-of-vsto-excel-using-a-worksheet-as-a-datasource
    Thanks,
    Qiao
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Qiao Wei
    TechNet Community Support

  • Split data and insert into different rows

    I have a string like 'sfdsf,sfdsf,sfsd,qweqeqw,iuoi,"
    I have created a single column table
    I have to extract data from first untill comma(,) occurs and insert into the table like the following
    sfdsdf
    sfdsf
    sfsd
    qweqeqw
    iuoi
    Please help me how to do it

    Or a Single SQL query
    SELECT trim(',' from DECODE(ROWNUM,1,SUBSTR(STR,1,INSTR(STR,',',1)),
                                        LENGTH(STR)-LENGTH(REPLACE(STR,','))+1,SUBSTR(STR,INSTR(STR,',',-1,1)),
                                         SUBSTR(STR,INSTR(STR,',',1,ROWNUM-1), INSTR(STR,',',1,ROWNUM)-INSTR(STR,',',1,ROWNUM-1))
                                   ))  STR1
                     FROM (SELECT 'sfdsf,sfdsf,sfsd,qweqeqw,iuoi' STR FROM DUAL),ALL_TABLES
                     WHERE ROWNUM <= LENGTH(STR)-LENGTH(REPLACE(STR,','))+1
                      ORDER BY ROWNUM

  • Tabular Form - submit custom data and insert/update records

    I have a tabular form with 2 columns representing table data and 5 more custom columns.
    Task ID
    Task Name
    10/7/2013 to 10/13/2013
    10/14/2013 to 10/20/2013
    10/21/2013 to 10/27/2013
    10/28/2013 to 11/3/2013
    11/4/2013 to 11/10/2013
    1
    TASK1
    2
    TASK2
    3
    TASK3
    I use an sql which returns null values for columns 3 to 7. Then I use the html formatting option of apex and jquery to add change the headers to weeks and add checkboxes.
    My sql: select task_id, task_name, null week1, null week2, null week3, null week4, null week5 from <table name>
    My table has the columns task id, task name , start_date and end_date.
    When the user clicks the submit button, i need to send the checkbox data to my stored procedure and insert records into the corresponding table. I am unable to find out how to send a mapping of the task_id, date headers in each column and the checkbox data to apex back end and process them. For example, if the first check box in first row is checked, i should insert a row with values "1, TASK1, 10/7/2013, 10/13/2013". I also have to read the data from the table and display it in the same format. Please let me know how to accomplish this in apex.

    instead of using null, you can use apex_item api to create check boxes
    read http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35127/apex_item.htm#CHDDCHAF
    you can set the value of check boxes using apex_item api and then the value can be captured in your process
    check this: Martin Giffy D'Souza on Oracle APEX: APEX Report with checkboxes (advanced).
    let me know if this answers your query in the current thread
    Regards,
    Vishal
    Oracle APEX 4.2 Reporting | Packt Publishing
    Vishal's blog

Maybe you are looking for

  • Help needed with Safari Crash Report Please

    I cannot visit the Apple Store site along with some other sites (My Amazon Login Page ) without Safari 4 crashing. This is happening on two computers and I have tried the following with no success..... Repairing permissions Removing plist file Runnin

  • Solaris 10 hanging at Configuring Devices during installation

    Hi All, I am trying to install Solaris 10 via cd or net, but it hangs at Configuring Devices. This is an upgrade to the current Solaris 8 OS that is running on this system. Does anyone have any insight to this problem? Thanks in advance, Brian

  • Single result set across multiple tables

    Hi - what's the best way to perform a single query that can pull a single result set across multiple tables, ie., a master table containing subject details and child table containing multiple records with detail. I know how to do this for two columns

  • Milestone tracking in Master project plan

    Hi,   I have 6 projects(project 2010) and also need to have one master project. The master project should contain milestones of each of the 6 subprojects  so that the director could view status of milestones only. Could you please suggest how should

  • Need someone to help with the essay topic

    Hi,I am given a topic"testing is the only sure way to find errors" to discuss the truth or otherwise Anyone got some ideas by what areas shall I go for? Cheers!