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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard