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 :
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

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Yossef,

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

  • Yossef Elnaggar Profile Picture
    5 on at

    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

  • Yossef Elnaggar Profile Picture
    5 on at

    any help, please?

  • mrpequit Profile Picture
    165 on at

    Hi,

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

  • Yossef Elnaggar Profile Picture
    5 on at

    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.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans