Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: Ardim on April 10, 2021, 05:55:59 PM

Title: strattribute1-10
Post by: Ardim on April 10, 2021, 05:55:59 PM
I'd like to search interactions  in UCS for contactId and any (user defined strattributeNN).
The code looks something like this:
        SearchCriteriaCollection scStartAt = SearchCriteriaBuilder.Build(InteractionSearchCriteriaConstants.StartDate,
                                                                                                    Operators.Greater,
                                                                                                    SomeDate);
        RequestGetInteractionsForContact requestGetInteractionsForContact = new RequestGetInteractionsForContact
        {
          ContactId = contact_id,
          EntityTypeId = EntityTypes.Chat,
          SearchCriteria = scStartAt,
          SortCriteria = sortCriteria
        };
But if I add to search any attributes predicate I see error or the same as without attributes predicate result. Did anyone have similar problems and how did they solve them ?
Title: Re: strattribute1-10
Post by: gen_rtfm on April 12, 2021, 09:16:12 PM
Hi,

Are the strattributeNN-fields indexed in ucs?

Do you have any examples of errors to share?

Also: do you have same behavior when performing a search (with same search criteria) from a standard genesys application like WDE? if not, the logs from that application are pretty verbose in how it constructs it's request to ucs.

I haven't had any experience with this myself but that's where I'd look.

Br

Skickat från min Mi MIX 3 5G via Tapatalk

Title: Re: strattribute1-10
Post by: Ardim on April 14, 2021, 05:25:09 AM
Precisely! And how I didn't think of it right away. Reindexed the entire database forcibly and the problem disappeared. Thank you !  :)