I have an in transaction data directive setup on the OrderHed table that is running the code below to pull back some email addresses we have saved in a UD field on Customer. The problem is that this will work for some customers when creating orders but not all and I haven’t been able to find a pattern. I’ve tried moving this to a method directive and it still does not work. My end goal (which I do have setup) is to have a routing rule on the pack slip print that emails out an additional report without user interaction.
I have tried changing the Set XX field for All Rows to only the added row, and the updated row, and neither seems to make a difference. If anyone has any guidance on things to try, I am all ears.
CofCemails = (from c in Db.Customer where c.CustNum == ttOrderHedRow.CustNum select c.CofCEmails_c).FirstOrDefault()
Here are the specifics of the directive, just a start widget and a set field widget