Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

create method for a datasource field of a form extension

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello everyone, I am migrating a code from AX2012 to d365FO, and I find that I have to pass a lookup method to the route

\Forms\VendTable\Data Sources\VendTable\Fields\MyField\Methods\lookup

The form is standard so I extended the form, the field is a custom field, but I can't (or don't know) how to add the method in Finance Operation.
I appreciate your help . Thank you

  • Verified answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: create method for a datasource field of a form extension

    Hi,

    You need to write an lookup event handler even if its a custom field in standard table.

    Refer to the below blog which explains about how to write lookup event handlers.

    https://dynamics365musings.com/override-an-existing-lookup-method-event-handler/

    Thanks,

    Girish S.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,996 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,853 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans