[FilterDefinition v2.0] Cannot create a profile filter definition without parameter

Found in

EPiServer.Profiles.Client 1.10.0

Fixed in

EPiServer.Profiles.Client 1.11.0

Created

Aug 28, 2019

Updated

Oct 07, 2019

State

Closed, Fixed and tested


Description

Steps to reproduce:
Send a request to create a new filter definition without parameter.

POST urlFilterDefinitions
{
"Name": "PFD_without_param_randomValue",
"Description": "PFD_without_param_randomValue",
"Query": "Name eq admin@example.com",
"Category": "profileFilterDefinitionCategory",
"Type": "Profiles"
}

Expected:
A new profile filter definition is created successfully.

Actual:
400Bad Request returns.

{
"error":

{ "code": "400", "message": "Property Name does not exist.", "target": "", "details": [] }

}

P/S:

  • No such issue when creating a profile filter definition with parameter in the query

{
"Name": "Info_Email{{randomValue}}",
"Description": "Info_Email{{randomValue}}",
"Query": "Info.Email eq infoemail",
"Parameters":

{ "infoemail": "string" }

,
"Category": "profileFilterDefinitionCategory",
"Type": "Profiles"
}

  • No such issue creating event filter definition without parameter

{
"Name": "PDF_Event_Time",
"Description": "PDF_Event_Time",
"Query": "Events| where EventTime > todatetime('2019-08-25')",
"Parameters": {
},
"Category": "EFD",
"Type": "Events"
}