Question
Accenture
Accenture
IN
Accenture
Posted: Oct 16, 2022
Last activity: Oct 18, 2022
Last activity: 18 Oct 2022 3:27 EDT
Closed
How to Append pagelist without loop
i have Employees Pagelist with 20 pages. i want to evaluate all pages and set Title property as "Mr" if gender property is male. can i achieve it without using ForEachPagein loop in Datatransform. Is there any expression?
@LokeshPolanki I think the fastest query would be to use a for each loop in a data transform regardless. There are other functions that will evaluate true for the first occurence within a pagelist (@IsInPageList) or we can sort the pagelist and iterate it @countInPageList times. Is there any special reason why you wouldn't want to loop over the list?
Also, consider a declare expression to set the salutation that may come from a decision table (we did something like this with the addition of gender neutral salutations). If this has to be done in an activity for all existing employees, that will probably need a queuing mechanism.