-
Notifications
You must be signed in to change notification settings - Fork 141
Trying to filter DataExtensions using a Client.ID but we get Filter Property 'Client.ID' is not a retrievable property #148
Comments
@garek007 do you know how can we push/filter DataExtensions based on Client.ID |
Not sure if you're still having this issue, but ID needs to be an array. So it's not client.id, you'd set the client property to array like array("ID",820047); or something like that. I think I got it working. If you're still in need I can find the code. |
yes please @garek007, we still didn't sort this piece out, and we have a very inefficient call, retrieving all then filtering with other vanilla code |
Try it like this
This is for creating a data extension, so just pay attention to the part with the client id. You pass Client as a property, not in the filter, then the ID is an array. Another way you should be able to do it is during authentication. Did you know that when you authenticate you can specify a specific business unit?
|
your example is for setting data I want to FILTER on READ, I am not the one who created the Data Extension. I need to read it to see if it has something in it. |
actually, I think I figured it out by using
|
It should be the same though, pass an array. It should work with retrieve. I also have some code for simple and complex filters too, but I don't think they work for this. |
however now I don't know the reason why sometimes there is a function
|
IDK, it's just the way the built the SDK I guess. The way I finally figured it out was by looking at the structure of some soap envelopes. They give you a hint at the code. I saw that ID was nested, and so I tried it with PHP. If you can download one of the free postman collections, it can help you solve some of these things. If it works in the SOAP envelope, it should be the same structure in the code. Also the docs should list the properties that are available as well as the items you can use for filtering.
|
It's been a while, but for retrieving, I think the main thing I used was to pass the MID in the auth call. That should work. (posted above) |
We have this little piece of code
As you see we have 3 variables:
When I run this:
and I frankly don't know how to filter based on the Client.ID the data extensions rows. If I remove the filter row, it returns a bunch of results which noone can tell us from which Client.ID came.
The text was updated successfully, but these errors were encountered: