web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

How to Customise Workflow Email Template In NAV 2018

(0) ShareShare
ReportReport
Posted on by 256

Hi, All

I create Customize workflow for Req. Worksheet Page. But I have an issue of "Workflow Request on Email" it showing the "Line no of the table "Requisition Line (246)". I didn't find out how he gets the line of the workflow email template.

7115.5.png

I want to insert Item no, Qty and Amount in Email Workflow Template. 

Please Help me Out that Issue.

Thanks in Advance.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    I Gusti Made Ari Profile Picture
    3,600 on at

    You need to custom for this. Inside codeunit 1510 "Notification Management" inside function "GetDocumentTypeAndNumber" , add following code inside the switch statement :

      DATABASE::"Requisition Line":
        BEGIN
          DocumentType := RecRef.CAPTION;
          FieldRef := RecRef.FIELD(5); //ItemNo Field Id
          DocumentNo := FORMAT(FieldRef.VALUE);
          FieldRef := RecRef.FIELD(10); //Direct Unit Cost Field Id
          DocumentNo += ',' + FORMAT(FieldRef.VALUE);
        END;


  • NeoMatrix Profile Picture
    256 on at

    Thanks for Reply. It works fine. it shows Like

    2844.1.PNG

    I have written code for above like

      DATABASE::"Requisition Line":
        BEGIN
         DocumentType := RecRef.CAPTION;
          FieldRef  := RecRef.FIELD(50003);
          DocumentNo  := FORMAT(FieldRef.VALUE);
          FieldRef  := RecRef.FIELD(6);
          DocumentNo +=','+' Item :'+FORMAT(FieldRef.VALUE);
          FieldRef  := RecRef.FIELD(10);
          DocumentNo +=',Cost :'+FORMAT(FieldRef.VALUE);
         END;

    But I want to Print like That as standard shown as below image

    2844.1.PNG

    where am I going to Put the code for this?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans