Reply with history form another db

I have some e-mails stored (copied) in another database besides user mail db (for sharing with others). In this shared db there are buttons Reply (with variants with or without history…), Reply to All etc. The button should create reply message in actual user mail db for editing and sending. Code in button for example:@Command([Compose]; @MailDbName; “Reply with history”)

This is code in button Reply with full history - formula taken from mail template (except @MailDBName).

No buttons creating reply with history (with or without attachments or internet style) working in LN 8 or 8.5. Only one work - one which creates empty Reply. With all non working buttons user gets error message:

“Invalid or nonexistent document”.

If I run same application and same mail db in LN 7.x it works as intended. With mail based on template 7.x it works too (in both 7 client and 8.5 client).

After debugging it looks like error comes up between queryopen (which works till end) and postopen (which never started) events of the Reply form. But there shouldn’t be any code between these two …

Can someone help me?

Subject: Code between Form QueryOpen and PostOpen

Actually there are several places code can execute between the Form QueryOpen and the Form PostOpen including:

Field Initialize

Field Default Value

Computed Field Value

Subform QueryOpen

So there are still several places you can look for the cause of the error.

Subject: Code

It looks like problem is in filling history into field Body.If I remove Body field reply memo is composed (but without history). When I create own Body field (RTF) error is back.

Subject: Are you seeing error: “Invalid Form ($BODY is not rich text)”

Are you seeing error: “Invalid Form ($BODY is not rich text)” or “Invalid or nonexistent document”? If so there is an SPR on the issue: SPR # GMAA7GLBNU. Interestingly I retested your scenario in a button and found the following:* If the non mail owner database is on the server you will get the error: “Invalid Form ($BODY is not rich text)”

  • If the non mail owner database is a local replica of the server copy you get the error: “Invalid or nonexistent document”

  • If the non mail owner database is a local copy you do NOT get any error message. The code works as expected.

  • Mail file ownership in the preferences does not seem to affect the issue

  • If you log into Notes and open your database the code works without issue. If you open another user’s database on the server (where you obviously have manager access) that is when you see the issue

I suspect it has something to do with what the person document on the server in terms of which mail file it points to in conjunction with the Notes id. You may consider opening an PMR for this issue so Lotus Support can record the problem.

Subject: How did you create the buttons?

I tested an 8.5 client/template with your code:@Command([Compose]; @MailDbName; “Reply with history”).

I created a new action on the tool bars for the view and form. Both worked without issue.

Could you provide the exact steps on how to reproduce the issue?

Subject: Buttons

Yes, it works from current user mail db. But it is not working from another db with e-mails (for example another user mail db).The goal is that reply message composes in current user mail db even if original message is somewhere else.