cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

When single line is added, send http post

 

Hi everybody, 

I try to submit a http post when a single line is added to a sharepoint list.
In detail: this http post creates a guest account in AzureAD 

What I' like to have: A new line is added (with user data) to the sharepoint list -> this new added user should be created (..and in the next step an invitation-mail is sent by AzureAD)

Whats happening: A new line is added and the flow tries to create all users in this list and all users are getting multiple invitation-mails (even already created ones)

Does anybody know how to solve this?
Thanks in advance!

 

(add. comment: the condition checks if the checkbox is set to true in the column "account active")

2020-01-09 09_38_00-Edit your flow _ Power Automate - Internet Explorer.png

 

2020-01-09 09_48_38-Edit your flow _ Power Automate - Internet Explorer.png

 



3 ACCEPTED SOLUTIONS

Accepted Solutions
Highlighted
Resolver IV
Resolver IV

Re: When single line is added, send http post

Hi @MEiK00 

 

It looks like you are using the Get Items action and this is returning all of the items in the list, if you change it to the Get Item action, you can pass in the ID from the new item that has been created and then perform the condition and http post actions

 

Screen Shot 2020-01-09 at 5.44.01 pm.png

 

View solution in original post

Highlighted
New Member

Re: When single line is added, send http post

Thanks @Gareth1 , I changed step 2 from "Get-itemS" to "Get-item" so I can include the ID.
2020-01-09 09_38_00-Edit your flow _ Power Automate - Internet Explorer.png

 

 

But now there is no dynamic content available for the condition:
2020-01-09 09_48_38-Edit your flow _ Power Automate - Internet Explorer.png

 

Do you know how to redesign the condition?

View solution in original post

Highlighted
Resolver IV
Resolver IV

Re: When single line is added, send http post

Given that the Get Item action is only returns one sharepoint item. You can remove the apply to each loop and add the condition straight after the Get Item action

 

Screen Shot 2020-01-09 at 6.28.04 pm.png

View solution in original post

4 REPLIES 4
Highlighted
Resolver IV
Resolver IV

Re: When single line is added, send http post

Hi @MEiK00 

 

It looks like you are using the Get Items action and this is returning all of the items in the list, if you change it to the Get Item action, you can pass in the ID from the new item that has been created and then perform the condition and http post actions

 

Screen Shot 2020-01-09 at 5.44.01 pm.png

 

View solution in original post

Highlighted
New Member

Re: When single line is added, send http post

Thanks @Gareth1 , I changed step 2 from "Get-itemS" to "Get-item" so I can include the ID.
2020-01-09 09_38_00-Edit your flow _ Power Automate - Internet Explorer.png

 

 

But now there is no dynamic content available for the condition:
2020-01-09 09_48_38-Edit your flow _ Power Automate - Internet Explorer.png

 

Do you know how to redesign the condition?

View solution in original post

Highlighted
Resolver IV
Resolver IV

Re: When single line is added, send http post

Given that the Get Item action is only returns one sharepoint item. You can remove the apply to each loop and add the condition straight after the Get Item action

 

Screen Shot 2020-01-09 at 6.28.04 pm.png

View solution in original post

Highlighted
New Member

Re: When single line is added, send http post

@Gareth1 Thank you very much!!
Everything is working now as inteded!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (9,247)