Legacy Dev Forum Posts

 View Only

Sign Up

Treat an Array in architect

  • 1.  Treat an Array in architect

    Posted 06-05-2025 18:43

    fernanda.dapper | 2021-05-17 15:12:51 UTC | #1

    Hello,

    We would like to know your opinion on how to move forward with a task we are no able to understand how to do it. We have an arraylist coming from the action and we need to iterate over this array to grab a specific value. Ex.: { "todList.creatorUser": [ "trip.companion", "cancellation.module" ], "todList.id": [ 4628088, 4828402 ], "todList.todTypeId": [ 782, 723 ], "todList.creationDate": [ 1615387217000, 1619098493000 ] }

    Apart from iterate on the values we also need to create a comparison with the creationDate which we already did. We defined a parameter in a data table (Flow.iUnoTodThreshold) and compare with the current date and the creationDate Task.currentDate <= AddDays(Task.createdTODDate, Flow.iUnoTodThreshold)

    We tried to add a loop and count the TypeID thinking that this could iterates into the Array but what we see is that it counts the values but it does not recognize them and in the Decision block it always goes to the Failure block.

    Could you suggest how we can do it? We thought about using the FindFirst and GetAt but we are not clear on that... We are happy to share more information if it is needed.

    Thanks


    system | 2021-06-17 15:21:40 UTC | #2

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 10936