Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

How to show multiple selected items on custom page?

Hi Team,


I am trying to get selected records from main grid in model-driven app to show on custom page.


On Microsoft site, there is code to pass single record through javascript. I am able to pass guids of multiple items but can't find a way to use them in custom page App.OnStart property.


function run(selectedItems)
    let selectedItem = selectedItems[0];

    if (selectedItem) {     
        let pageInput = {
            pageType: "custom",
            name: "<logical page name>",
            entityName: selectedItem.TypeName,
            recordId: selectedItem.Id,
        let navigationOptions = {
            target: 1
        Xrm.Navigation.navigateTo(pageInput, navigationOptions)
                function () {
                    // Handle success
                function (error) {
                    // Handle error


Below code is used to get a single record but if I am sending ids of multiple records, how can I use them with param?


        LookUp(<entity>, <entityIdField> = GUID(Param("recordId"))))


Any help is greatly appreciated!!




Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,814)