cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

How to update an existing item in the SP list?

Hello All,

 

I have a sharepoint list and a Microsoft Survey form. I know i can create a flow to create item in SP list whenever an emplopyee submits a response. Here is what i want to do and need help. 

 

I want to create a survey to the new joinees when complete 30 days in the organization to understand what went well and what else need attention.

 

Below is the list i have with employee details and questions same as MS forms.

 

my SP Listmy SP List

I created MS Form with the questions below 

1. Employee ID

2. Please rate your experience during interview process?

3. What else could we have done to enhance our interview process?

 

Question 1: Can i send an automated email to a new employee with a link to the survey form ?

                    Ex: If Sasi join the org. on 1-Sep-19, a mail should go to him on 1-Oct-19 asking him to complete the survey

Question 2: When an employee submits his/her response, it should update against his employee id in the existing list instead                      of creating a new item in SP list. Can this be achieved? ( I tried Update Item from flow, however when I                                      downloaded the SP list, i see that the details were updated against another employee changing his employee id                        but the responses were captured)

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User
Dual Super User

Re: How to update an existing item in the SP list?

 Hi @sasidhar_mudra 

 

1- since you already have a list of all employees with their hire date

you can run a flow which runs on a scheduled basis (daily)

In this flow you can run the get items action 

 

odata query - to get only employees who have been hired 30 days ago (in order to send the survey) use

 

hiredate ge adddays(utcnow(),-30) and dateofsubmission ne null

 

adddays(utcnow(),-30) and null are expressions

 

hiredate and dateofsubmission are internal names of your specific columns

 

 

then you can send an email to your employees matching this criteria with link to the survey

 

2- In the survey (which can be filled out only by authenticated users) 

you can create another flow to run when new response is submitted

you can check who submitted the survey

match it against your list and accordingly update the details

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

 

View solution in original post

4 REPLIES 4
Highlighted
Dual Super User
Dual Super User

Re: How to update an existing item in the SP list?

 Hi @sasidhar_mudra 

 

1- since you already have a list of all employees with their hire date

you can run a flow which runs on a scheduled basis (daily)

In this flow you can run the get items action 

 

odata query - to get only employees who have been hired 30 days ago (in order to send the survey) use

 

hiredate ge adddays(utcnow(),-30) and dateofsubmission ne null

 

adddays(utcnow(),-30) and null are expressions

 

hiredate and dateofsubmission are internal names of your specific columns

 

 

then you can send an email to your employees matching this criteria with link to the survey

 

2- In the survey (which can be filled out only by authenticated users) 

you can create another flow to run when new response is submitted

you can check who submitted the survey

match it against your list and accordingly update the details

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

 

View solution in original post

Highlighted
Helper III
Helper III

Re: How to update an existing item in the SP list?

@RezaDorrani , Thanks a lot for the reply Reza. Though i understand from the highlevel what you were trying to say, since I am a beginner and new to Flow, I request you to show me how to put the below steps in flow (screenshots would be helpful). 

 

Apologies if i am asking too much...

 

Regards
Sasidhar

Highlighted
Helper III
Helper III

Re: How to update an existing item in the SP list?

@RezaDorrani ,

 

Apologies, could not try the solution you provided earlier and it worked smooth. Thanks a lot

Highlighted
Helper III
Helper III

Re: How to update an existing item in the SP list?

@RezaDorrani ,

 

i realised something today that using hiredate ge addDays(utcNow(),-30) is sending email to all the employees in the list instead of only people who completed 30 Days.

 

Also, in the filter query, i am not able to select Hire Date from dynamic content.. not sure why? Is there any work around?

 

 

Thanks

Sasidhar

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (7,977)