web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filter Query Checking ...
Power Automate
Answered

Filter Query Checking For Custom PWA Field

(0) ShareShare
ReportReport
Posted on by

Sorry, I am relatively new to Power Automate

I have an List Tasks action that lists all tasks for a Project (which is triggered when a project is published).

patrickmee_0-1651660890170.png

 

Within the body of the data output there may/or may not be a custom field shown in the image below ending "36fcc"

patrickmee_1-1651661333463.png             patrickmee_2-1651661390079.png

 

I want to filter the List to only have entries that have this field set (the field does not exist in the list if an entry has not been recorded).

 

The value for that field originates from a drop down field, but from the square brackets it looks like it is returning an array (?). So the next part of the problem is that I just want a string, not an array (I can later apply conditions on that string).

 

Please can anyone advise

Thanks Patrick

Categories:
I have the same question (0)
  • Verified answer
    shoog Profile Picture
    2,164 on at

    It would be easier to use the ProjectData API than the Project Online connector.

    You could use the "Send an HTTP request to SharePoint" action with URL <yourPWA>/_api/ProjectData/Projects(guid'<projectID>')/Tasks?$filter=<customfieldname> ne null

     

    Advantage of this approach is that you can use the name instead of guid of the custom field and that it will return a string value instead of the array that you see from the ProjectServer API used by the PO connector.

  • patrickmee Profile Picture
    on at

    Thanks shoog. Exactly what I needed. Not sure if GUID needs to be in caps, but for anyone who has the similar situation:

     

    patrickmee_0-1651674160643.png

     

  • shoog Profile Picture
    2,164 on at

    GUID can be in lower case too.

     

    Do you need further help on this? If the suggested solution is working as expected then please mark it as solution accepted. This will help others in the community looking for solutions.

  • patrickmee Profile Picture
    on at

    I could do with help on the next part. I now need to go through each of the tasks in the output to perform further actions. I think that I cannot use Apply to each because the output is an object, not an array, so I assume I need to convert this output to an array? How do I do that?

     

    Thanks

  • shoog Profile Picture
    2,164 on at

    The output contains an array called 'value' that holds all the individual tasks and can be used as input for the apply to each action.

    You can reference it by using

    body('Send_an_HTTP_request_to_SharePoint')['value']

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard