I have this formula to concat and get the last element after doing a split:-
concat(body('GetRootFolder')['d']['ServerRelativeUrl'], '/', 'Closed','/',last(split(items('Apply_to_each'),'#;')))
but my question is how i can get the 3rd element inside the split array instead of the last element ?