Save data in same rows powerapps/sharepoint

PAWAN CHETTRI 21 Reputation points
2020-10-06T12:50:51.793+00:00

Is it possible to save data(e.g sum,update) in same “row” SharePoint list, every time when we “submitform” in power apps? Currently when I fill my form through power apps and save it, In SP it creates “new row” for every form submits.

Data source- sharepointlist

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,611 questions
0 comments No comments
{count} votes

Accepted answer
  1. Allen Xu_MSFT 13,821 Reputation points
    2020-10-07T09:53:57.54+00:00

    Hi @PAWAN CHETTRI ,

    There are three types of FormMode in Power Apps:
    30618-2020-10-07-175248.png

    If you choose "Edit" mode, it will update the record to data source.So for your issue, please check whether DefaultMode is set to “Edit”:
    You can click your Form in the Tree view -> Select “DefaultMode” from the drop-down list on the top -> check if the mode is “Edit” :
    30609-107-2.png
    If it is not, change it to “Edit” and retry.
    Besides,as your issue is more related to Power Apps, I suggest you to go to Power Apps Community for better help.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. svijay-MSFT 5,226 Reputation points Microsoft Employee
    2020-10-06T13:50:03.923+00:00

    Yes !

    You will have to use the patch function with the look up function in it.

    Sample Command :

     Patch('SPLIST', LookUp( 'SPOLIST', OrderId = OrderId.Text ),   {OrderName: "val1"   } 	)  
    

    As per the above, it tries to update an item in the SPList which matches a specific OrderId.

    OrderId = OrderId.Text  
    

    This is the line which identifies a specific row in the sharepoint that will have to be updated.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.