Jump to content

antistud

Members
  • Posts

    4
  • Joined

  • Last visited

antistud's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. If the [FullName] = $c1 it should skip the import If not it will import contacts.csv I guess I did not define @error
  2. What is the proper way to insert a variable in a parameter $c1 = Example $aOL_Item = _OL_ItemFind($oOutlook, "*\Outlook-UDF-Test\SourceFolder\Contacts", Default, '[FullName] = $c1', "", "", "EntryID", "", 0, "") If $aOL_Item[0][0] = 0 Then Global $iResult = _OL_ItemImport($oOutlook, "C:\temp\example.csv", "", "", 1, "*\Contacts", $olContactItem) _OL_Close($oOutlook) I get >"C:Program Files (x86)AutoIt3SciTE..autoit3.exe" /ErrorStdOut "C:Users******Desktop_OL_ItemModify.au3" "C:Users*****Desktop_OL_ItemModify.au3" (10) : ==> Subscript used on non-accessible variable.: If $aOL_Item[0][0] = 0 Then Global $iResult = _OL_ItemImport($oOutlook, "C:tempexample.csv", "", "", 1, "*Contacts", $olContactItem) If $aOL_Item^ ERROR >Exit code: 1 Time: 0.703
  3. I can get the file to import just fine. what I am lacking is the ability to check fro duplicate contacts and skip them.
  4. I am sorry if this has already been answered and I am grateful for your help. I am trying to make a script that will import contacts from a csv but I would like it to skip duplicate contacts. Can anyone help. #AutoIt3Wrapper_AU3Check_Parameters= -d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 #AutoIt3Wrapper_AU3Check_Stop_OnWarning=Y #include <OutlookEX.au3> ; ***************************************************************************** Global $oOutlook = _OL_Open() ; ***************************************************************************** $aOL_Item = _OL_ItemFind($oOutlook, "*\Outlook-UDF-Test\SourceFolder\Contacts", Default, '[FirstName] = "TestFirstName"', "", "", "EntryID", "", 0, "") If $aOL_Item[0][0] = 0 Then Global $iResult = _OL_ItemImport($oOutlook, "C:\temp\contacts.csv", "", "", 1, "*\Contacts", $olContactItem) _OL_Close($oOutlook)
×
×
  • Create New...