Forum Discussion
Martin_Andersson
May 26, 2022Copper Contributor
No result searching for folder with rest in cloud flow
Hi all
I have a, in my opinion, strange problem. I´m trying to find a folder in SharePoint with a rest call in a cloud flow. When I run the flow the rest call does not find anything, but when I use the site address and uri from the call directly in the browser, everything works fine.
The rest call and the flow are working in my development environment but not in production
Any ideas?
Kind regards
Martin
- So, I found a solution
When using filter on the rest call, ContentType did not work. When I removed it everything worked.
Changed: "filter=ContentType eq 'Folder' and substringof('@{variables('[Prev Quarter]')}',Title)"
To: "filter=substringof('@{variables('[Prev Quarter File Prefix]')}',Title)"
There is still something we need to look at, since "ContentType" is working in our development environment but not i production.
Regards
Martin
- Martin_AnderssonCopper ContributorSo, I found a solution
When using filter on the rest call, ContentType did not work. When I removed it everything worked.
Changed: "filter=ContentType eq 'Folder' and substringof('@{variables('[Prev Quarter]')}',Title)"
To: "filter=substringof('@{variables('[Prev Quarter File Prefix]')}',Title)"
There is still something we need to look at, since "ContentType" is working in our development environment but not i production.
Regards
Martin