cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Personal account for a user office365

How to use UserOffice365 to create a personal account for a user, so that the organization's members can add points. For example, a user has solved a test and this value is entered in the table (database) under their name. How to create this database and make the user log in to the mobile app and if the DisplayName in the database matches MyProfile ().DisplayName bind a condition to a text label?

Аннотация 2020-03-28 093112.png

7 REPLIES 7
WarrenBelz
Super User
Super User

Hi @Anonymous ,

So that I understand your requirements, are you asking for the user to see only records which are flagged as related to their login - presumably by a field in the data?

I will give a short answer on this assumption - if this is your requirement, I am happy to explain further.

Firstly the built-in functions User().Fullname and User().Email both allow the recording of this information in a record and can be tested at user login and used as a filter on what records are displayed. Also the fields Created by and Modified by if you are using SharePoint as a data source allow further management. 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Anonymous
Not applicable

Yes, Yes. This is my case. Tell us more about how to create this database and what value to assign to a text label.

Thanks @Anonymous ,

Firstly, you need to set a variable at App OnStart to avoid delegation issues with the User() function.

Set(vUserName,User().FullName)

Also note that User().FullName may not be unique in your organisation if two people have the same name, so you can consider using User().Email. This aside, I will describe a possible process with the full name (which is the display name you mentioned).

When you are referring to create a database, you are simply creating a new record which will have a field with the user’s name in it. To do this, make the Default of the field vUserNamewhich is the Variable you have created above. When a new record is created, this value will be put in the field and I assume this is the text field you are referring to.

If you want the user to see only their records in the future, simply filter on this field to show a list of items where the field value equals vUserName.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

Anonymous
Not applicable

Please tell us in more detail, step by step. My knowledge of English is poor, so try to describe the process more simply. Thank you for your help! 🤔

Hi @Anonymous ,

I am not sure how to explain this more clearly.

I assume your native tongue is Russian - this is from Google Translate please read this and try some of it - happy to help if you get stuck with code

Я не уверен, как объяснить это более четко. Русский перевод (я предполагаю, что это ваш язык) ниже.
Во-первых, вам нужно установить переменную в App OnStart, чтобы избежать проблем с делегированием с помощью функции User ().

Set (vUserName, User (). FullName)
Также обратите внимание, что User (). FullName может не быть уникальным в вашей организации, если два человека имеют одинаковые имена, поэтому вы можете рассмотреть возможность использования User (). Email. Помимо этого, я опишу возможный процесс с полным именем (это отображаемое имя).

Когда вы имеете в виду создание базы данных, вы просто создаете новую запись, в которой будет поле с именем пользователя. Для этого установите значение по умолчанию для поля vUserName, которое является переменной, которую вы создали выше. Когда создается новая запись, это значение будет помещено в поле, и я предполагаю, что это текстовое поле, на которое вы ссылаетесь.

Если вы хотите, чтобы в будущем пользователь видел только свои записи, просто отфильтруйте это поле, чтобы отобразить список элементов, значение поля которых равно vUserName.
Firstly, you need to set a variable at App OnStart to avoid delegation issues with the User() function.

Set(vUserName,User().FullName)
Also note that User().FullName may not be unique in your organisation if two people have the same name, so you can consider using User().Email. This aside, I will describe a possible process with the full name (which is the display name you mentioned).

When you are referring to create a database, you are simply creating a new record which will have a field with the user’s name in it. To do this, make the Default of the field vUserName, which is the Variable you have created above. When a new record is created, this value will be put in the field and I assume this is the text field you are referring to.

If you want the user to see only their records in the future, simply filter on this field to show a list of items where the field value equals vUserName.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

Anonymous
Not applicable

The database must have a column with all the members of the organization?

Hi @Anonymous,

 

I'm not clear about your issue.

What is the data source of the app?

What does the sentence mean that binds a condition to a text label?

Could you please share more details about your requirement?

Sik

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,525)