cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
shoaibsam12
Frequent Visitor

Update the Key ID in excel when new response was submitted

Hi,

 

I have created a flow in which when a response from MS Form is submitted, a row is added to an excel table with some data from the Form. 

 

Flow issue.png

 I want to update the value in Key ID. For example, my last Key ID was 23 the updated should be 24. 

 

how I can do that

 

Thanks in advance

Cheers

SM

1 ACCEPTED SOLUTION

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

Hi @shoaibsam12 

 

Couple of ways you can do this, 

1. Create a calculation in the column in excel itself such that every cell is the sum of the previous cell value and 1. This way you do not have to update it from flow. 

 

2. Add an action to list rows present in a table. In a compose action use the length function to get the length of items returned on the list rows action. in the key value, use the add function to add the length and then 1 to increment that value. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

1 REPLY 1
yashag2255
Dual Super User II
Dual Super User II

Hi @shoaibsam12 

 

Couple of ways you can do this, 

1. Create a calculation in the column in excel itself such that every cell is the sum of the previous cell value and 1. This way you do not have to update it from flow. 

 

2. Add an action to list rows present in a table. In a compose action use the length function to get the length of items returned on the list rows action. in the key value, use the add function to add the length and then 1 to increment that value. 

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Helpful resources

Announcements
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Users online (1,232)