The below snapshot of my flow works WITHOUT the 2 actions in the red box.
Basically, the flow looks at a newly created file and performs an action (post to Teams channel) based on parameters of the file name; i.e., 'x-ms-file-id'.
If 'x-ms-file-id' contains 'Fee' AND contains pdf then x
If 'x-ms-file-id' contains 'Billing' AND contains xls then y
etc. . .
Worked beautifully . . . then I got greedy and wanted to include a sharing link to the file in the post to Teams channel.
When I added the 2 actions in red box (Create sharing link & Compose) the condition automatically changes to 'apply to each'.
I don't want to look at all the other files, only want to look at the newly created file.
As well as the dynamic content options seem to change ('x-ms-file-id' is no longer an option) and I have yet to find a dynamic content that will allow me to look at the file name to make my comparisons.
There must be a way around this, perhaps extrapulating the filename (with extension) of the newly created file right after the trigger and then using that string/variable (not sure of the correct syntax) in my conditions?
