Users - partymgr send email

Posted by Andrew Sykes on
URL: http://ofbiz.116.s1.nabble.com/Users-Search-query-tp138640p138643.html

Hi,

I have been looking into why EditCommunicationEvent in partymgr doesn't
send an email.

Firstly I couldn't find any code that was attempting to send the email,
so I added the following

Index:
applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml
===================================================================
---
applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml  (revision 7342)
+++
applications/party/script/org/ofbiz/party/communication/CommunicationEventServices.xml  (working copy)
@@ -55,7 +55,9 @@
         
         <now-timestamp-to-env env-name="newEntity.entryDate"/>
         
-        <create-value value-name="newEntity"/>    
+        <create-value value-name="newEntity"/>
+               <field-to-field map-name="newEntity" field-
name="communicationEventId" to-map-name="args" to-field-
name="communicationEventId" />
+               <call-service-asynch service-name="sendCommEventAsEmail"
in-map-
name="args" include-user-login="true" />
     </simple-method>
     <simple-method method-name="updateCommunicationEvent" short-
description="Update a CommunicationEvent">
         <check-permission permission="PARTYMGR" action="_CME_UPDATE">

Once this is applied I get an error complaining that the
CommunicationEvent Entity does not have a contactMechIdFrom. This is
hardly surprising since when I fill in the form, the "From Email
Address" drop-down field is empty.

I'm not sure if the above modification is the intended direction for
this, does anyone have any suggestions?
--
Kind Regards
Andrew Sykes <[hidden email]>
Sykes Development Ltd
http://www.sykesdevelopment.com

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users