Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Filter ID based on the link

(2) ShareShare
ReportReport
Posted on by 111

The screen in Power Apps will be determined based on the link users receive through Power Automate.

There are two lists, IQA and NC. The NC list will use the ID from IQA, specifically called MasterID, to pull data based on the ID created in IQA.

For example:
1. For Head of Department and Team lead: &id=ID
2. For Auditee: &id3=ID
3. For Efficient: &id1=ID
 
but I tried to use below code to view items based on the selected ID for the users above, BUT nothing coming out:
Filter(
        'Create NC Report',
        MasterID = Gallery1.Selected.ID)
and, just Efficient user can view, not
 
  1. varID
  2. varEff
  3. varIDAuditee
  4. varIDAuditor
  5. varIDAcctMngr
If(
    !IsBlank(varEff),
    Filter(
        'Create NC Report',
        MasterID = varEff
    ),
    Filter(
        'Create NC Report',
        MasterID = "loading"
    )
)
 
 
then for Account manager's code, are not able to test this part as didn't pass the previous approval yet:
If(
    !IsBlank(varIDAcctMngr),
                If(
                    !IsBlank(varIDAcctMngr),
                    Filter(
                        'Create NC Report',
                        MasterID = varIDAcctMngr && Status.Value = "Approve"
                    ),
                    Filter(
                        'Create NC Report',
                        MasterID = varEff
                    )
                )
            )
        
Would be lovely if you guys can help me why these users are not be able to view the report based on ID.
 
Correct, i do have parameter sets for types of users
  • Verified answer
    azni Profile Picture
    111 on at
    Filter ID based on the link
    Hi, I do not know what I did. I compare two screens which actually same data but with different code. Then I am reassessing the code to create a similar one with the first screen. Therefore, below is the answer to my own question. Thanks everyone.
     
    If(
        !IsBlank(varIDAcctMngr),
        Filter(
            'Create NC Report',
            MasterID = varIDAcctMngr 
        ),
        If(
            !IsBlank(varEff),
            Filter(
                'Create NC Report',
                MasterID = varEff
            ),
            If(
                !IsBlank(varID),
                Filter(
                    'Create NC Report',
                    MasterID = varID
                ),
                If(
                    !IsBlank(varIDAuditee),
                    Filter(
                        'Create NC Report',
                        MasterID = varIDAuditee
                    ),
                    If(
                        !IsBlank(varIDAuditor),
                        Filter(
                            'Create NC Report',
                            MasterID = varIDAuditor
                        ),
                        Blank()
                    )
                )
            )
        )
    )
     
  • Suggested answer
    DBO_DV Profile Picture
    4,536 Super User 2025 Season 1 on at
    Filter ID based on the link
    Hey Azni, 
     
    I think what you need tis the Param function. 
    Here is a blog that explains how tha param function is used:  Power Apps: How to pass parameters in the URL? - Manuel T. Gomes (manueltgomes.com)
     
    let me know if you've got any Additional questions. 
     
    If this Answered your question please accept it as solution so others can find it as well.
    If it helped in any other way consider liking it so we can keep soppurting eachother. 
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard