passing record by args

Hello everyone. I’ve got a problem.

I have form A and form B which is gonna calling from form A. On form B i have a MenuItemButton where i need to use records from form A.

I tried to do some element.args().caller() method’s on form B but on the end they gave me only errors.

How should i pass args from Form A to form B and next from form B to this MenuItemButton?

Thanks for your help and sorry for no tags but don’t really know which should i use :slight_smile:

How you are calling the formB from formA?
See this, dynamicsuser.net/…/how-to-identify-caller-form-name

By Display menuItemButton

Did you have data source specified on the menu item (in the form A)?
have you tried element.args().record();