Actually, you can use primaryControl parameter eg. function mySampleFunction(primaryControl) { var formContext = primaryControl; // Perform operations using the formContext object }
var selectedItem = selectedItems[0]; in the JS always returns the first record in the Custom Page. How to make this dynamic and pass the selected record by the user
Hi Softchief, well explained in short time. Really appreciated
Hi Sanjay,
Thank you for the session. Expecting more sessions like this 👏👏
Hi, thanks for great information. Can custom page be added for an existing model driven app?
How do you tie Power Automate flows to the Actions in the Commands like you can do with buttons in Canvas Apps?
Where do we pass the executionContext in for the script like we normally do for scripts used for the forms?
Actually, you can use primaryControl parameter
eg.
function mySampleFunction(primaryControl) {
var formContext = primaryControl;
// Perform operations using the formContext object
}
var selectedItem = selectedItems[0]; in the JS always returns the first record in the Custom Page. How to make this dynamic and pass the selected record by the user
The problem is not the [0], its that he chooses the wrong parameter on button. You should pick SelectedControlSelectedItemReferences.
Plz share the screen size height and width , i tried but page is not responsive
How do we debug this?
Can u please share the javascript written in webresource
Why u have written first(accounts) in App start coding part