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

AL extension: Update a record and display the change

(0) ShareShare
ReportReport
Posted on by
Hello,
 
I am currently making an extension to an extension. The original extension grabs a subset of all items and creates a new table with extra information calculated from sales, purchases and production.
 
My extension takes this table and adds a few columns. Originally, I just displayed the calculated values in extra fields, but we need the new fields to be filterable and sortable.

The new version adds an action that takes the same functions that worked before for calculating the values, but stores the values in the new table. Out of three fields, two display the updated values, while one stubbornly refuses to show anything other than "0". I checked and got Copilot to confirm that all of my fields point to the table and table is what I update.
 
I have the relevant code in attachment. Notice that in my page's action, I call three functions.
CriticalUpdate.CalculateQtyRequiredThisMonth(WorksheetLine); // Works
CriticalUpdate.FetchSafetyStockRequirement(WorksheetLine); // Fails
CriticalUpdate.FetchSafetyStockCriticalDate(WorksheetLine); // Works
 
Thanks in advance for any help or advice.
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 82

#3
ManoVerse Profile Picture

ManoVerse 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans