Hi @Nayana_Priyankara, do you mean a “model” or a “modal”? Are you trying to pass a function to a modal? If yes, will this function be executed in the context of the modal?
If so, I don’t believe modal contexts can accept functions. You should pass a JSON-like object in the data property from client.interface.trigger(), then fetch that data in the modal’s context using client.instance.context().
I’m creating a app in ticket sidebar. when a button click it should open a modal. this model have a list of records.(user need to select one of the record) I need to get back the record which user selected back to the ticket sidebar app.