Bonjour, je cherche le moyen de créer un système de parrainage.
Chaque utilisateur aurait un code parrain.
Et j’aimerai que quand une nouvelle personne rejoint mon application elle puissent entrer un code parrain.
Et que si ce code correspond à un des code parrain attribuer au précédent utilisateur alors lui ajouter un score de 1.
Malheureusement je ne trouve pas la solution…
Merci, Théophile
You can do it like this:
-
Create a “referred code” column and let users fill that using a text entry when they first enter the app.
-
Create a relation from the original referral column to the “referred column”, make it a multiple match.
-
Create a rollup from that relation to count the number each user’s referral column was used in the “referred column”.
Bonjour Theophile, et bienvenue sur cette communauté. N’hésites à nous contacter chez Datapix pour des échange sur Glide en français ! Vincent
Merci beaucoup, j’ai réussi
Et est il possible de créé automatiquement, lors de leurs inscription, un Code de parrainage différents pour chaque utilisateurs ?
It depends on what “input” do you want for the code. The most straightforward approach is to use the rowID, but it’s a bit long.
Non je cherche plutôt à créer un code unique de 4 ou 6 cracatères…
I think you can use the “Text Slice” plugin (under the Text “category”) to extract the first 4/6 characters out of your user’s rowID.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.