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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

I can't populate records of table "Page Action"?

(0) ShareShare
ReportReport
Posted on by 111

I have a need to know all actions of pages, I've found a table called "Page Action" and the issue is when I want to loop over it to populate all actions, suddenly the application crashes, IDK maybe the table have many records that's why?


procedure populateActions(): Integer
var
    PageAction: Record "Page Action";
begin
    PageAction.Reset();
    if PageAction.FindSet() then begin
        repeat begin
            Message(PageAction.Name);
        end until PageAction.Next() = 0;
    end;
end;

I tried also to populate each page separately with for loop it crashes again

procedure populateActions(): Integer
var
    PageControlFields: Record "Page Control Field";
    PageAction: Record "Page Action";
    pagesId: list of [Integer];
    id: Integer;
begin
    PageControlFields.Reset();
    if PageControlFields.FindSet() then begin
        repeat begin
            pagesId.Add(PageControlFields.PageNo);
            PageControlFields.SetFilter(PageNo, '<>%1', PageControlFields.PageNo);
        end until PageControlFields.Next() = 0;
    end;
    for id := 1 to pagesId.Count do begin
        PageAction.Reset();
        PageAction.SetRange("Page ID", pagesId.Get(id));
        if PageAction.FindSet() then begin
            repeat begin
                Message(PageAction.Name);
            end until PageAction.Next() = 0;
        end;
    end;
end;

But if I loop just from 1 to 10 it works? 

Any help is much appreciated

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 46 Most Valuable Professional

#2
Pallavi Phade Profile Picture

Pallavi Phade 33

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 28 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans