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 Flow Community Manager

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

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow 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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 404 members 4,523 guests
Please welcome our newest community members: