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 u...
- May 30, 2022So, 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_Andersson
May 30, 2022Copper Contributor
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
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