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 / Error - doesn't belong...
Power Automate
Answered

Error - doesn't belong to the targeted mailbox

(0) ShareShare
ReportReport
Posted on by 9

Hi,

 

I am a complete novice to Power Automate and have tried to set up a flow for the purpose of auto-deleting spam emails from my junk mail, following the steps set out here:

 

https://ivasoft.com/deleteitemsinjunkfolderflow.shtml

 

However, the flow hasn't worked and I get the following error at the "Get emails (V2) to get Sent items folder ID (parameter)":

 

Item 'AQMkADAwATNiZmYAZC05YmFkLTg1NmUtMDACLTAwCgAuAAAD4FA3Y0gyLUWFtW9tnixqagABAMQsBfJLMBdNqsH_qr2dAksAAAIBCQAAAA==' doesn't belong to the targeted mailbox '00011cb7-4c53-a87d-0000-000000000000'.
clientRequestId: 21264ec6-2cc2-4c5a-81bb-8450317f5aaf
serviceRequestId: 48d6d9b8-14e9-f24d-2159-b97f1f3ec4da

 

There is also the following error shown at "Compose Inbox folder ID":

 

InvalidTemplate. Unable to process template language expressions in action 'Compose_Inbox_folder_ID' inputs at line '0' and column '0': 'The template language expression 'actions('Get_emails_(V2)_to_get_Inbox_folder_ID_(parameter)').inputs.parameters.folderPath' cannot be evaluated because property 'inputs' doesn't exist, available properties are 'name, startTime, endTime, trackingId, clientTrackingId, clientKeywords, code, status, error'. Please see https://aka.ms/logicexpressions for usage details.'.
 
I would be grateful if someone can help me resolve these issues. Hopefully it is down to me being a rookie and is simple to fix. I am happy to provide more info if required.
 
Many Thanks,
TE
Categories:
I have the same question (0)
  • Verified answer
    The_Enforcer Profile Picture
    9 on at

    Hi,

     

    I don't know what happened, because I didn't change any settings, but the flow started working when I tried testing it again and it has since worked on spam that has arrived in my junk folder.

     

    Cheers,

    TE

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
David_MA Profile Picture

David_MA 245 Super User 2025 Season 2

#2
Expiscornovus Profile Picture

Expiscornovus 207 Most Valuable Professional

#3
trice602 Profile Picture

trice602 190 Super User 2025 Season 2

Last 30 days Overall leaderboard