I have a backend workflow API that takes a POST and then redirects to another page. I need to do some processing based on a value set on the Current User. For seem reason, that value isn’t set for the Current User in my backend workflow? Any ideas why not and what a possible workaround would be? As a matter of fact, in a normal workflow, I can see a unique id for the Current User, in the backend workflow, I just see a text string referring to my app name and the status of the user. It’s like the backend workflow doesn’t initialize the Current User.
Yes, they don’t seem to play a part in this. I opened up everything temporarily on the User table and tested it. It behaved the exact same way. Thanks for the advice though.
Did you ever find a fix for this? I think something similar is happening to me. I even turned off privacy rules completely, and the temp user still isn’t being updated.
I see the “make changes to user…” workflow in the logs with the fields that should be updated, but nothing is changed.
The story of internal invocation was incorrect, sorry, the request is obviously external even if sent from the same app. When workflow receives POST request via public endpoint, you need to authenticate sender in some way either creating your own authentication flow or using built-in providers, but I had no chance to try it out yet. Just the fact that you sent POST request from the same app does not provide automatic authentication.
P.S. you may add separate endpoint for internal calls and get your Current User initialized then if invoked from inside of your app.
Basically Backend workflows are on the serverside, meaning it cant see your Current user, so instead of using “Make changes to current user”, use “Make changes to a thing” then pick do a search for, users, and add a “constraint” eg email=returned data’s email.
It might not be correctly associating the Current User when the request is initiated, possibly due to a session or context initialization problem. One workaround could be to manually set the user’s context in the workflow or check if there’s a way to explicitly pass the user data to the backend.
I once worked on a project where we had a similar issue with user data not passing through APIs, and using a service like www.blueberry-ai.com helped streamline managing digital assets, which improved our workflow a lot!