Jump to content
water

OutlookEX UDF - Help & Support (IV)

Recommended Posts

:)


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2019-10-24 - Version 1.4.14.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2019-11-30 - Version 1.4.0.0) - Download - General Help & Support - Example Scripts - Wiki
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (NEW 2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Hey there I am having some trouble with using the $olFolderSuggestedContacts constant to copy this to a pst.  here is the part of the script that is failing:

 

$aFolder = _OL_FolderAccess($oOutlook, "" , $olFolderCalendar)
    $bFolder = _OL_FolderAccess($oOutlook, "" , $olFolderContacts)
    $cFolder = _OL_FolderAccess($oOutlook, "" , $olFolderJournal)
    $dFolder = _OL_FolderAccess($oOutlook, "" , $olFolderNotes)
    $eFolder = _OL_FolderAccess($oOutlook, "" , $olFolderTasks)
    $fFolder = _OL_FolderAccess($oOutlook, "" , $olFolderToDo)
    $gFolder = _OL_FolderAccess($oOutlook, "" , $olFolderSuggestedContacts)
    ConsoleWrite("FA: " & @error & "-" & @extended & @CRLF)
    _OL_FolderCopy($oOutlook, $aFolder[1], $oPST)
    _OL_FolderCopy($oOutlook, $bFolder[1], $oPST)
    _OL_FolderCopy($oOutlook, $cFolder[1], $oPST)
    _OL_FolderCopy($oOutlook, $dFolder[1], $oPST)
    _OL_FolderCopy($oOutlook, $eFolder[1], $oPST)
    _OL_FolderCopy($oOutlook, $fFolder[1], $oPST)
    _OL_FolderCopy($oOutlook, $gFolder[1], $oPST)

it errors with this:

Quote

Exporting PST
OO: 0-1
PC: 0-0
FA: 3--2147352567
"c:\path2file\export2pstUploader.au3" (53) : ==> Subscript used on non-accessible variable.:
_OL_FolderCopy($oOutlook, $gFolder[1], $oPST)
_OL_FolderCopy($oOutlook, $gFolder^ ERROR

User I am exporting from HAS a Suggested Contacts folder.  Outlook 2016 is office 365 x86

I have updated to the latest OutlookUDF let me know what I am doing wrong here?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By Skysnake
      This assumes implementation of the OutlookEX UDF.
      I have PSTs which are becoming unmanageable 
      The idea is to make a simple GUI (Listview) which can combine non-Outlook data and include emails based on criteria.  Manage them in the GUI (delete / reply etc) and update to Outlook.
      So the issue would be to manage the items in the GUI while using the PST as a database.
      Ideas on how to do this? What would the key be?
    • By Reizvoller
      Howdy!
      I've been reading through the OutLookEX documentation and examples for the past two days ( VERY well documented, very clear! ) 
      https://www.autoitscript.com/wiki/OutlookEX_UDF_-_General
       
      But I've had trouble locating information on specifying what user to use. My outlook is linked to two email accounts and I can only manipulate the main account's stuff. A simple script I've been playing with is this 
      ; Include Functions #include <OutlookEX.au3> ; Connect to Outlook Global $oOutlook = _OL_Open() If @error <> 0 Then Exit MsgBox(16, "Connect to Outlook", "Error connecting to Outlook. @error = " & @error & ", @extended = " & @extended) ;List the folders Global $aResult = _OL_FolderTree($oOutlook, "*") If @error <> 0 Then Exit MsgBox(16, "OutlookEX UDF: _OL_FolderTree Example Script", "Error accessing root folder. @error = " & @error) _ArrayDisplay($aResult, "OutlookEX UDF: _OL_FolderTree Example Script - All folders") It works like a charm but it only returns my main account's folders. 
      I really hope I didn't overlook a wiki page or help file... 
      Any assistance would be greatly appreciated!
      -Reiz
    • By galan2015
      Is there any solution on receiving e-mails? I would like to create a script so that I will not have to log in through the browser.
×
×
  • Create New...