Setting up account structure

Hi All,

I would be incredibly grateful if anyone can help me here. I can’t seem to figure this out:

I have an Account data type linked to my User data type.

Account has a field “user” (List of Users)
User has a field “account” (Account)

Account has a “company_name” (Text) field, and I am trying to display the Current User’s Account’s Company Name.

Screenshot 2024-03-01 at 6.15.27 PM

But the debugger indicates that company_name is empty, even though the field is populated in the database.

Screenshot 2024-03-01 at 6.16.11 PM

Can anyone help?

Thanks!

Hey @0.dylan :wave:

Hmm :thinking: Tough one.

I would suggest first copying that unique id of the account and check your database to see if it actually has a company name. If it does, that means it’s a privacy rule issue. Check your privacy rules on the account dataType to make sure that the correct user can see the company name. Let me know if that helps. :blush:

Wow, thanks so much for the prompt reply. I enabled privacy permissions for Everyone Else, but only for the company_name field and it worked. Thank you!

I had set up the initial privacy rules as follows:

So I thought this configuration meant that the current user would be able to see the info. But they couldn’t. When I enabled it for Everyone Else, it finally worked. But does this mean users of other accounts will now be able to see it as well?