
t812g (t812g) asked a question.
Created workflow for sending excel file to office 365 email but sending wrong file. We used same config since 1 year, suddenly changed workflow card behavior.
OneDrive - Search Files or Folders card mentioned Input query file name and output is diff file name. if any faced same issue, let us know , how to fix?
Thank you.

@t812g (t812g) -- The "Search Files or Folders" is calling:
https://learn.microsoft.com/en-us/graph/api/driveitem-search?view=graph-rest-1.0&tabs=http
From the "help" on the Search card you can see it matches the API documentation above:
Okta Workflows is not performing the "Query" it just provides the input for the "query" parameter on the API. The returned results are performed by OneDrive. What I suspect is occurring in your scenario is you are displaying only the "first" result returned and there are likely multiple results being returned by Microsoft for the query.
You can confirm this in two ways:
1) Make a new flow with the search card and return first 200 results. Then input the same value and run the flow. Review results
2) Utilize Custom API Action and perform the query following Microsofts API documentation linked above.
If you are receiving more than one result you may want to leave it at (200) then perform a later "List - filter" on the returned list to pull the object you want.