You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
Describe the bug
When retrieving ETQueryDefinition properties via ETQueryDefinition.Get(), the results all have CategoryID = 0, despite including "CategoryID" in the Props property prior to call.
// not working code, just to illustrate situatioon
ETClient client = new ETClient() // id/secret properly set up and working;
ETQueryDefinition finder = new ETQueryDefinition
{
Props = new[] { "Name", "CustomerKey", "CategoryID" }
};
GetReturn ret = finder.Get();
if (ret.Status)
foreach(ETQueryDefinition q in ret.Results)
Console.WriteLine(q.CategoryID)
Now I do not know if this is just me or for everyone else. I could not find anything on the web regarding this issue.
The text was updated successfully, but these errors were encountered:
@barokzi : I just opened a similar issue for ETQueryDefinition, as I did not see yours before (#95)
The Get() and Post() seems to not be handling CategoryID
Did you find a workaround by any chance ?
@GDU-SF
Unfortunately, no I did not have a work-around. My use was read-only however, so I did not have the issue with creating (in the wrong folder), so my "work-around" was knowing what the 'folder'/category-id ahead is. My application was more for browsing so I had the luxury of preloading the directory.
I did implement a search function so what I did was the search each subfolder (starting from the "current/selected" folder) for the ETQueryDefinition object (based on text filters), and each subfolder of those and so forth. Time consuming for the user as well.
Having the Category_ID returned by the .Get() would have been the better solution.
On another note: I think this issue was my very first posting and did not know how to fill the fields - my apologies with the issue title. I might need to fix that, probably why it did not get any attention.
barokzi
changed the title
[BUG]
[BUG] Category_ID not returned for GET on ETQueryDefinition objects.
May 21, 2021
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
When retrieving ETQueryDefinition properties via ETQueryDefinition.Get(), the results all have CategoryID = 0, despite including "CategoryID" in the Props property prior to call.
Now I do not know if this is just me or for everyone else. I could not find anything on the web regarding this issue.
The text was updated successfully, but these errors were encountered: