Hello everyone,
I want to modify Approval mail template by adding 2 new columns.
I have exported the mail template in .htm.
I know that I should modify this file, then I will import it, but what I don't understand where the variables/parameters (%10, %57...) are declared?
This is the mail template:
<html>
<body>
Bonjour,<br /><br />
<br /><br />
<table border="1">
<tr>
<td>Numero de la demande</td>
<td>Objet de la Demande </td>
<td>Date</td>
<td>Demandeur</td>
<td>Department</td>
<td>Buyer in charge</td>
<td>Montant</td>
<td>Devise</td>
</tr>
<tr>
<td>%10</td>
<td>%57</td>
<td>%63</td>
<td>%65</td>
<td>%56</td>
<td>%64</td>
<td>%51</td>
<td>%53</td>
</tr>
</table>
<br /><br />
Cordialement,<br />
<br />
</body>
<html>
Thank you
0
Comments
There is no ansewer?
Please I need the solution as soon as possible.
If not, I gonna have a bad time ](*,) ](*,) ](*,)
Your Output when you send a email notification of approval will look as shown below
If you are trying to modify standard function look for a function like FillSalesTemplate.
You can find this function in Standard Codeunit 400 Approvals Mgt Notification. This Functions fills the % values with actual values as shown in below image.
Try to modify similar function in your case if you want to add new values in the table. If you want to add values in footer of the email then put values after </table> tag.
Let me know if you have any doubts.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
Your Output when you send a email notification of approval will look as shown below
If you are trying to modify standard function look for a function like FillSalesTemplate.
You can find this function in Standard Codeunit 400 Approvals Mgt Notification. This Functions fills the % values with actual values as shown in below image.
Try to modify similar function in your case if you want to add new values in the table. If you want to add values in footer of the email then put values after </table> tag.
Let me know if you have any doubts.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
Thank you so much for your answer.
Well, I don't want to abuse. :oops:
But I will take advantge of your kindness.
I consulted the codeUnit 440 "Approval Mt Notificaion",and I detected the fonction I should to modify.
But I don't know how can I change it to show the 2 new columns !
Can you show m what I should to do please?
Thank you in advance
The code is below
So what i can understand is that you want to add two columns in Reports with -
Captions as - Name & Phone No.
Let's see what the standard have written (From your initial Query) -
1. Just append this if <td> After <td>Devise</td> -
<td>Name</td>
<td>Phone No. </td>
2. Now for Values of these fields After <td>%53</td> append these lines -
<td>%50000</td>
<td>%50001</td>
**The Changes 1 & 2 Need to be done in HTML File also.
Now Navigate to Function FillPurchaseTemplate and do these changes -
AFTER -
3. Add Following Line of Code -
'50000': Body := AppEntry.Name;
'50000': Body := AppEntry."Phone No.";
** Code Under 3 Assuming that fields that you want to add are part of Appentry Recordset.
4. Save the changes, Import the Template and Run the process.
I hope the email should be like the way you want it.
Let me know if you have issues.,
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page