Topic by Kevin Chen
Content
Hello everyone, I am running AnalyticsReport calling RightRow SOAP API with C#. I got three filters, the first one has "greater than or equals" Operator and "Date Time" Data Type, other 2 are "in list" Operator and "Menu" Data Type. I could get results just running with first filter set with name and value only, when I added other 2 it always returns 0 record.
I looked a lot of similar topics here then added "DateType" and "Operator" parameters of those 2 filters like showed below, it still returns 0 here. I do know I should give IDs instead of values for "Menu" Data Type, and I am also sure those 2 are not hierarchy menus. The IDs I am using are correct since I ran the corresponding values (for same IDs) and the Cloud Interface gave me some records.
// setup the filters "Data Type"
NamedID datatype = new NamedID();
datatype.ID = new ID() { id = 1, idSpecified = true }; //Name: Menu ID: 1
datatype.Name = "Menu";
// setup the filters "Operator"
NamedID filterOp = new NamedID();
filterOp.ID = new ID() { id = 10, idSpecified = true }; // Name: Is In List Operator: IN LIST ID: 10
filterOp.Name = "Is In List";// setup the filter for "Stage"
filter_Stage = new AnalyticsReportFilter();
filter_Stage.DataType = datatype;
filter_Stage.Operator = filterOp;
filter_Stage.Name = "Stage";
filter_Stage.Values = new String[] { "134" };
filterlist.Add(filter_Stage);
// setup the filter for "Status"
filter_Status = new AnalyticsReportFilter();
filter_Status.DataType = datatype;
filter_Status.Operator = filterOp;
filter_Status.Name = "Status";
filter_Status.Values = new String[] { "9" };
filterlist.Add(filter_Status);
I am new to this integration coding, so please leave any comments or errors I have made here, I really appreciate your help, thank you very much! The code and filter definitions are attached below: