Assign Data created by admin to a user

Hi I have uploaded some user data “workshops details” in a CSV file. It is now showing as created by app admin (me). IS there a way to manually override the creator and have it assigned to a user.
Thanks
Kylie

Hey @kylie ,

I don’t believe so. Perhaps try the upload CSV workflow on the front-end?

2 Likes

Yes, you should be able to click “edit” on the dB entry and switch the search field to name or email and easily change the creator.

You may have to do individually or via “modify” with an api flow.

Thanks for this. Are you able to share a screen shot as I can’t work it out?? I have clicked edit and I cant see what you mean ?

You are not able to modify the ‘creator’ of a data type…this is a field that is set by Bubble and you do not have access to modify it via the editor or via workflow actions.

Built-in fields

By design, Bubble adds a few fields to each type. These fields are the ‘Created Date’ and the ‘Modified Date’ of type date. For things that aren’t users, a third field is ‘Creator’, which is of field type User. For each thing that isn’t a User, this field will link it to the user that was logged in when the thing was created (see below the few actions that let you create things). Every thing also has a ‘slug’, which is a shorthand, unique way to refer to a thing that can be used, for example, in URLs (see this article).

Each thing in Bubble also gets a unique ID assigned when it gets created - this has the format of a long string of seemingly random numbers with an “x” in the middle. Using this field isn’t common, but in some cases, if you need a way to uniquely identify a thing, you can use the ‘unique id’ field.

Instead of these fields yourself, you can rely on Bubble’s data engine to create these fields, assign the right data when a thing is created, and use that data where you need it.

There is not anyway that I am aware of that you can modify these built in fields.

Instead what you can do is add another field to your data type…that field would be of type User…then you can modify that as you would please…of course you won’t be able to use the operator ‘things creator’ but instead would just reference ‘things user’ (if you name the user field type to be field)

To do this, follow my previous reply about not being able to modify the built in ‘creator’ field and add the field for type User.

Then you can use the 1T CSV upload plugin

Then access in the plugin element the custom headers and use dynamic data to add the User you want to

Screen Shot 2021-02-08 at 5.27.50 PM

My example shows for the User field I did the current user, but you could do a search like I did for survey and constrain to get the correct user, since I believe your app admin will be uploading the CSV file

3 Likes

Thanks Legend !

1 Like

Hi @boston85719 ,

Thanks for the explanation here. I downloaded the 1T CSV Uploader and also want users to use it to update other data types, but not sure how to do it. I checked the plugin page but the demo link is now asking for a username and password. Would you please show me how to set up the FIELD LABELS and the FIELD NAME? Thanks in advance!

Watch the video by the developer…it is how I learned.

1 Like

Thank you for your time finding and sending this! @boston85719 I should have searched more carefully.

1 Like

hi,
im trying to have a find by name and replace with unique id solution before uploading csv. can you open this example a little bit more how does search work you cant refer to a column in csv you can parse from json but what is the best way to do it?

I don’t really understand what you are trying.

Normally you would first upload a CSV, and then after the CSV has been uploaded, would run a function to replace the name in the data uploaded by the CSV with the unique ID

1 Like

so what is the way of doing it?

imagine i hava “brand” data type for “car” thing
i will create another data type in car thing call il “import brand name” and create a backend worfklow database event when an “import brand name” created do a search for this “brand name” from “brand” thing then assosiacate it with current car ? is it the best way of doing this ?
thanks for your answer