validate the flow of file creation in sharepoint

Ananya Dixith 101 Reputation points
2022-05-20T15:51:00.33+00:00

Hi,
Im working on simple flow, I want validate the flow

Im trying to create file in Sharepoint through logic app.
I can able to create file in sharepoint, but how validate the flow if the file is already exists in sharepoint.

How to handle the error status: 400

204221-image.png
204167-image.png

raw output
204168-image.png

Please help me out.,how to handle this error

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,839 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,607 questions
0 comments No comments
{count} votes

Accepted answer
  1. Kamlesh Kumar 3,861 Reputation points
    2022-05-20T18:31:15.167+00:00

    Hi There,

    Thank you for asking this question on the Microsoft Q&A Platform.

    Before Create file check if file is present in SP folder. You can use 'Get files' for that. I tried to create the same scenario for you and hope this could help you,

    Flow could be look like,

    Condition filter -- length(body('Get_files_(properties_only)')?['value'])

    204242-image.png

    LogicApp Run Result if incase file is not present,

    204183-image.png

    LogicApp Run Result if incase file is present,

    204237-image.png

    Regards,
    Kamlesh Kumar
    BizTalk Techie

    If this answer solved your problem, please click the Verify Answer button (found below the answer) to help other users who have the same question.

    0 comments No comments

0 additional answers

Sort by: Most helpful