lotusscript

LotusScript cannot get file attachment from email

北慕城南 提交于 2019-12-04 15:39:57
I had never run into this problem, but I cannot get a handle on a file attachment on an email. I have code that can either search the document for Embedded Objects or search a field for Embedded Objects -- neither of them are returning the file. I can see the file on the email and I can see the $FILE field which contains the file attachment. Here is the code: Function FileDetachFiles(doc As NotesDocument, fieldName As String, getFromField As Integer) As Variant On Error Goto ProcessError Dim s As NotesSession Dim db As NotesDatabase Dim rtItem As NotesRichTextItem Dim fileToExtract As String

Call to getEmbeddedObjects(); (Domino Server API) returns wrong results

别等时光非礼了梦想. 提交于 2019-12-04 03:49:05
问题 The Domino server API getEmbeddedObjects(); returns the wrong result (zero) when a mail containing an attachment (as embedded object) is sent from the script. Though an attachment is sent as an EmbeddedOBject , getEmbeddedObjects(); returns ZERO . The mail type is NOT MIME . This is a Java application. Is there is any workaround for this problem? I take the body from the document. If the body is of richtextitem, I call the getEmbeddedObjects() which returns zero though an attachment is

NotesDatabase Search condition

白昼怎懂夜的黑 提交于 2019-12-02 10:59:13
问题 With this code: Set col = db.Search("Form=""formname"" & id=212", time, 0) I explicity give the search function 212 for example, but what if I want to give a variable dim var as Integer How would my search look like, beacuse this doesn't work: Set col = db.Search("Form=""formname"" & id=var", time, 0) 回答1: Set col = db.Search("Form=""formname"" & id=" + Cstr(val), time, 0) should work. Cstr() converts the integer value to a string. 来源: https://stackoverflow.com/questions/23981044

NotesDatabase Search condition

混江龙づ霸主 提交于 2019-12-02 08:22:05
With this code: Set col = db.Search("Form=""formname"" & id=212", time, 0) I explicity give the search function 212 for example, but what if I want to give a variable dim var as Integer How would my search look like, beacuse this doesn't work: Set col = db.Search("Form=""formname"" & id=var", time, 0) Set col = db.Search("Form=""formname"" & id=" + Cstr(val), time, 0) should work. Cstr() converts the integer value to a string. 来源: https://stackoverflow.com/questions/23981044/notesdatabase-search-condition

Retrieving changes made by a Java Agent on a document

我与影子孤独终老i 提交于 2019-12-02 05:00:32
问题 I am passing parameters to a Java agent from Lotus Script like this: Set db = session.CurrentDatabase Set doc = db.CreateDocument Set uiDoc = workspace.CurrentDocument Call doc.AppendItemValue("fileName", "SomeString" ) Call doc.Save(True, False) Set MyAgent = db.GetAgent("AgentName") Call MyAgent.Run(doc.NoteID) Set session = New NotesSession Set db = session.CurrentDatabase result = doc.GetItemValue("Result")(0) The agent says the following in Java: Session session = getSession();

Authentication and web services in Domino?

狂风中的少年 提交于 2019-12-01 20:57:09
问题 Is there a way to allow authentication in Domino webservices? If so, how would I do it? 回答1: IBM has an example here. There are other options. 回答2: Another way in JAVA would be: ServiceBindingStub stub = (WebServiceBindingStub) new ServiceLocator().getWebServicePort(portAddress); stub.setSSLOptions(PortTypeBase.NOTES_SSL_ACCEPT_SITE_CERTS + PortTypeBase.NOTES_SSL_ACCEPT_EXPIRED_CERTS); stub.setUsername(usr); stub.setPassword(pwd); 来源: https://stackoverflow.com/questions/10539408

Authentication and web services in Domino?

百般思念 提交于 2019-12-01 20:07:55
Is there a way to allow authentication in Domino webservices? If so, how would I do it? IBM has an example here . There are other options . Ketil Hjerpaasen Another way in JAVA would be: ServiceBindingStub stub = (WebServiceBindingStub) new ServiceLocator().getWebServicePort(portAddress); stub.setSSLOptions(PortTypeBase.NOTES_SSL_ACCEPT_SITE_CERTS + PortTypeBase.NOTES_SSL_ACCEPT_EXPIRED_CERTS); stub.setUsername(usr); stub.setPassword(pwd); 来源: https://stackoverflow.com/questions/10539408/authentication-and-web-services-in-domino

Call to getEmbeddedObjects(); (Domino Server API) returns wrong results

烈酒焚心 提交于 2019-12-01 19:47:17
The Domino server API getEmbeddedObjects(); returns the wrong result (zero) when a mail containing an attachment (as embedded object) is sent from the script. Though an attachment is sent as an EmbeddedOBject , getEmbeddedObjects(); returns ZERO . The mail type is NOT MIME . This is a Java application. Is there is any workaround for this problem? I take the body from the document. If the body is of richtextitem, I call the getEmbeddedObjects() which returns zero though an attachment is present as embedded object. Looking through all of the items in a document for the possibility of an

How can I call a SOAP 1.2 Web service from a LotusScript agent?

柔情痞子 提交于 2019-12-01 13:06:05
I'm using a Lotus Domino 9 on a windows Server I must call a Soap 1.2 web service that is not maintained anymore The Lotus Web service consumers only accepts Soap 1.1 web services, So I cannot use this nice feature to bind my web services. Is it possible to call a Soap 1.2 web service from my LotusScript agent and if yes, what are the needed steps ? Finally I found a solution using the XMLHTTP object Sub Initialize Dim xmlhttp As Variant dim DOMDocument As Variant Dim soapEnvelope As String Dim webService As String dim username As String Dim password As String Dim strxml As String Set xmlhttp

How can I call a SOAP 1.2 Web service from a LotusScript agent?

倖福魔咒の 提交于 2019-12-01 11:38:52
问题 I'm using a Lotus Domino 9 on a windows Server I must call a Soap 1.2 web service that is not maintained anymore The Lotus Web service consumers only accepts Soap 1.1 web services, So I cannot use this nice feature to bind my web services. Is it possible to call a Soap 1.2 web service from my LotusScript agent and if yes, what are the needed steps ? 回答1: Finally I found a solution using the XMLHTTP object Sub Initialize Dim xmlhttp As Variant dim DOMDocument As Variant Dim soapEnvelope As