Workflow Issues - struggling

I’m currently building an app where I’ve set up a workflow to allocate credits to a user’s account based on selections from two dropdowns: one for user selection and another for credit bundles. I’ve meticulously checked the database, and the data types seem consistent across fields.

The idea is just to test an admin feature where you can check any users credits and add credits based on the dropdown selection (option set)

However, when attempting to execute the workflow, it doesn’t function as expected and I cannot understand why. I’ve ensured that:

  • Both dropdowns are populated correctly.
  • The workflow conditions are set to check values from both dropdowns.
  • The action targets the correct user and updates the credit amount based on the selected credit bundle.

Despite these checks, I can’t get the desired outcome.

Here is a snippet of what I think the workflow should be.
Screenshot 2023-08-09 185615

Any assistance would be greatly appreciated.

Hi there, @david53… because you mentioned users, you could run into an issue with privacy rules, specifically this rule.

Also, you don’t put a formula in the thing to change field. That field should be the thing you want to make changes to, and then you will define the field you want to change and the change you want to make.

Hope this helps.

Best…
Mike

Thanks for your help Mike,

Privacy rules all deleted so that side is ok.

Re the thing to change issue, is my “Dropdown_select users value credits” not the “thing to change” in this case?

The Action in your screenshot isn’t doing anything… (so if that’s all your workflow does, nothing will happen).

As @mikeloc says, if you want to make changes to something, you first have to define what thing you want to change, and then set the required field values.

Thanks Adam, am I not defining the thing I want to change in the first part of the expression?

The thing to change should be a specific user, likely the user selected in the dropdown.

Oh, and blindly deleting that privacy rule isn’t the point of the link I included, so you should circle back and learn about privacy rules so you can apply them appropriately.

2 Likes

am I not defining the thing I want to change in the first part of the expression?

No… it looks like you’re defining a Number (you can’t change a Number, you can only change things in your database)… but if you hover over the expression Bubble will tell you exactly what it evaluates to.

So you need to define an actual Thing from your database (presumably, in this case, a User)

Privacy rules all deleted so that side is ok.

Deleting all privacy rules is rarely ok, so I definitely wouldn’t advise that (especially on the User datatype, as you’ll be potentially exposing personal data).

Thanks guys. Appreciate the feedback regarding privacy rules, certainly was not my intention to go into production app with no privacy rules, just trying to simplify my sandbox environment to try and get my head around some basic functionality.

Taking your input onboard I have achieved the desired outcome by populating a repeating group with user data and then pushing that to a pop up where I can amend the credit balance of the selected user. Does that sound like a reasonable workflow or have I just sidestepped my original issue with a hack solution?

Here is the workflow to update balance based on the credits option set that was failing dismally prior.

Screenshot 2023-08-09 213606

Hard to say if it sounds reasonable, given that we don’t have any idea what your app does or what the flow looks like. That being said, if it works, it works, eh?

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.