# Capitalization in email results in not matching for relationship

**URL:** <https://community.glideapps.com/t/capitalization-in-email-results-in-not-matching-for-relationship/30118>\
**Category:** Ask for Help\
**Created:** [August 6, 2021, 6:04pm UTC](https://community.glideapps.com/t/capitalization-in-email-results-in-not-matching-for-relationship/30118 "2021-08-06T18:04:34Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![KatieLownes](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/katielownes/32/27668_2.png) [@KatieLownes](https://community.glideapps.com/u/KatieLownes)\
**Post date:** [August 6, 2021, 6:04pm UTC](https://community.glideapps.com/t/capitalization-in-email-results-in-not-matching-for-relationship/30118/1 "2021-08-06T18:04:34Z")

</div>

Relation not working due to capitalization issues.

If a user enters their email address with capitalization ([First.Last@email.com](mailto:First.Last@email.com)), then Glide does NOT match it when doing a lookup for establishing a relationship.

For example, Rel\_to\_user\>Relate to items where the value in User Email matches the value in profiles\>email.

Glide pulls in the user email as [first.last@email.com](mailto:first.last@email.com) which does NOT match [First.Last@email.com](mailto:First.Last@email.com) and therefore does not establish the user relationship that is necessary. Is there a fix?

OR, is this happening because I’m using sample data that was not user entered, but admin entered right into the datasheet? Does Glide automatically strip the capitalization from a user email when the user “account” is first created?

Thanks!

---

<div class="post-metadata">

**Author:** ![Rosewebstudio](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rosewebstudio/32/12261_2.png) [@Rosewebstudio](https://community.glideapps.com/u/Rosewebstudio)\
**Post date:** [August 6, 2021, 7:09pm UTC](https://community.glideapps.com/t/capitalization-in-email-results-in-not-matching-for-relationship/30118/2 "2021-08-06T19:09:21Z")

</div>

Hi 👋

If your using a google sheet (as opposed to a glide table) these solutions may help you.

> [@If a CAP in the email, not matching](https://community.glideapps.com/t/if-a-cap-in-the-email-not-matching/15868):
>
> My app’s URL: cs.backtoset.app Apologies if addressed before, didn’t see it. So after a few hours of not figuring out why things weren’t matching, I FINALLY discovered that somehow users who had caps in their emails (manually added in a list) didn’t match the emails right via relation to their emails in users list. After literally going line by line to see what was different I noticed the few with issues had caps in their emails entered by an admin, but not in user list. Once I changed it, the…

> [@Any way to prevent case-sensitive matches?](https://community.glideapps.com/t/any-way-to-prevent-case-sensitive-matches/5315):
>
> I use the “Unique” function quite often to get a list of users from the App:Login sheet. The issue I’ve been having is that the Unique function is “too unique” haha. Sometimes a user will log in more than once and sometimes users log in and the first letter of their email address is capitalized. This shows as a unique value to my other sheets. I’m curious what others do to prevent this behaviour. I can’t ensure that users always log in with the same case in their email addresses, so I’m looking…

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [August 6, 2021, 11:26pm UTC](https://community.glideapps.com/t/capitalization-in-email-results-in-not-matching-for-relationship/30118/3 "2021-08-06T23:26:55Z")

</div>

> [@KatieLownes](#):
>
> Does Glide automatically strip the capitalization from a user email when the user “account” is first created?

Based on some posts in the community I don’t think this is the case.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [August 7, 2021, 12:03am UTC](https://community.glideapps.com/t/capitalization-in-email-results-in-not-matching-for-relationship/30118/4 "2021-08-07T00:03:34Z")

</div>

I find the best way to solve this is to _not_ use email addresses for creating relations, and instead use UserID/RowID. So every time you have the urge to use the “current users email address”, instead use Current User → RowID/UserID.

And the nice thing about this approach is that if you ever need to change a users email address, it only needs to be changed in _one_ place 😉

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [August 7, 2021, 1:23am UTC](https://community.glideapps.com/t/capitalization-in-email-results-in-not-matching-for-relationship/30118/5 "2021-08-07T01:23:43Z")

</div>

smart approach… just add previous screen row ID when adding rows… not just email… and relate it to row id… for filters… it will take extra move of the mouse to go not if user is sign in user… to … if user row ID is row ID  
you can solve the capitalizing problem using Yes Code columns with Excel formulas… the only problem with YC, it is not yet approved for copyable templates… but if you need an app for yourself or a team to use … then there is no problem

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [August 7, 2021, 1:46am UTC](https://community.glideapps.com/t/capitalization-in-email-results-in-not-matching-for-relationship/30118/6 "2021-08-07T01:46:44Z")

</div>

> [@Uzo](#):
>
> it will take extra move of the mouse to go not if user is sign in user… to … if user row ID is row ID

You can still use “signed in user is not User-\>Email”, also finding any column in the User Profile is trivial these days with the new search feature - no mouse required 😉

> [@Uzo](#):
>
> you can solve the capitalizing problem using Yes Code columns with Excel formulas

Not in this case. The problem is because yes-code is a computed column it can’t be used as the User Profile email address column. Also, because the row is added the first time the user signs in it’s too late by then.

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [August 7, 2021, 1:55am UTC](https://community.glideapps.com/t/capitalization-in-email-results-in-not-matching-for-relationship/30118/7 "2021-08-07T01:55:25Z")

</div>

it can be use to relate search… and it will show if you just single value it

---

<div class="post-metadata">

**Author:** ![nousername](https://avatars.discourse-cdn.com/v4/letter/n/b9bd4f/32.png) [@nousername](https://community.glideapps.com/u/nousername)\
**Post date:** [August 26, 2021, 3:22am UTC](https://community.glideapps.com/t/capitalization-in-email-results-in-not-matching-for-relationship/30118/8 "2021-08-26T03:22:13Z")

</div>

**Using different combinations of capitals when specifying e-mail leads to a lack of communication with one user**

When I select the special field for entering email, I expect the system to check the correctness of the format of the entered data and bring the record into a single format, in which all capital letters will become lowercase.

Without such a check, I cannot be sure that the email field of two different tables will be matched correctly.

**This qualifies as a serious bug. You should work on it as soon as possible.**

---

<div class="post-metadata">

**Author:** ![david](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david/32/62831_2.png) [@david](https://community.glideapps.com/u/david)\
**Post date:** [August 26, 2021, 3:26am UTC](https://community.glideapps.com/t/capitalization-in-email-results-in-not-matching-for-relationship/30118/9 "2021-08-26T03:26:44Z")

</div>

Capital letters are valid in emails. The email entry allowing them does not qualify as a “serious bug.”

We could do case-insensitive relations someday… you should also be able to lowercase text to normalize it yourself, although we need to add that.

---

<div class="post-metadata">

**Author:** ![nousername](https://avatars.discourse-cdn.com/v4/letter/n/b9bd4f/32.png) [@nousername](https://community.glideapps.com/u/nousername)\
**Post date:** [August 26, 2021, 3:35am UTC](https://community.glideapps.com/t/capitalization-in-email-results-in-not-matching-for-relationship/30118/10 "2021-08-26T03:35:39Z")

</div>

Unfortunately, I can’t force clients to put their email strictly in lowercase letters.

Using uppercase letters in the email may indeed be the case when that email needs to be displayed in the application in a more readable way. But in this case, the relationship between these records should work.In our case, this correlation does not work, and that is a serious bug. Here is what I wanted to say.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [August 26, 2021, 3:44am UTC](https://community.glideapps.com/t/capitalization-in-email-results-in-not-matching-for-relationship/30118/11 "2021-08-26T03:44:10Z")

</div>

⬇

> [@Darren\_Murphy](#):
>
> I find the best way to solve this is to _not_ use email addresses for creating relations, and instead use UserID/RowID. So every time you have the urge to use the “current users email address”, instead use Current User → RowID/UserID.

---

<div class="post-metadata">

**Author:** ![nousername](https://avatars.discourse-cdn.com/v4/letter/n/b9bd4f/32.png) [@nousername](https://community.glideapps.com/u/nousername)\
**Post date:** [August 26, 2021, 3:47am UTC](https://community.glideapps.com/t/capitalization-in-email-results-in-not-matching-for-relationship/30118/12 "2021-08-26T03:47:02Z")

</div>

I am actively applying this approach. But there are situations where this is not possible. For example, when a user needs to specify another user’s email address to create a reciprocal connection (invitation).

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [August 26, 2021, 3:52am UTC](https://community.glideapps.com/t/capitalization-in-email-results-in-not-matching-for-relationship/30118/13 "2021-08-26T03:52:34Z")

</div>

Okay. Of course I know nothing about your app or your specific use case, but I can say that I have what sounds like a similar use case in one of my apps (users send invitations to other users). In my case, I never present or ask for email addresses - just names. Users select a name from a list, and everything else is handled under the hood.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [August 26, 2021, 4:01am UTC](https://community.glideapps.com/t/capitalization-in-email-results-in-not-matching-for-relationship/30118/14 "2021-08-26T04:01:43Z")

</div>

A couple of other suggestions:

- A template column with replacements for each upper to lower case letter.
- An Experimental Code column that uses a LOWER excel formula [Excel Formula Column](https://community.glideapps.com/t/excel-formula-column/29865)
