Developer forum

Forum » Swift » IntegrationID in Email Subject

IntegrationID in Email Subject

lucian curcuta
Reply

Hi,

One of our client's orders contains Integration Order ID Under the Miscellaneous section.
I want to be able to output IntegrationOrderId on the subject of the email. 
There seems to be a way to output the OrderId on the Email subject using a "magic" variable like so Ecommerce {OrderID}

 

How could I do the same, using the IntegrationOrderId


Replies

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

I don't think you can, directly. The code seems to support Order ID only.

With custom code, you could subscribe to Ecommerce.Notifications.Ecommerce.Cart.SendingConfirmationMail though. That gives you an instance of Ecommerce.Notifications.Ecommerce.Cart.SendingConfirmationMailArgs that exposes the mail and the order so you could override the subject yourself.

Hope this helps,

Imar

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Here's an example of how that could be implemented: https://doc.dynamicweb.com/forum/ecommerce-standard-features/ecommerce-standard-features/ability-to-set-bcc-mail-on-order-notification-mail

 
lucian curcuta
Reply

Thank you Sir, 

That's exactly what I needed

Have a nice weekend

 

You must be logged in to post in the forum