Forum Discussion

JeroenLaurijsen's avatar
JeroenLaurijsen
Copper Contributor
Mar 06, 2019

When I deleted item in first SP list, I want to update an item in the second SP list (with Flow)

Hello everybody,

 

I have 2 SharePoint lists in my SharePoint online environment:

- Training

- Enrollment

 

In the Training list I have trainings with a name and a field call "number of free places" standard it's 15 spots. When a person will register himself in the Enrollment list for a training (Training 1) the number will be count to 14. And when a second person will register himself in the Enrollment list for Training 1 the number will be count to 13. This part is working with a flow I created in Microsoft Flow.

 

When a registered person (= list item) is deleted in the Enrollment list, the number of the free spots for that Training in the Training 1 list must be again + 1 (so in this case again 14 of 15). I don't have this part working with a flow in Microsoft Flow. Is there anyone who can help me with this problem?

 

Kind regards,

 

Jeroen

3 Replies

  • Kalpesh_Vaghela's avatar
    Kalpesh_Vaghela
    Copper Contributor

    You can create flow in your Enrollment list which will fire when item is deleted and there you can implement logic to reset count.

     

    Hope it will help you.

     

    • JeroenLaurijsen's avatar
      JeroenLaurijsen
      Copper Contributor
      Hey Kalpesh,

      That's correct. That is the first step of my flow I need to create. But what are the steps after that? When you want Update an item after a Delete an item step, you can't get the properties of the item you want to update.

      Can you help me or anyone else help me with this flow?
      Kind regards,

      Jeroen
      • JeroenLaurijsen's avatar
        JeroenLaurijsen
        Copper Contributor

        Hello everybody,

         

        I know the first step of the flow "When an item is deleted", what will be the next steps to update the item in an other list? I hope that anyone can help me with this problem.

        Kind regards,

         

        Jeroen Laurijsen