Call a codeunit from a Form

Sugeevishere
Sugeevishere Member Posts: 11
Hi Mibuso Developers,

I want to call a Codeunit to the form using a button. I created a function call getsalesorder and i pass salesheader and salesline as the record variable parameters inside that function which is included inside the Sales Order codeunit. May I know the way of calling the codeunit to the form?

Any help will be appreciated.

Answers