Started with a convert file to PDF template, and the "File name" property works fine. Then I want to make slight in-line change to filename, so I use the replace function, then attempt to use the same file name property as first argument of the function. it immediately switches to advanced mode with this text:
replace(triggerOutputs()['headers']['x-ms-file-name-encoded'],'.mht','')
The problem is that the reference does not return the value expected. I'm assuming the problem is the encoded variation, but I don't get a pick list, it just assumes i want encoded. How do I specify the (nice, readable) value that was used in the next part of the pipeline without the function?