HCL #Command([MailForward]) Command issue - lotus-notes

Since last Friday I was not able to forward a document as email on a database using HCL Notes formula #command. The email is forward, but no content is available, but in the document the content exist. The unique way to forward with content is using the right click then choosing Forward.
Here are the ones I tried to use:
From HCL email
#SetEnvironment("fwdID"; #NoteID); #Command([MailForward])
From HCL email
#Command( [MailForwardAsAttachment] )
Any help I appreciate.

The most likely cause is the ACL setting "Replicate or copy documents". If users do not have this box checked in the ACL entry that grants them access, they will be unable to forward documents from the database.

Related

Lotus Notes #Command([MailForward]) Command issue

Someone please let me know what exactly #Command([MailForward]) command does?
In my organization, I take care of several existing notes based applications. Here, one of the users is getting error message when clicks on 'Email Quote' button in one of the applications. The button contains the formula '#Command([MailForward])'. As the user clicks on the button, he gets following error:
Here in the organization, all the users use 'Outlook/Exchange' for emails, and notes emailing is not enabled. Other users of the application are able to click the button and send quotation via mail. The issue is with this specific user only.
I think there is some configuration settings in location entry or person document (names.nsf) that I am missing. Please guide me.
Thanks
Romil Handoo
#Command([MailForward]) is a command that takes the current Notes document that you are looking at and attempts to create a new email with that document included in the body. This is similar to what you see when you forward an email in Outlook.
Since you aren't using Notes for your mail, this action will not work. The error message you are receiving is there because the current user doesn't have a Lotus Notes mail file configured.

Lotus Notes 8.5: % in attachment file name. Bad request: Http request contains a malformed escape sequence

Some attachments have % in their file name.
SO when I access the attachment file with the URL, it returns back with Cod 400.
Reason: Http request contains a malformed escape sequence.
I have been searching around and saw somebody say Lotus Notes does not allow to access file with % in their name.
I saw a solution which is put HTTPAllowDecodedUrlPercent=1 in notes.ini file.
Firstly, I don't know where to find the notes.ini file.
I saw one in IBM\Lotus\Domino\ another in IBM\Lotus\Notes\
Actually, I have tried too add the line into both files. But nothing happened. I still got the same error.
Is it because I did it in the wrong way? Or is there anything else I can do?
You would need to update the notes.ini on the server if you are working on a server. You can update it also from Domino Administrator if you have access to that. See this snippet from Notes Help...
From the Domino Administrator, open the Domino Directory and click the Configuration tab.
To edit an existing Configuration Settings document, highlight it and then click Edit Configuration. To create a new configuration
document, highlight the server for which the Configuration Settings
document will apply, then click Add Configuration.
To modify NOTES.INI settings on the server, click the NOTES.INI Settings tab. This tab lists a number of current settings in the
server's NOTES.INI file.
To add or change a setting, click Set/Modify Parameters to display all settings that you can set in the Configuration Settings document.
Select the setting(s) you want to add/modify.
Save and close the document.
Like Dave said, try and give us a little more information.

Mail-in database

