User ↔ UserProfile Link Causing Multiple Errors (Comments, Messages, Profile, Search)

Hi everyone :waving_hand:,

I’m building a social app and running into multiple issues (comments not saving/showing, messages not sending, profile data empty, search not working).

I think the root cause is that my User ↔ UserProfile link isn’t set up properly.

Setup:

  • User has a field → profile (UserProfile)

  • UserProfile has a field → user (User)

  • Posts/Comments/Messages all reference UserProfile.

When I try to use Current User's profile, it often returns null, which breaks comments, messages, and profile pages.

What’s the correct way to set up the signup workflow so every User always has a linked UserProfile?

Thanks a lot :folded_hands:

You can ideally handle the post signup actions in a backend workflow (this workflow should create a UserProfile and make changes to the User being passed as a parameter). Schedule this API workflow after sign the user up action is done.