AX – D365Fo – Call method of a calling record

    object          object;
    formDataSource  formDataSource;

// Call method from calling record
    if( element.args() &&
        element.args().record() )
        common = element.args().record();
            if(formDataSourceHasMethod(common.dataSource(), identifierStr("someMethod")))
                object = common.dataSource();

Leave a Reply

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

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

Facebook photo

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

Connecting to %s