I´m having issues with my app, I would like to link two data types, including the “Name” field of one of them into the other data type, doing it manually in the Data tab it works perfectly, but when I try to automate it in the Workflow, I am not able to do it, I would like to have some advice on which is the correct way to do it.
I would like to link two data types, including the “Name” field of one of them into the other data type
I’m not sure that makes sense… you don’t link ‘fields’ from a datatype to another (or at least, that’s not the correct way to do things most of the time)… rather you link a ‘datatype’ to another ‘datatype’…
when I try to automate it in the Workflow, I am not able to do it
When I go into workflow —> I create the group and the student, when I create the student, I want to add a field which includes the name of the group it is included in, and that´s the problem,
When I try to add the value of that field
which is basically an input in which you type the group´s name, it comes to this
Ah, ok… (so you don’t understand)… that’s not how it works…
If the field is of type ‘Group’, then the value must be of type ‘Group’, not ‘Text’ (which the input value is).
Again, you don’t want to store the Group’s Name on the Student - you want to store the actual Group.
So, assuming your Group field on the Student datatype is actually of type ‘Group’, you need to assign a value to that field with is an actual Group (not a group’s name)…
Without knowing your app, and the specifics of your page UX/UI etc. I can’t really give any specific help (other than to suggest reading the Bubble manual and going through the basic tutorials to better understand relational data in Bubble)…
But you’ll need some way of defining an actual group to add to the Student datatype (and I wouldn’t recommend using texts, or input values to do that).
If you’re creating the Group in a previous workflow step, just refer to the results of that step.
Thank you very much for your response, regarding your last comment on creating the group previously, it is my case, but still I don´t know why is it not allowing me to do it
Make sure your Data Field “Grupo Actual” is of type “Group” (or Grupo or whatever you named it) in your database.
Also, you don’t need to add the name here, meaning you can remove “Nombre” from the expression. So it would just be Result of step 1 (Create a new Grup...)