One of our customers has asked about the possiblility to receive an email when we pick up their order.
Here's what the flow currently looks like:
A customer supplies their order in XML, this XML gets procecessed by a customer specific xslt and picked up by our MIS.
What I want to add is the following:
When the order has been received by us,send an email to the customer containing some details. (all contained in the supplied XML)
The customers email address is a variable in the XML (\\General\Contact\Email).
From what I can find this shouldn't be problem using metadata fron the XM but the precise syntax eludes me.
If anyone can help, a sample flow or a few pointers would be very helpful.
Send email from variable in XML
-
- TOP CONTRIBUTOR
- Posts: 628
- Joined: Mon Nov 29, 2010 8:45 pm
- Location: Alpharetta GA USA
- Contact:
Re: Send email from variable in XML
Easiest way to select fields from XML is to add a folder in front of email send and hold the connection. You will have to put dummy values in some of the required fields of email send element.
Make sure there's an XML Pickup in flow. Drop a sample XML into flow and stop it when it reaches the held connection. Now select "lines with variables" for To, Subject, Body, etc, select Metadata group and Text and on top right corner of variables dialog you can select "Build location path" in Path pop-up. With the sample job you ran earlier you can now simply navigate through the fields of XML and select what you want.
Make sure there's an XML Pickup in flow. Drop a sample XML into flow and stop it when it reaches the held connection. Now select "lines with variables" for To, Subject, Body, etc, select Metadata group and Text and on top right corner of variables dialog you can select "Build location path" in Path pop-up. With the sample job you ran earlier you can now simply navigate through the fields of XML and select what you want.
Re: Send email from variable in XML
Thanks, that did the trick.
One more thing though, in the bottom part of the email body I get a text message like:
Email was triggered by this file :
filename.xml
Is there an option to turn this off?
One more thing though, in the bottom part of the email body I get a text message like:
Email was triggered by this file :
filename.xml
Is there an option to turn this off?
Re: Send email from variable in XML
I believe that goes away if you use a fixed file for your email 'Body template'.
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix