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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

How to perform an operation only when Page B is opened from Page A only?

(0) ShareShare
ReportReport
Posted on by 625

Hi All,

I have a requirement to perform an operation only when Page B is opened from Page A only and not by any other way.

I have created a Custom Project List/Card to which creates Project ID either through number sequence or manually adding it. And i have added a custom field called Proejct Id in Sales header table.

Now i have provided the fuctionality to navigate to Sales Quotes List with a custom Filter of Project Id.

pastedimage1582186179557v2.png

pastedimage1582186405008v4.png

Now i want that when I create a sales quote from the project menu put the Project Id into this Project Id field automatically in the Sales Quote page.

pastedimage1582186682215v5.png

Now i want this functionlity to work only when i create sales quote from the project menu not when i manually create a sales Quote from Sales Quote List or by any other way.

Can somebody help me with this in detail?

Thanks in Advance.

  • Suggested answer
    Harish Kumar R Profile Picture
    15 on at

    Hello AXBOY,

    From the top of my head, this can be easily done by adding a new boolean field to your project table and later use it in OnAfterInsert trigger of Sales Header to insert the project ID in Sales Quote. I've attached the screenshots of the code, kindly go through it and let me know if you have any clarifications.


    2020_2D00_06_2D00_11_5F00_11_2D00_50_2D00_29.jpg 2020_2D00_06_2D00_11_5F00_11_2D00_51_2D00_01.jpg 2020_2D00_06_2D00_11_5F00_11_2D00_51_2D00_27.jpg 

    Screenshot-_2800_13_2900_.pngScreenshot-_2800_17_2900_.png

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may, in turn, help others as well.

    Thanks & Regards,

    Harish Kumar R
    ERP Technical Consultant
    CETAS Information Technology Pvt. Ltd.
    Mobile : +91 9790126926 
    Office : +91 44 4285 0231
    www.cetastech.com
    LinkedIn | Twitter | Facebook | YouTube

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 633 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 419 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 236 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans