WordPress User Updated - Wrong Old Role being sent
Status: Open · Asked by mikejandreau on · 0 views
I'm working on a task to run when a User's role changes in WordPress.
However, the `User Old Data Roles 0` is coming in with the wrong Role.

Here I'm changing FROM Customer TO ARC, but when the webhook is received, I get:

I am expecting the User Old Data Roles 0 to be customer there, not arc. As such, my filter to only run this when a role changes from not being ARC to being ARC is failing.
Hey @mikejandreau
Can you please elaborate more on your concern regarding how your roles are changing due to automation and the workflow in which you are testing, so that we can also perform the same steps?
I’m sending a User Updated webhook
In WordPress, I’m changing the role from Customer to ARC, so that I can run a workflow only in that scenario.
When the webhook is received in Pabble Connect the Old Role (which should be the role that was changed and is no longer the current role) is wrong and incorrectly includes the New role. The Role (which should be the new role) is correct.
Let me know if that helps!
Can you please share the workflow URL? A short video would also be helpful.
Workflow URL: https://connect.pabbly.com/workflow/mapping/IjU3NjYwNTZkMDYzNDA0MzA1MjY1NTUzNjUxMzci_pc
Video of issue: https://share.cleanshot.com/t4ShZ2Cx
The User Old Data Roles 0 data here should be Customer (the old role) not arc (the new role)
Hope that helps explain.
The trigger used in WordPress is based on descriptive webhooks and captures whatever data the application sends to us. We do not have control over the data that WordPress sends to Pabbly Connect. Since the data is being sent this way from their end, we cannot do anything about it from our side.
You can try testing this on Webhook.site to check if the old role appears in the 'User Old Data Roles 0' field.