I have this scenario (this is an old story of mail-in)
This is a company where have many Domino Mail-in databases. One for every branch.
Every person in every branch has a personal Notes Email.
The company policy is that each person of the branch can not send email to an external account (internal yes), so I need to use the mail-in database.
I tried with the rules of Domino to perform a block (in the rule you can set the Sender field to track the mail), but it does not seem possible because unfortunately, when a user sends an email from a mail-in database (mail9.ntf template) the sender field is the username.
I know about Team Mail box project, but this is an old project and I have some problems with HTML outgoing mail and it doesn't work on the web.
I tried looking for a solution, customizing the standard Mail9.ntf template and I discovered that the library "CoreEmailClasses" with the function QuerySave method is executed Me.m_noteUIMemo.Send()
I have tried to change this code copying the backend document into mail.box the mail...but this doesn't work because it is more complicated (there are TMP field...and I observed that when you use .send() into mail.box the RichText is a MIME-RT) .
The only solution that I have found is to save the email and later with a scheduled Sign Agents to Run on Behalf Of the mail-in user that sends the email (solution that I do not like because is not in realtime).
Do you have any other ideas?
UPDATE FOR INOTES
I've found into the FORMS9_x.nsf the subform
Custom_MailMemoDictionary_Lite that contains this code. Now I need to understand how to use it
<NotesComment>
//Use s_MDNToFrom to change the From field in outgoing email. If
//s_MDNToFrom is set, need to also provide From field. Uncomment out the
//dictionary to enable this
</NotesComment>
<NotesComment>
<NotesDictionary>
<notesvar name=s_MDNToFrom value={"1"}>
<notesvar NAME=From value={"Custom From Field"}>
</NotesDictionary>
</NotesComment>
I am not sure if this will solve your problem but we have found that setting the Mail-in name (item name FullName) in the Mail-in Database document to a hierarchical name allows us to setup the owner of the mail-in database as that user. Then mail sent from that database is from the mail-in name sent by the actual user.
For example: use a name like: Branch1 Email/Organization and set the internet email to branch1.email#oraganization.com and then set the owner of the target database to Branch1 Email/Organization
Good luck!
deletes the contents of the subform and paste the following code
<NotesDictionary>
<notesvar name=s_MDNToFrom value={"1"}>
<notesvar NAME=From value={Principal}>
</NotesDictionary>
kind regards

Security and email groups that are created from an external database don't work until the doc is saved

I've got a Notes agent that pulls data from a postgres db. It pulls names, region and roles from the database and builds a 2 types of groups: email and security. They get created fine but when I try to use them they don't work -- email sent to email group is not delivered and the security group just doesn't work. That is until I open and save the group doc. Then everything works fine. I'm suspecting it's one or more fields that are not being set but I don't know which ones. When I create the groups, I set the name, 'type' and 'group type' and, of course, the member list. Anyone know what might be missing?
thanks
clem
Have you compared the docs in NotesPeek before and after you open and re-save them? Are any new computed fields added? Are any field types changed? If so, calling NotesDocument.ComputeWithForm before you save the document in your agent should do the trick.

Lotus Notes User with Editor Access can't delete documents (Option is activated in ACL)

Currently I develop a database for another employee at my company. I have Manager Rights at the database to access everything. The administrator of the database should only be able to create/edit/delete documents. He currently got Editor-Access with selected "delete documents"-option. When he wants to delete a document on the database (i tried it with Simple Actions or with Javascript Code-both don't work) he gets redirected to the same page and nothing happens or with Simple Actions the Server-Login page shows up with the message "You don't have the permission to perform this action".
When im testing the functions with my manager access everything works fine. But when i'm changing my rank to Editor like the normal administrator of the database i also can't delete any documents. Like i already said the option in the ACL is activated.
I hope you can understand my problem and there is a solution for it. Normally that access right works fine on every other database at our company.
Another point: There are no Reader or Editor fields in the Documents. So there is no restriction with fields. Could this be the problem?
Check to see if there is some code in the QueryDocumentDelete event for the database. Perhaps that is failing and / or preventing you from deleting.
Given that you mention redirecting and server login, I presume it's a web enabled database?
In which case have you tried looking at the ACL (Access Control List) for the problem database and clicking the Advanced tab.
In there is a field Maximum Internet name and password, this is the maximum access allowed for internet users. If it's not editor, this could be the problem?
Try deleting with ?DeleteDocument URL. That way it will for sure not try to do anything else.
Check the user's access level at server with Database.getCurrentAccessLevel() and Database.queryAccessPrivileges(String name)
After the great suggestions of you all the problem was the checkbox "Allow document locking" at the database properties was enabled. That caused the problems at deleting documents. As Manager is have enough rights to go over that but for the normal Administrator with Editor Access the deletion request got blocked by the little option.
Thanks to everyone!

Resources