I am working on a subflow that needs to find every filename of variable character length within a specified PDF file. Each filename is preceded by 'file#:' and is followed by '/', though '/' also occurs in other places within the document. ex: file#: 1234-56-78A/.
So far I have tried the following which is not working:
Parse text for 'file#' stored into FileStartPostions
For each CurrentItem in FileStartPositions{
Parse text for '/' starting at position CurrentItem and find the first occurrence only, store into endOfName
Get subtext starting at character CurrentItem with length CurrentItem - endOfName
}
I am getting an Error saying CurrentItem - endOfName must be an integer.
I'm new to Power Automate, any suggestions?