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 Platform Community / Forums / Power Apps / Deleting Item after va...
Power Apps
Answered

Deleting Item after validation

(2) ShareShare
ReportReport
Posted on by 53

Hello, 

 

I am new at developping via Power apps and Automate so this might look a stupid question, but I can't seem to find the answer on the forums.

 

My app is a simple app based on a Microsoft Sharepoint List

I am trying to creat a very simple flow via power apps : when clicking the button " delete" on the detail screen, I want to trigger a Flow that will ask approval to someone. Upon approval, i want the line to be deleted. You will find attached my current flow. 

I can't seem to be able to tell the Flow what item to delete. 

I tried different way to identify the field i need to be deleted but nothing worked.

 

Thank you in advance for your help or recommandations.

 

Thomas

 

image.png
image.png
image.png
Categories:
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @tomap 

    1. Make sure the Flow has the Trigger "PowerApps" or similar

    2. From Dynamic Content select "Ask in PowerApps"

    poweractivate_0-1690903708541.png
    Repeat step 2 again for each additional argument you want to show in the Canvas App formula bar (see Step 5 below for how this looks)


    3. Be sure a "Respond to Power Apps or Flow" block is present in the Flow.

    poweractivate_0-1690904199398.png


    4. Add the Flow to the Canvas App

    poweractivate_1-1690904341396.png

     

    5. In Power Fx Formula bar when using the function, be sure to pass in the argument to identify what you want to delete.

    poweractivate_2-1690904385388.png

     

    Hope it helps @tomap 

     

  • Devvj Profile Picture
    1,132 Super User 2024 Season 1 on at

    Hi, 

    Im writing on my phone so having alittle reouble giving long answers, but in short you could send the ID as a parameter when you trigger the flow in powerapps, just add a new text input called ID in the trigger in Power Automate, then send the ID in the Run() function.

    (remember to refresh the datasource/flow after you added the new parameter.)

     

    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

  • tomap Profile Picture
    53 on at

    Thank you for your reply ! 

     

    So I do have the trigger  Powerapps, but when adding the step I do not find ask in powerapps

    image.png
  • tomap Profile Picture
    53 on at

    Hello, Thank you for your reply ! 

     

    I did try that actually, but I cannot call the item ID as dynamic content in the delete step.

     

    regards,

    image.png
    image.png
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @tomap 
    It should be there, otherwise you are having an issue here. 


    Please try the following tests:
    1. In your Flow add a new Compose Block, go to Dynamic Content, and see if Ask in PowerApps is there.
    2. In a temporary brand new Flow, add the PowerApps trigger, add a Compose block to test

    If #2 works and #1 does not work, it could be the following issue


    According to @v-qiaqi-msft in How many parameters can be passed from powerapp to powerautomate? 

    You may see the issue is not how many parameters may be declared in the Power Automate cloud Flow, or how arguments can be passed in to the Cloud Flow from the Canvas App Fun function, but rather, that you are trying to change the function signature (edit the Cloud Flow) after it has already been defined. 

    Note however they posted that in 2022.

    I tested it now. I still get the Ask in PowerApps showing even after I added it to the Flow.

    poweractivate_1-1690905223157.png

     

     

    Besides this, as long as I click ellipses and refresh near MyFlow on the left side under In your app, and then I delete the word Run from Power Fx formula bar and add it back, the arguments I can pass in actually update. I don't need to delete and add the Flow. 

    poweractivate_0-1690905201426.png

    The functionality may have been improved here since 2022, since the issue @v-qiaqi-msft described in Aug 2022 is not present now when I test it in August 2023.

    For your case @tomap If issue persists, I recommend you

    A. Close the Power Automate Cloud Flow Editor and then sign out and then close the browser.
    B. Open the browser and sign back in and open the Flow for editing
    C. Issue persists? Clear the whole cache and cookies, close the browser, and try again.  f you have a spare browser, use that one. So if you are using Edge now, use Chrome. If you are using Chrome now, use Edge, for example. If you happen to have a spare backup computer to test on, try that as well.

     

    See if it helps @tomap 

     

  • Devvj Profile Picture
    1,132 Super User 2024 Season 1 on at

    Hi @tomap 

    Edit:
    I get that same behavior when i test it fast, you could put a "Compose"-action in between your Trigger and the Delete Action to hold the ID for you, since the compose output works as dynamic content, atleast here.

    Devvj_0-1690906214922.png

     

    And trigger the flow like such:

    Devvj_0-1690906512248.png

     

    (Remember to run a refresh on your flow in powerapps after you added additional parameters)

    Devvj_1-1690906572870.png

     

     

    Also, the "Link to Item" is not the ID, i think the ID property in Sharepoint is in fact just called ID 🙂

     

     

    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

  • tomap Profile Picture
    53 on at

    @poweractivate 

    I see why i had not the same screen : you are using trigger PowerApps where I am using PowerAppsV2.

     

    I think the steps you are detailing are already integrated in the V2 

    tomap_1-1690906634678.png

     

    Here I declare all my arguments.

     

    what I do not succeed in, is calling the variable item link in the step that follows " delete sharepoint item"

    when I click there are no dynamic content proposed.

     

    Maybe you are telling me that this is not possible in PowerAppsV2 ?

     

  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @tomap 

    You should be passing that in to the NameOfYourFlow.Run as one of the arguments that you clicked "Ask in PowerApps" on in the Flow.

    When you use a PowerApps trigger, the Ask in PowerApps should always be there. If you continue to have that issue, that's where your first problem is, you should use the steps I gave before to try and fix that first. As a last resort if it only works from a new Flow you may have to recreate it. However note I was able to see Ask in PowerApps on a test, even after I added the Flow to the Canvas App, and I was even able to add more parameters in the Flow, click ellipses -> refresh, delete the word Run and type it again, and I was able  to then pass in more arguments on same Flow without recreating it.

    If you do not even see the option "Ask in PowerApps" in Dynamic Content this is where the first problem is and you should resolve it before continuing. 

    Also I do not get the behavior @Devvj describes and I am able to see "Ask in PowerApps" and I am also able to use any of the previous values that I populated before again in any other kind of action block without the need of any workaround to use any Compose block.

     

    For both of you @Devvj @tomap you do not seem to be getting the correct out of the box behavior, if the issue persist I recommend to make a support ticket here and ask Microsoft why you got the issues.


  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @tomap 

    I think it should be possible in both. However if you are having issues it may be worth checking in PowerApps (not v2) and see if you have less of an issue there. If you have less issues there, you may want to use that one, however it should be possible in the V2 one too. If not I recommend you report it as an issue here but first check thoroughly as I think it's possible.

  • tomap Profile Picture
    53 on at

    Okay I will try both of the recommendation (because i seem to have the same behavior as Devvj) and keep you updated the soonest.

    Thank you already.

     

    Regards,

    Thomas

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard