Showing posts with label How to get formrn from formcontrol in d365 code. Show all posts
Showing posts with label How to get formrn from formcontrol in d365 code. Show all posts

Friday, 8 February 2019

How to get formrn from formcontrol in d365 code

Get FormRun from form control

[FormControlEventHandler(formControlStr(MyForm, MyButton), FormControlEventType::Clicked)]
public static void MyButton_OnClicked(FormControl sender, FormControlEventArgs e)
{
   FormRun formRun = sender.formRun() as FormRun;
   formRun.myMethod();
}

Thanks,
Vikas Mehta

Blog Post 6: Bonus – Building Your First Custom Copilot Plugin in X++

Blog Post 6: Bonus – Building Your First Custom Copilot Plugin in X++  Introduction In our previous posts, we explored what Copilot can do o...