sharepoint-onlinesharepoint-designersharepoint-workflow

SharePoint Designer Workflow Item Count


I have created SharePoint designer workflow 2013. I am using REST API to fetch records with filter query as below

[%Workflow Context:Current Site URL%]_api/lists/getbytitle('[%Workflow Context:List Name%]')/items?$select=Title,ItemId,Reaction,Flag&$filter=Flag eq '1'

Now I am using Item Count Action to count the Results but it always give me zero. Kindly help me to solve the issue

enter image description here


Solution

  • You're missing web in your endpoint _api/web/ .

    It's helpful to output the rest api endpoint for troubleshooting so you could test in browser.

    My test demo:

    enter image description here

    enter image description here

    enter image description here