Add data in datatype

Hello, I have a datatype Plan who has one datafield (list of Users). I would like to add the phone number of the User with my add button but i cannot acces to the element in the workflow.



Hi @carelnehr.leo :wave:

The field “guests” is a list of Users, so you can only add Users to it.

What are you trying to do?

If you are trying to access one of the user’s entries phone field (numero I believe) then you have to (1) decide which of the users in the list and then (2) access it like this

list of users item # 1 each item numero
(this assumes you want the first user …)

1 Like

Thanks for your help ! In the datatype Plan I would like to have my list of guest (list of Users). So on my page when I add the number, I want (1) to create a new User with his number, and I want that this user goes on guest (list of Users) in PLan. Then i want to display this list. Then I will use this list of guest to send them a sms !

Thanks for your helo !! In the datatype Plan I would like to have my list of guest (list of Users). So on my page when I add the number, I want (1) to create a new User with his number, and I want that this user goes on guest (list of Users) in PLan. Then i want to display this list. Then I will use this list of guest to send them a sms !

Grab the phone number in the list and implement the logic to create all of the goodies that you need :wink:

The problem here is that you can’t create a list of Users in frontend. You will need to create a backend workflow for this…

Create a backend workflow with two keys

  • One called “Phone” (text type);
  • Other called “Plan” (Plan type);

In the first step of this workflow, you will create a new User using the key “Phone”.

In the second step you “Make a change to thing”, Select the key “Plan” and in the field “Guests” you ADD the “Result of step 1” of this workflow.

Now, in frontend, you will need to create a workflow that will “Schedule API workflow on a list”. Then simply select the phone list you have.

Tell me how far could you go with this explanation :sweat_smile:

1 Like

Well explained @rpetribu :+1:

1 Like

Hi : :slight_smile: Thank you so much its clear ! I just cannot create a new User …

“Create an account for someone else” :+1:
Or
“Sign up user” (or something like this)

yes I tried. But the think is that I want to add a guest (so create a new user) via his number and for this I need the email. I would like to create via a number not via an email… :sweat_smile:

Every user needs an email :sweat_smile:…
So you can made it out like “phone@yourappurl.com” or don’t create any User…

They really need to be a User!? With email and password!?

This topic was automatically closed after 70 days. New replies are no longer allowed.