Re: Users - partymgr send email
Posted by
Si Chen-2 on
URL: http://ofbiz.116.s1.nabble.com/Users-Search-query-tp138640p138644.html
It works out of the box already. I tested it this morning. See
http://jira.undersunconsulting.com/browse/OFBIZ-438Andrew Sykes wrote:
> 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?
>
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users