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 / $Expand Query using An...
Power Automate
Unanswered

$Expand Query using Annotation table values not returning

(0) ShareShare
ReportReport
Posted on by 225

The goal is to get all Notes associated with a Knowledge Article and put them in a file. I've posted all the expressions I've tried and no values return. I CAN see the annotation details in the Outputs after the List action but cannot return any values for any of the annotation fields using an expression and they aren't listed in the Dynamic content. I've tried several saves and exiting and coming back. Please help, I know this must be a simple solution or maybe this isn't possible, either way I would like to know!

 

rg0173_1-1711398407822.png

 

There is no 'NavigationProperty' for the Annotation table in the Output, only knowledgearticle_Annotations@odata.navigationLink . 

 

Filter rows: specified knowledage article & filter out null annotations

(knowledgearticleid eq '[removed for privacy]') and (knowledgearticle_Annotations/any(o1:(o1/annotationid ne null)))

 

Expand query: knowledgearticle_Annotations($select=notetext,annotationid,_createdby_value,createdon,subject,versionnumber)

 

None of these Expressions work when I put them in the Value of the HTML table:

  • item()?['notetext']
  • item()?['_regardingobjectid_value@OData.Community.Display.V1.FormattedValue'] item()?['notetext@OData.Community.Display.V1.FormattedValue'] item()?['annotations/notetext']
  • item()?['knowledgearticle_Annotations/regardingobjectid_value/notetext']
  • item()?['knowledgearticle_Annotations/notetext']
  • items('Apply to each')?['notetext@OData.Community.Display.V1.FormattedValue']

 

I have looked at several posts in the community/google/youtube but they haven't helped resolve my issue 😞 

 

 

 

 

Categories:
I have the same question (0)
  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @rg0173 

     

    You need to refer the column value as an expression in the form of item()?['<column name>'] in Create html table action. You can get the name of the column from the output of list rows action.

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • JustRhonda Profile Picture
    225 on at

    Thanks for your response, however, I did try an expression, none of these work:

    None of these Expressions work when I put them in the Value of the HTML table:

    • item()?['notetext']
    • item()?['_regardingobjectid_value@OData.Community.Display.V1.FormattedValue'] item()?['notetext@OData.Community.Display.V1.FormattedValue'] item()?['annotations/notetext']
    • item()?['knowledgearticle_Annotations/regardingobjectid_value/notetext']
    • item()?['knowledgearticle_Annotations/notetext']
    • items('Apply to each')?['notetext@OData.Community.Display.V1.FormattedValue']
  • Verified answer
    ameyholden1 Profile Picture
    26 on at

    I think you are looking at this the wrong way round, based on your info I would do - the only expand you need is to the the knowledge article name, provided below - hope this help?

     

    List Rows

    Table: Notes

    Filter: (_objectid_value eq 'xxxxxxxxxxx')

    Expand: objectid_knowledgearticle($select=title)

     

    Create HTML Table

    From: outputs('List_rows')?['body/value']

    Article: item()?['objectid_knowledgearticle/title']
    CreatedOn: item()?['createdon@OData.Community.Display.V1.FormattedValue']
     CreatedBy: item()?['_createdby_value@OData.Community.Display.V1.FormattedValue']
     Note: item()?['notetext']
     

    ameyholden1_0-1711698207200.png

     

    ameyholden1_2-1711698422267.png

     

     

  • JustRhonda Profile Picture
    225 on at

    I knew I needed someone else to look at it and tell me the err of my ways! Thank you so much, that makes a lot of sense. I was already bringing back Article details at the beginning of my flow so didn't think to change it to the inverse. I do still wonder though how it could work as an expand query

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard