Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Carry out action message.

Posted on by 475

Hi guys,

Whenever I click on the carry out action message the last posted purchase order must be opened.Can you guide me how to customize it.

Bharath 

*This post is locked for comments

  • Suggested answer
    CDsilva Profile Picture
    CDsilva 4,184 on at
    RE: Carry out action message.

    Write your code on OnAction trigger of carry out action message.

  • bharathkarunakaran Profile Picture
    bharathkarunakaran 475 on at
    RE: Carry out action message.

    Hi

    On which trigger should i write this code .

  • Suggested answer
    CDsilva Profile Picture
    CDsilva 4,184 on at
    RE: Carry out action message.

    Hi,

    Requisition Line is your source table then. Craete a Global Variable for the record PurchaseHeader then write the below code. Let me know if you require more help.

    OnAction()

    If PurchaseHeader.FINDLAST Then

    PAGE.RUN(50,PurchaseHeader);

  • bharathkarunakaran Profile Picture
    bharathkarunakaran 475 on at
    RE: Carry out action message.

    Hi,

    The page Name  is  291 req. worksheet . In that there is action called carry out action message. whenever i click that the last purchase order should get open.

  • Suggested answer
    CDsilva Profile Picture
    CDsilva 4,184 on at
    RE: Carry out action message.

    Can you post the Page name and Source Table ?

    refer https://docs.microsoft.com/en-us/dynamics-nav/findlast-function--record-

    to understand FINDLAST

  • bharathkarunakaran Profile Picture
    bharathkarunakaran 475 on at
    RE: Carry out action message.

    Hi,

    Can you explain it in detail

  • Suggested answer
    CDsilva Profile Picture
    CDsilva 4,184 on at
    RE: Carry out action message.

    Hi,

    Write the below code on the action button:

    IF Record.FINDLAST THEN

    PAGE.RUN(<PageNumber>,Record);

    Here,

    Record is Table Name.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans