web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / get view type from PCF...
Power Apps
Unanswered

get view type from PCF dataset context

(0) ShareShare
ReportReport
Posted on by 76

I am developing a PCF dataset control and have a requirement to have a different display for saved query and userQuery, i.e. i need different UI if the grid hosts system view vs custom advanced find view(user created)

 

Is there any parameter from Dataset Context which can help me differentiate this-savedquery\userQuery? I do not want to make a round trip to server(based on viewid- context.parameters.dataset.getViewId())

I have the same question (0)
  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi  @Goutham , 

     

    Maybe is not exactly how you would like to solve this problem, but there might be another possibility: you can define the PCF on an entity level and on a view level. So you could make another input parametere for your PCF, and set it when you customize the PCF on the view level. So the user-query shouldn't have that value.

    The customizer must set it, so not that ellegant like a self detection, but maybe it helps you further.

     

    Kind regards,

    Diana

     

  • Goutham A Profile Picture
    76 on at

    Thank you @DianaBirkelbach . I am currently using the same approach. I already have ~10 parameters for different functionalities, so was trying to avoid if there is a way to retrieve this from PCF context. 

  • skoofy5 Profile Picture
    482 on at

    I've not seen them surface any of that sort of data and it's definitely not documented. I've gone down the retrieveMultiple path myself of savedquery and compared the viewid. It's not had a noticeable impact.

    If some of the parameters they pass through are anything to go by then maybe one day they'll surface it, but I wouldn't be waiting for it if I were you.

    skoofy5_0-1619499236937.png

     



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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard