This project has moved and is read-only. For the latest updates, please go here.

Dynamic http links?

Nov 10, 2014 at 3:16 PM
Is there any way to create dynamic http links in current setup?

If I insert the following link html:
<a href="https://myshop/PurchaseInfo.ashx?product={new_productId}">Purchase </a>
it will be saved with encoded bracket symbols:
<a href="https://myshop/PurchaseInfo.ashx?product=%7bnew_productId%7d">Purchase </a>
therefore the text processor won't replace the dynamic values.

Did anybody successfully made dynamic links work in the add-on? If so, please share the solution.
Nov 11, 2014 at 10:07 AM
Got it to work by adding the following line to the TextProcessor class:
        private List<Symbol> GetListOfSymbols(string text)
            text = text.Replace("%7b", "{").Replace("%7d", "}"); 
            //  ...
Would be great if the change can be included into the add-on.

Note that one can edit links in the Dynamics Crm's email template editor by pressing Ctrl+K.
Nov 12, 2014 at 7:04 PM
Thanks Napernik for using the add-on and propose an interesting usage.

I have added your code to the same class and packed up a new CRM Solution I haven't published it as a downloadable Codeplex project item yet, but I will do it soon. In the meantime, I have checked it in the next folder: $/crmcustomemails/Solutions.

Kind regards
Nov 13, 2014 at 9:13 AM
Hi @rtebar

Thank you, the add-on is excellent :)