How to remove document after moving from inbox in lotus script?

Muhammad Saleh

I am moving a document from inbox to a custom folder it moves successfully but it still appearing in inbox. I want to remove it from inbox. I tried doc.RemoveFromFolder("Inbox") after moving but it does't work for me . Here is my code :

Sub Click(Source As Button)
Dim s As New NotesSession
Dim db As NotesDatabase
Dim dc As NotesDocumentCollection
Dim doc As NotesDocument
Set db = s.CurrentDatabase
Set dc = db.UnprocessedDocuments
Set doc = dc.GetFirstDocument

Call doc.PutInFolder("Reported Emails")
Call doc.RemoveFromFolder("Inbox")

End Sub
Torsten Link

Your code is absolutely ok, but you need to give the "real" name of the folder. Just check in your designer: The name of the folder that is titled "Inbox" in your client is named "($Inbox)" in Designer. Your code needs to use that:

Call doc.RemoveFromFolder("($Inbox)")

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to get author of a Notes document using lotus script?

How to remove specific word from a field in Elasticsearch Document with Painless Script

Lotus Notes - Remove icon from workspace after the opening of the .nsf

Moving read items from a folder back to inbox

Outlook rules moving messages NOT from Inbox

How to prevent Lotus Notes from saving a document created by a DXL Import?

how to update inbox after receiving sms from broadcastReceiver? android

How to remove file from local dir after moving in to GCP Storage using Spring Integration

How to download attachments from lotus notes using vb script

remove inbox folder after open in files from other app to my app

Remove "Claim" Button from Fiori inbox

How to delete sms from inbox?

Powershell - Moving outlook items from inbox to subfolder based on subject match

[VBA]Lotus Notes Inbox order

How can i float inbox right without moving options icon

How do I create a response document from an action on a form in Lotus Domino Designer?

How to export Notes Document(email,task,etc.) from Lotus notes Client 8.5 into DXL File?

Lotus Notes: remove section from current form

How to remove a field completely from a MongoDB document?

How to remove or recover password from a LibreOffice document

How to remove vbVerticalTab from Word Document

How to remove all portrait pictures from a document

how to remove event listener from document in reactjs

How to remove data in object from MongoDB document

how to remove an element from after()

iOS , Copying files from Inbox folder to Document path

Python : How can I access Lotus Notes 8.5 Inbox to read emails

how to call a script from inside a google document

How to run a script from another document