cancel
Showing results for 
Search instead for 
Did you mean: 

Outlook Vbo - Move Item

BrittanyHarding
Level 3
outlook vbo - move item - internal: could not execute code stage because exception thrown by code sage: the operation failed.

code:
try
Dim folder As Folder
Dim item = olNamespace.GetItemFromID(Entry_ID)

folder = GetFolderFromPath(Destination_Folder)

If (folder Is Nothing) Then
Dim ex1 As New System.Exception(VbCrlf + "Failed to locate folder '" + Destination_Folder + "'." + VbCrlf)
Throw ex1
End If

New_Entry_ID = item.Move(folder).EntryID

Catch ex As System.Exception
Dim ex1 As New System.Exception(VbCrlf + "Error while trying to move item '" + Entry_ID + "'." + VbCrlf + ex.Message)
Throw ex1
End Try

------------------------------
Brittany Harding
------------------------------
13 REPLIES 13

@Praveen Kumar

A new version of the VBO has been posted to the DX. Version 10.4 includes a new action called Send and Receive. This is basically the equivalent of pressing the Send/Receive button in the Outlook UI. It initiates a synchronization between the Outlook client and the mail server.

Cheers,



------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Thanks @Eric for your prompt response.

What is the recommendation to use this action in my scenario? Should I use this after send mail with a certain wait?

One more question regarding dx: Is there anyway can set alerts to receive an email as soon as any new version of the VBO posted into DX?

Thanks



------------------------------
Praveen Kumar
------------------------------

@Praveen Kumar,

Take a look at the Get Item Count action. You could use that to see if there are any items in the Outbox before your process completes. If there are, then call the Send and Receive action and wait for a bit. You could basically do that in a loop a few times to ensure there's nothing left to send.

As for notifications, every asset on the DX has the option to be notified of updates. On the asset card there's a bell icon. Click it and you'll be subscribed for notifications about that asset.

27938.png

Cheers,



------------------------------
Eric Wilson
Director, Integrations and Enablement
Blue Prism Digital Exchange
------------------------------

Thanks @Eric



------------------------------
Praveen Kumar
------------------------------