URL parameter not being replaced in the API Connector

I have a POST request created using the API Connector as seen here:

I then call this POST request in a backend workflow as seen here:

However, for some reason, no matter what I do, the URL parameter customer_id is never overwritten from the default value that I chose when creating the POST request in the API Connector (although the bearer token replaces just fine). I’ve tried removing the default value, changing what I do in the workflow, and for some reason it always uses the default value (here are the logs):

Can anyone help me understand why the default value is not being overwritten in my workflow?

You should do a console.log on your item that you’re trying to search for (assuming you have a plugin for this or you can use my plugin) and add in the ID with it. If it doesn’t come back as anything, that just means you have a filtering problem. The reason this is happening typically means it’s defaulting to that value because it’s not finding a value to work with.

Let me know how that goes.

Yeah, what @GH5T said.

-Make sure that user actually has a value in that SphereMailCustomerId field
-Make sure you check the checkbox to ignore privacy rules in the backend workflow
-Check out your search constraints.
-Try to just copy that expression and put it in a text field and see if it’s not empty

Yeah the fact that I haven’t been able to console log has caused a ton of wasted time. Thanks for the plugin – I will try that

Your plugin doesn’t allow you you to console.log in a backend workflow though, does it?

Edit: oh my god it does – wanted this forever!

1 Like