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 autofill fields of a page

(0) ShareShare
ReportReport
Posted on by 10

hello guys,

i would like to know how can i automatically fill the fields of a page once i select a customer number

my card has 8 fields: (customer number, name, number , county code, county, sub county, estate, estate code) which are used when applying for a service

this data is stored in 3 different table

1. customer table has the fields customer number, customer name, number

2. sccounties table has the fields county code, county, and sub county

3. scestates table has the fields estate and estate code

when a customer makes a service request, all this information is filled the first time.

is there a way, where once the information about a customer has been entered and saved, if the same customer again makes a service, the system will automaticaly fill all other fields once he fills the customer number

thanks

  • Suggested answer
    JAngle Profile Picture
    161 on at

    You might want to review the code of the Sales Header table. This is exactly what happens when you pick an existing customer record. Maybe you should be using a cut down version of the pages that display the Sales Header and Sales Line instead of starting from scratch.

  • Suggested answer
    Tabrez Ajaz Profile Picture
    793 on at

    Hi kelling,

    You can write your code in [OnAfterValidate() trigger in case of table extension] or [OnValidate() trigger in case of your custom table] of the customer no. field, so whenever if any customer number is entered in the field the trigger will be executed and you can populate the fields.

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 554 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 360 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 201 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans