exec('SELECT DPS.Name as ServiceName, CreationDate, ShipDate,
RTRIM(LTRIM(TrackingNumber)),
REPLACE(REPLACE(RTRIM(LTRIM(DPS.TrackingLinkFormat)), ''{0}'',
RTRIM(LTRIM(TrackingNumber))), '' '', '''') as TrackingURL from
Delivery join DeliveryProviderService DPS on
DPS.DeliveryProviderServiceId=Delivery.DeliveryServiceId
where Delivery.DeliveryId =' + @DeliveryId)<xsl:if test="//Sqls/ShipData/Row/TrackingNumber!=''">
<td>
<a>
<xsl:attribute name="href">
<xsl:value-of select="//Sqls/ShipData/Row/TrackingURL" />
</xsl:attribute>
<xsl:value-of select="//Sqls/ShipData/Row/TrackingNumber" />
</a>
</td>
</xsl:if>
I did it a little simpler.
Message TemplateSQL entry:
exec('SELECT TrackingNumber FROM Delivery WHERE DeliveryID = ' + @DeliveryID)
Named it TrackingNumber
Message template code added:
Your tracking number is: <strong>
<xsl:value-of select="//Sqls/TrackingNumber/Row/TrackingNumber" />
</strong>.
Hope this helps.
Kind Regards
|
|
|
|
Confidential: This email and its attachments may contain confidential and privileged information. If you are not the intended recipient, you are not authorized to retain, copy, or distribute the email message or its attachments. If you received this email in error, please notify the sender immediately. |
|
--
You received this message because you are subscribed to the Google Groups "XMPie Interest Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
xmpie-users...@googlegroups.com.
To post to this group, send email to
xmpie...@googlegroups.com.
Visit this group at https://groups.google.com/group/xmpie-users.
For more options, visit https://groups.google.com/d/optout.
I see you do not have the message template ID in your Ustore SQL entry. Looks like that is the problem.
|
|
Thanks,
To unsubscribe from this group and stop receiving emails from it, send an email to xmpie-users+unsubscribe@googlegroups.com.
To post to this group, send email to xmpie...@googlegroups.com.
Visit this group at https://groups.google.com/group/xmpie-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "XMPie Interest Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xmpie-users/MiJW86KCZNs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xmpie-users+unsubscribe@googlegroups.com.
No Im not sure what the issue is here. Maybe someone else does. You definitely don’t have another “TrackingNumber” entry for that same same message template id?
|
|
|
|
Confidential: This email and its attachments may contain confidential and privileged information. If you are not the intended recipient, you are not authorized to retain, copy, or distribute the email message or its attachments. If you received this email in error, please notify the sender immediately. |
|
From: jon.m...@gmail.com [mailto:jon.m...@gmail.com]
On Behalf Of Jon Chan
Sent: Monday, 08 August 2016 3:19 PM
To: xmpie...@googlegroups.com
Subject: Re: [xmpie-users] Shipping URL in delivery email
Hey Braam,
--
You received this message because you are subscribed to a topic in the Google Groups "XMPie Interest Group" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/xmpie-users/MiJW86KCZNs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xmpie-users...@googlegroups.com.
To post to this group, send email to
xmpie...@googlegroups.com.
Visit this group at
https://groups.google.com/group/xmpie-users.
For more options, visit
https://groups.google.com/d/optout.
Thanks,
To unsubscribe from this group and stop receiving emails from it, send an email to xmpie-users+unsubscribe@googlegroups.com.
To post to this group, send email to xmpie...@googlegroups.com.
Visit this group at https://groups.google.com/group/xmpie-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "XMPie Interest Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xmpie-users/MiJW86KCZNs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xmpie-users+unsubscribe@googlegroups.com.
To post to this group, send email to xmpie...@googlegroups.com.
Visit this group at https://groups.google.com/group/xmpie-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "XMPie Interest Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xmpie-users+unsubscribe@googlegroups.com.
To post to this group, send email to xmpie...@googlegroups.com.
Visit this group at https://groups.google.com/group/xmpie-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "XMPie Interest Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xmpie-users/MiJW86KCZNs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xmpie-users+unsubscribe@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "XMPie Interest Group" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/xmpie-users/MiJW86KCZNs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xmpie-users...@googlegroups.com.
To post to this group, send email to
xmpie...@googlegroups.com.
Visit this group at
https://groups.google.com/group/xmpie-users.
For more options, visit
https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "XMPie Interest Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
xmpie-users...@googlegroups.com.
To post to this group, send email to
xmpie...@googlegroups.com.
Visit this group at
https://groups.google.com/group/xmpie-users.
For more options, visit
https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "XMPie Interest Group" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/xmpie-users/MiJW86KCZNs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xmpie-users...@googlegroups.com.
To post to this group, send email to
xmpie...@googlegroups.com.
Visit this group at
https://groups.google.com/group/xmpie-users.
For more options, visit
https://groups.google.com/d/optout.
Thanks,
To unsubscribe from this group and stop receiving emails from it, send an email to xmpie-users+unsubscribe@googlegroups.com.
To post to this group, send email to xmpie...@googlegroups.com.
Visit this group at https://groups.google.com/group/xmpie-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "XMPie Interest Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xmpie-users/MiJW86KCZNs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xmpie-users+unsubscribe@googlegroups.com.
To post to this group, send email to xmpie...@googlegroups.com.
Visit this group at https://groups.google.com/group/xmpie-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "XMPie Interest Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xmpie-users+unsubscribe@googlegroups.com.
To post to this group, send email to xmpie...@googlegroups.com.
Visit this group at https://groups.google.com/group/xmpie-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "XMPie Interest Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xmpie-users/MiJW86KCZNs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xmpie-users+unsubscribe@googlegroups.com.
To post to this group, send email to xmpie...@googlegroups.com.
Visit this group at https://groups.google.com/group/xmpie-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "XMPie Interest Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xmpie-users+unsubscribe@googlegroups.com.
To post to this group, send email to xmpie...@googlegroups.com.
Visit this group at https://groups.google.com/group/xmpie-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "XMPie Interest Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xmpie-users/MiJW86KCZNs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xmpie-users+unsubscribe@googlegroups.com.
I had to throw it into a variable to get it to work correctly
Your tracking number is: <xsl:variable name="track_id">
<xsl:value-of select="//Sqls/ShipData/Row/TrackingNumber" />
</xsl:variable>
- <a href="http://wwwapps.ups.com/WebTracking/track?track=yes&trackNums=?{$track_id}">
<xsl:value-of select="//Sqls/ShipData/Row/TrackingNumber" />