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

Community site session details

Session Id : MU9sRO7rc8IRAoM0BxxBjv
Power Automate - Building Flows
Unanswered

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

Like (0) ShareShare
ReportReport
Posted on 15 May 2024 20:25:09 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

 

I have the same question (0)
  • admin97 Profile Picture
    2 on 24 May 2024 at 18:15:45
    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 16 May 2024 at 01:33:27
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading started