Hi Guys,
I am new to Power automate and I have this problem statement where
I have 6 country files which needs to be stored in sharepoint doc lib through flow which is getting triggered from App. but the catch is I have folder structure of these 6 Countries in sharepoint site and these 6 files go to respective folders.
For Ex:
Countries - Malaysia;Oman;Pakistan;Philippines;Switzerland;US - Deer Park
Country Abbriviation - Malaysia;Oman;Pakistan;PSPC;SBI;Deer Park
(County and country abbrivition above stored in sequence)
Country Abbriviation - File name contains these keywords then it should got to that country folder.
This can be easily achievable if I hard code these values in flow.
but going forward in future there might be more countries and I need to change the flow everytime.
So I stored these country and country abbriviationn in sql table and read those values applied split and stored values in variable.
but now I am stuck here how to apply each file compare its Abb and sent that file to exact country folder.
For Every file I have to compare its name with country abbrivition. if name contains Abb then it should go to respective country folder.
Any solution, Way of approach to this problem would be appriactied.
which datatype variable should be used how to do it.
Thanks