AX – D365FO – Get DataSource name of a caller object

Suppose you have a form A that calls form B.

In Form B you want to know what is the data source of the Form A and do something…..

This is the code to obtain the data source name of a caller object (such as Form, menu item, etc..).

args.record().dataSource().Name();

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s