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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Extend initFromInventTable() on Purchase Order Line to auto-populate custom fields

(0) ShareShare
ReportReport
Posted on by Microsoft Employee
I added two field to the Purchase Order Line (PurchLine) table.  
I want this field to be automatically populated from the material master (InventTable) when creating a new purchase order line via the `initFromInventTable()` method.
I tried extending/overriding the `initFromInventTable(InventTable _inventTable)` method on `PurchLine`, but the custom field does not get populated. (This appears to be related to the [Hookable()] attribute)
What is the correct way? Any code examples would be greatly appreciated.
Thanks!
Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 67

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans