Files created with same name using graph api does not have same name as file created from files tab in microsoft teams

asaf 6 Reputation points
2022-12-13T15:42:17.277+00:00

Hi All,
When I try to add files with the same name in Microsoft teams using the files tab of teams, it gives me the option to keep both files and when I click on that it adds the new file with the same name and adds a number to it in the brackets like this,
Previous file's name: Test File
New file's name: Test File (1)
I am trying to add files with the same name in Microsoft teams using the graph API. I have set the conflict behavior to @microsoft.graph.conflictBehavior": "rename" but when I try to do it, it just adds the new file with just a number appended at the end like below,
Previous file's name: Test File
New file's name: Test File 1
Is there any way I can use the behavior of the file's tab "Test File (1)" in graph API while creating files with the same name?
Thanks.

Microsoft Security | Microsoft Graph
{count} vote

1 answer

Sort by: Most helpful
  1. Srinivasa Rao Darna 6,766 Reputation points Microsoft External Staff
    2023-01-20T15:19:35.5966667+00:00

    Hello @asaf,

    This is by design and conflict behavior of Teams Files Tab and Graph API are different in nature.

    You share the feedback using our Unified feedback portal, Microsoft Engineering will look into the matters https://feedbackportal.microsoft.com/feedback/ .

    Hope this helps.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.