IsInPageList function implemenation

I have a requirement where I have a customer id and if we give invalid customer id that is not present in pagelist. it should give “Customer does not exist”. Could anyone please help me in implementing this.

Can we use IsInPageListFunctoion to implement this requirement.

@HimajaP37

You can make use of below mentioned function.

@IsInPageList(Param.CustomerID,“CustomerID”,CustomerInfo.pxResullts)

Param.CustomerID = Have your customer id value which you want to validate against list.

CustomerID = This should be property name in which the CustomerIDwill be avail inside the result.

CustomerInfo.pxResullts = This should be the list page in which you need to have your existing customer details.

This function will result true if the CustomerID already exists in the result.

This function will result false if the CustomerID not exists in the result.

Based on the return value you can build your validation.

@Gunasekaran_Baskaran Thanks It is working.