AnsweredAssumed Answered

AFEventFrame.FindEventFrames problem in building query string

Question asked by Sasanka on May 11, 2020
Latest reply on May 11, 2020 by Sasanka

FindEventFrames problem in building query.


when query parameter is null below method returns me all the records


AFNamedCollectionList<AFEventFrame> result = AFEventFrame.FindEventFrames(
database: afDatabase,
searchRoot: null,
query: queryTemplate,
field: AFSearchField.Name,
searchFullHierarchy: true,
sortField: AFSortField.Name,
sortOrder: AFSortOrder.Ascending,
startIndex: 0,
maxCount: 100


but when I add any below, no result will be return.

Can anybody please help on this?


AFTime startTime = new AFTime("*-5mo");
AFTime endTime = new AFTime("*");
string query = string.Format("StartTime:'{0}', EndTime:'{1}'", startTime, endTime);

string query = string.Format("Name:'{0}'", "EventFrameName");

string query = string.Format("Template:'TemplateName'");


string query = string.Format("Element:'EleentName'");