Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Create an flow, which triggers when an email arrives, and delete items from sharepoint list.

(0) ShareShare
ReportReport
Posted on by 2

Hi Team,

 

I'm creating a flow, where it triggers when an email arrives with Subject 'XYZ'. It fetches the details from the email body and compare with each ID value of SharePoint list. If it matches, then it deletes the item from the SharePoint list?

 

I've already created a flow for onboarding where I converted the email body to text, and using split function I differentiated it and update the corresponding value required. But how can I create a flow for delete item from SharePoint list

 

Please, help.

 

Thanks

 

  • admin97 Profile Picture
    2 on at
    Re: Create an flow, which triggers when an email arrives, and delete items from sharepoint list.

    Hi Team,

     

    I've crated a flow on the basis that the user is sending an email with only employee name, 

     

    admin97_0-1716573906031.png

    As, till the condition flow is running perfectly where the condition gets true as the Title field matches with the output from the mail Employee Name. But when I'm adding the title field in Delete Items Parameter. I'm getting error. As, Object ID should be integer.

     

     

    Is there any way possible that the complete row can be deleted on the basis of the condition where Name=Name verifies the condition as true? Or what can be done to achieve what we require?

     

    admin97_1-1716574429332.png

    Please, help.

    Thanks

    Ravikant

  • v-yetonggu-msft Profile Picture
    on at
    Re: Create an flow, which triggers when an email arrives, and delete items from sharepoint list.

    Hi @admin97 ,

    Please check this test:

    My SharePoint List:

    vyetonggumsft_0-1715822568006.png

    My Email Body:

    vyetonggumsft_2-1715822833573.png

     

    My Flow Configuration Parameters:

    vyetonggumsft_3-1715822985089.png

    split(split(outputs('Html_to_text')?['body'],'ID:')[1],decodeUriComponent('%0A'))[0]

    vyetonggumsft_5-1715823052413.png

    @contains(triggerOutputs()?['body/subject'], 'XYZ')

    vyetonggumsft_6-1715823120767.png

    The Result:

    vyetonggumsft_7-1715823185393.png

    Best Regards,

    Sunshine Gu

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1