cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted

Using DataSourceInfo to find out what buttons you can see

Hi Folks,

 

I'm trying to hide a button based on who is logged in. 

 

In the InfoPath days I used an external list with two columns:

User and Role.

 

The user was a people picker and role was whether they were customer or admin.

 

The data connection in InfoPath would call upon this list and a rule on form load would store the Role and lookup the logged in user and match it to the secondary data connection. 

 

I've discovered several tutorials and have found the DataSourceInfo function which I suppose could potentially be used to read from a secondary data source like the one mentioned above? Or am I barking up the wrong tree trying to create somthing like this?

 

C

3 REPLIES 3
Community Support Team
Community Support Team

Re: Using DataSourceInfo to find out what buttons you can see

Hi @cardinalpipkin

 

Have you take a try to achieve your needs using Microsoft flow.

 

For you requirement to hide a button based on who is logged in, I afraid that there is no function could help you to achieve the requirement in microsoft flow currently.

 

Best regards,

Alice

Administrator
Administrator

Re: Using DataSourceInfo to find out what buttons you can see

Hello, @cardinalpipkin!

 

If you have already posted your idea to the Flow Community Ideas Forum then you need to post the URL to your idea’s thread as a reply to this thread and then "Accept as Solution" on that reply so other users may vote for your Flow Idea and identify the information easily.

 

Thank You!

 

-Gabriel
Flow Community Manager

-Gabriel
Microsoft Power Automate Community Manager
Are YOU a member of your local Power Automate User Group?
Fill out This Form to claim your Community User Group Member Badge!

Re: Using DataSourceInfo to find out what buttons you can see

Hi,

 

What about a view that doesn't let a particular user see a view?

 

Are you sure about not being able to hide or even disable (make read only) a button based on logged in user:

 

https://docs.microsoft.com/en-gb/powerapps/maker/canvas-apps/transform-infopath

 

The above link seems to suggest that you can, it's just that I can't make it work, see under the heading: (Hide/Show/Lock a field based on a value)

 

Regards,

 

C

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,365)