Question9Replies7170Views DilipanV105 Member since 2012 144 posts Atos Syntel Posted: 4 years agoLast activity: 2 years 8 months ago Closed Solved Have anyone used IsPageListEmpty() function ?I need to create a when condition which would check if a pagelist is empty or not. i can see there is a function named IsPageListEmpty which has three arguments.does anyone know what values should we have to pass to these arguments.@Utilities.IsPageListEmpty(tools,aPageListRef,aPropName)tools - ?aPageListRef - ?aPropName - ?**Moderation Team has archived post**This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post. Decision Management ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 4 years agoUpdated: 4 years agosahup1 PEGA replied to DilipanV105@Utilities.IsPageListEmpty(tools,aPageListRef,aPropName)tools - Current Exceution ContextaPageListRef - name of page list propertyaPropName - property name of interest in the the pagelistalso please refer if be of use/help. RULE-UTILITY-FUNCTION UTILITIES PXREMOVEEMPTYPAGESFROMPAGELIST Posted: 4 years agoSathishSenthil replied to DilipanV105Instead you can use this RUF to get the size of the pagelist @(Pega-RULES:Utilities).LengthOfPageList(pagelistpropertyname)It should return 0 if its empty. Posted: 4 years agoDilipanV105 Atos Syntel replied to SathishSenthili used @(Pega-RULES:Utilities).LengthOfPageList(pagelistpropertyname) in a when rule and mentioned it in an activity. it throwed the below error when it tried to evaluate the when rule.The Flow Action pre-processing activity "activity name" failed: cannot be null or blank. page: "page list name".Details: Invalid value for aReference passed to com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.getProperty(String, char). Posted: 4 years agoPrakash. Process 360 replied to DilipanV105If it is a top level page, mention pxResults like below@(Pega-RULES:Utilities).LengthOfPageList(Testing.pxResults) Posted: 2 years agoMartinD6420 Charles Schwab & Company Inc replied to DilipanV105I used this to check if PageList is empty. @(Pega-RULES:Utilities).LengthOfPageList(.PageListName) == 0 Hope it helps. Posted: 4 years agoDilipanV105 Atos Syntel replied to DilipanV105Is there any other way to check if a page list is empty ? Posted: 4 years agoericosman_GCS PEGA replied to DilipanV105It sounds like it would be useful to track down why you are getting the error you reported. If you paste some snapshots showing both your design and the tracer clipboard values, we can take a look. /Eric Posted: 4 years agogousp-1 PEGA replied to DilipanV105Hi Dilipan,I would take a look at the OOTB activity pzGetApplicationCompletionPercentage, which does use the utility function in the when rule pyDoBusinessObjectivesExist in step 5. Accepted Solution Posted: 4 years agoDilipanV105 Atos Syntel replied to DilipanV105The highlighted condition is the below screenshot worked, i used the condition to check if the length of the page list is equal to 0 and it worked.