<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D5KZ00000rLjkP0ASOkta Identity EngineWorkflowsAnswered2026-05-04T09:00:18.000Z2025-05-22T14:13:21.000Z2025-05-30T17:55:24.000Z

t812g (t812g) asked a question.

Excel one drive card sending wrong file to office 365 email

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.


  • TimL.58332 (Workflows)

    @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:

     

    • Card Help: Query text used to search for items. Values may be matched across several fields including file or folder name, metadata, and file content.
    • API documentation: q string The query text used to search for items. Values may be matched across several fields including filename, metadata, and file content.

     

    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.

    Expand Post
    Selected as Best
  • DianaL.19788 (Customer Support Online Community and Social Care)

    Hello @t812g (t812g)​ , thank you for contacting Okta Community.

     

    Do you see any error messages? You can start troubleshooting from there. Please review the following:

    Workflows error messages

    Common Workflows errors

    Workflows known issues

     

    Regards. 

    --

    Help others in the community by liking or hitting Select as Best if this response helped you.

    Collect them all. Learn a new skill and earn a new Okta Learning badge.

    Expand Post
    • t812g (t812g)

      Hello @DianaL.19788 (Customer Support Online Community and Social Care)​  thank you for the response.

       

      I am not facing any error, In "OneDrive Search files or folders" card Query filed what i given and upload files are different. attached screenshot. Can you check and suggest.

       

      Image is not available
       

      Thank you,

       

      Regards,

      Madhu.

      Expand Post
  • TimL.58332 (Workflows)

    @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:

     

    • Card Help: Query text used to search for items. Values may be matched across several fields including file or folder name, metadata, and file content.
    • API documentation: q string The query text used to search for items. Values may be matched across several fields including filename, metadata, and file content.

     

    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.

    Expand Post
    Selected as Best
This question is closed.
Loading
Excel one drive card sending wrong file to office 365 email