water Posted December 12, 2013 Author Share Posted December 12, 2013 Then resolve another user Check the return code or @error to make sure the specified suer was found and could be resolved to an unique user. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
gcue Posted December 12, 2013 Share Posted December 12, 2013 (edited) hmm didnt work with $oOutlook.Session.CurrentUser.Name either... even though that string resolves to First Name Last Name (username) =/ Edited December 12, 2013 by gcue Link to comment Share on other sites More sharing options...
water Posted December 12, 2013 Author Share Posted December 12, 2013 If you run the example script? What do you get? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
gcue Posted December 12, 2013 Share Posted December 12, 2013 (edited) hmm ok that doesnt make sense.. example works with $avUser[1][2] but the value of [1][2] is blank i also used [1][2] in my test script and it works too... but its blank!! whaaaat theeee Edited December 12, 2013 by gcue Link to comment Share on other sites More sharing options...
water Posted December 12, 2013 Author Share Posted December 12, 2013 If you add _OL_ErrorNotify(2) at the top of the script do you get any error messages? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
pfiore Posted December 12, 2013 Share Posted December 12, 2013 Hello, Having a problem with _OL_ItemMove issuing: OutlookEx UDF version = 0.9.0 @AutoItVersion = 3.3.8.1 @AutoItX64 = 0 @Compiled = 0 @OSArch = X64 @OSVersion = WIN_7 Scriptline = 2991 NumberHex = 80020009 Number = -2147352567 WinDescription = Description = Sorry, Exchange ActiveSync doesn't support what you're trying to do. Source = Microsoft Outlook HelpFile = HelpContext = 0 LastDllError = 0 I'm just trying to move a test email from the Inbox to a user generated folder. The _OL_FolderAccess returns the proper object as does the call to _OL_ItemFind. Just can't seem to get by the call to _OL_ItemMove. Here is a stripped down version of the test script: Global $oOL = _OL_Open() $sFolderName = "FolderTest" $aDstFolder = _OL_FolderAccess($oOL, "*\" & $sFolderName) $sSubject = "Test" $aItems = _OL_ItemFind($oOL, $aSourceFolder[1], $olMail, "[Subject]='" & $sSubject & "'", "", "", "EntryID") _OL_ItemMove($oOL, $aItems[1][0], Default, $aDstFolder[1]) _OL_Close($oOL) Hoping I'm just missing something obvious. Thanks. Link to comment Share on other sites More sharing options...
water Posted December 12, 2013 Author Share Posted December 12, 2013 Looks like there are situations/environments where this kind of problems might appear: http://support.microsoft.com/kb/2781261/en-us My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
pfiore Posted December 12, 2013 Share Posted December 12, 2013 That document seems to indicate the issue is moving from one EAS store to another EAS store. In this case we're just moving a mail message from the Inbox to a test folder under the same user. This works OK when done manually. Link to comment Share on other sites More sharing options...
water Posted December 12, 2013 Author Share Posted December 12, 2013 Does the _OL_ItemMove example script work for you? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
water Posted December 12, 2013 Author Share Posted December 12, 2013 Another question: Which version of Outlook do you run? Could you try the latest version (0.10.0.0) of this UDF? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
pfiore Posted December 12, 2013 Share Posted December 12, 2013 Running: Outlook 2013 I can try the latest UDF tomorrow and report back. As for the _OL_ItemMove example script: No, it seems to think the environment already exists. "Testenvironment already exists. Should it be deleted and recreated?" If I click Yes I get: "Error creating the test environment. @error = 2, @extended = 2" If I click No I get: "Error: Subscript used with non-Array variable." on line 18 Granted that example is working on tasks vs. mail as well. Thanks. Link to comment Share on other sites More sharing options...
water Posted December 13, 2013 Author Share Posted December 13, 2013 If I click Yes I get: "Error creating the test environment. @error = 2, @extended = 2" Error 2 means that the existing folder could not be deleted. I don't know Outlook 2013 but on older versions this was caused when there was already a folder with the same name in the trash folder. Could you remove the folder from the trash folder and try again? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
pfiore Posted December 13, 2013 Share Posted December 13, 2013 The latest UDF didn't have any effect on the outcome, still can't move the mail message to a new folder. I recreated the test user account to make sure everything was clean and reran the example script. Now get: "Error creating test environment. @error = 300, @extended = 5" The Outlook-UDF-Test that was created was difficult to remove as well: "Cannot move the items. Cannot move folder; access is denied. To check your permissions for the folder, right-click the folder, and then click Properties on the shortcut menu. See the folder owner or your administrator to change your permissions." Link to comment Share on other sites More sharing options...
water Posted December 13, 2013 Author Share Posted December 13, 2013 @error = 300: Error creating source folder, @extended = 5: Error adding folder as returned by _OL_FolderCreate. Strange. The Outlook-UDF-Test folder is creted by the current user without any additional permissions set. Is there anything special about your Outlook/Exchange environment? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
DavidHernandez Posted December 19, 2013 Share Posted December 19, 2013 how would you use "$bAllDayEvent" as True? when i use true and the event is more than one day, it will only show one and not all the days. Link to comment Share on other sites More sharing options...
water Posted December 19, 2013 Author Share Posted December 19, 2013 I can't test at the moment - I'm on vacation Which function do you talk about? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
gcue Posted December 23, 2013 Share Posted December 23, 2013 how can i find the owner of a distribution list? thanks in advance! Link to comment Share on other sites More sharing options...
water Posted December 23, 2013 Author Share Posted December 23, 2013 Will answer as soon as I have returned form vacation - means: Next year My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
gcue Posted December 23, 2013 Share Posted December 23, 2013 np =) have a nice and resting time - u deserve it! Link to comment Share on other sites More sharing options...
water Posted December 29, 2013 Author Share Posted December 29, 2013 Can't test at the moment but how do you find it manually? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Recommended Posts