0

On my logic app 6 parallel actions will be there each action will maintain different paths on that path year month dates will be there so we did not hardcoded it. Out of 6 parallel actions 2 of the parallel actions will excecute daily so I want check those two files names so how can I apply the condition action on it

James
  • 21
  • 5

1 Answers1

0

To check file name of the uploaded file, you can use conditions like switch.

I have reproduced issue from my side and below are the steps I followed,

  • Created a logic app as shown below, enter image description here
  • In switch, given file path to check the condition. There are six cases in switch condition.
  • In each case, added flow as shown below, enter image description here
  • From the Get file properties action, getting the file name and using it in compose action. enter image description here
  • Ran the logic app and able to get uploaded file name based on given condition, enter image description here
  • Uploaded file in formulas folder and the name of the file is sample3.
  • In this way, you can check file path and get file names based on your flow.
vijaya
  • 1,525
  • 1
  • 2
  • 6
  • Thank you vijaya on get file properties what details can I filed can you give me those deatils – James Mar 15 '23 at 07:09
  • @james you need to take site address, documents (Library name) and id (id of SharePoint trigger) in get file properties action. Refer this document for more information https://learn.microsoft.com/EN-US/connectors/sharepoint/#get-file-properties – vijaya Mar 15 '23 at 09:25
  • On id place i was given as my SharePoint path which is in expression – James Mar 16 '23 at 13:46
  • try with id of previous SharePoint trigger. – vijaya Mar 17 '23 at 11:58
  • Yes in id place i was given as SharePoint id which is populated i n below dynamic content – James Mar 17 '23 at 13:11
  • @james add images of what you tried then only we can sort it out – vijaya Mar 18 '23 at 09:30