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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

Get O365 Messages

(0) ShareShare
ReportReport
Posted on by 53

Hello,

 

I am trying to get the O365 Messages into a SharePoint List but I receive an error, and I cannot find any solution.

 

Can you please help me ?

Categories:
I have the same question (0)
  • Claudiu Profile Picture
    53 on at

    error.PNGflow.PNG

  • v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @Claudiu ,

     

    Could you please provide the outputs of the ReadMessages Action?

    It seems that not an array, Apply to each Action requires an array as input.

     

    Based on the screenshots you provided, maybe you could try using the expressions like this:

    outputs('ReadMessages')?['body']?['Id']
    outputs('ReadMessages')?['body']?['Messages']

     

    vyujincuimsft_0-1646297598724.png

     

     

    Best Regards,

    Charlie Choi

  • Claudiu Profile Picture
    53 on at

    Thank you for your response and for your time.

     

    I am receiving now this error : 

     

    test.PNGtest2.PNG

  • v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @Claudiu ,

     

    If it is convenient, could you post the outputs of the ReadMessages Action in the reply? Taking care to change the sensitive information to other values.

     

    Best Regards,

    Charlie Choi

  • Claudiu Profile Picture
    53 on at

    I can show you the output from the custom connector that I made : 

    output.PNG

    The output is the same but raw data.

  • v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @Claudiu ,

     

    Try to use the following expressions:

    outputs('ReadMessages')?['body/value']?['Id']
    outputs('ReadMessages')?['body/value']?['Messages']

    or

    outputs('ReadMessages')?['Body/value']?['Id']
    outputs('ReadMessages')?['Body/value']?['Messages']

     

    Best Regards,

    Charlie Choi

  • Claudiu Profile Picture
    53 on at

    test.PNG

  • v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @Claudiu ,

     

    You can select the dynamic content 'Body' , so can you select the dynamic content 'value' ?

    If so, you could try to use value as the input to the 'Apply to each' Action.

    vyujincuimsft_0-1646364296110.png

    If not, you could try to use the following expression:

     

    outputs('ReadMessages')?['Body/value']
    item()?['id']

     

    vyujincuimsft_3-1646365287773.png

    In addition, you could add a Compose Action to check if the outputs is correct.

     

    Best Regards,

    Charlie Choi

     

  • Claudiu Profile Picture
    53 on at

    I really appreciate this help.

    1.PNG

    2.PNG

  • v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @Claudiu ,

     

    Could you please provide your expressions? The function 'item()' must not have any parameters.

    vyujincuimsft_0-1646375103589.png

    item()?['id']   √

    item('id')       ×

     

    Best Regards,

    Charlie Choi

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 598

#2
Valantis Profile Picture

Valantis 477

#3
Vish WR Profile Picture

Vish WR 370

Last 30 days Overall leaderboard