Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Get the datasource from caller ListPage Action MenuItemButton when clicked in EP environment

(0) ShareShare
ReportReport
Posted on by 5

ListPage has ActionMenuItem which is working fine in client but gives error when it is clicked in EP environment.

FormDataSource      _ds = _args.record().dataSource();

1881.Error-2.png

8154.Error-1.png

  • Yossef Elnaggar Profile Picture
    5 on at
    RE: Get the datasource from caller ListPage Action MenuItemButton when clicked in EP environment

    Unfortunately no, it seems that it is not applicable in the EP environment.

    The workaround that worked for my case:

    Add a new Web Menu Item to call the list page itself. then inside the Interaction Class, check which menu item has been pressed and write your business accordingly.

  • mrpequit Profile Picture
    165 on at
    RE: Get the datasource from caller ListPage Action MenuItemButton when clicked in EP environment

    Hi,

    I'm in a similar situation. Did you have a fix for this?

  • Yossef Elnaggar Profile Picture
    5 on at
    RE: Get the datasource from caller ListPage Action MenuItemButton when clicked in EP environment

    any help, please?

  • Yossef Elnaggar Profile Picture
    5 on at
    RE: Get the datasource from caller ListPage Action MenuItemButton when clicked in EP environment

    Hi Gun, 

    Sorry for late reply as I just got access to reply to forums "New account".

    Yes, in the action class that called after clicking the menu.

    It is working fine when the menu item is clicked in client, while returns null in case of EP.

    Only args.Record() returns the selected record, args.Records().DataSource() returns null.

    0488.Error-3.png

    3568.Error-4.png

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: Get the datasource from caller ListPage Action MenuItemButton when clicked in EP environment

    Hi Yossef,

    Where are you using _ds variable in the class later in the code?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,165 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,968 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans