web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

power app form

(0) ShareShare
ReportReport
Posted on by

hey guy can u kindly assist me here I'm try to build PowerApps form that submit data to SharePoint once the data is submitted it must return last submitted data from the list on the form again if the user is trying to submit another set of data 

my table  these  fields , want the data to be returned to form if total road length <> End Point / km  and assigning the end point /km , date must be blank and end point must be blank as well for the second submission , all the other field must be populated by last submitted  data on the list, I've tried using 

Set(
previous Submission,
If(
previousSubmission.'TOTAL ROAD LENGTH' <> previousSubmission.'END POINT/KM',
LookUp('Internal Blading List', 'ROAD NUMBER' = previousSubmission.'ROAD NUMBER'),
Blank()
)
)

 on visible property of my screen but it doesnt return my data even if i set all my default fields to previousSubmission for example i on road number i would set default property to previousSubmissiom.Road Number  

DateDescription of work being doneRoad NumberTotal Road LengthStart Point/ km End Point/ km Unit of MeasureOutput achievedVehicle/Plant RegistrationHours Worked (if applicable)FuelComments                                                                                                            (In particular to Variance, Corrective Action, Quality and any other pertinent information)
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,059 Most Valuable Professional on at

    Hi @swelihle ,

    I am not totally clear here, but if you want to return the values from the last submitted record

    Set(
     previous Submission,
     If(
     Last('Internal Blading List').'TOTAL ROAD LENGTH' <> Last('Internal Blading List').'END POINT/KM',
     Last('Internal Blading List').'ROAD NUMBER',
     Blank()
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • SL-07111355-0 Profile Picture
    on at

    I'm getting invalid argument type: expected table value instead on these lines - Last(previousSubmission)

  • WarrenBelz Profile Picture
    153,059 Most Valuable Professional on at

    @swelihle 

    What exactly is previousSubmission  - you are setting it as a Variable

  • SL-07111355-0 Profile Picture
    on at

    I've found this solution 

    onVisible of my screen 

    If(

      previousSubmission.'TOTAL ROAD LENGTH' <> Round(previousSubmission.'END POINT/KM', 3),

      Set(

        previousSubmission,

        Last(Filter('Internal Blading List', 'ROAD NUMBER' = Trim(DataCardValue45.Text)))

      ),

      Notify("ROAD IS COMPLETED"),

      Blank() ,

      previousSubmission is a variable that stores data that was previously last submitted , but my challenge here is that even if previousSubmission.'TOTAL ROAD LENGTH' = Round(previousSubmission.'END POINT/KM', 3) , the value from the list are return , instead of displaying road is completed and reset the form for new submission for the next road 

  • WarrenBelz Profile Picture
    153,059 Most Valuable Professional on at

    @swelihle ,

    Glad you have solved it - I was somewhat unclear what you were doing

  • SL-07111355-0 Profile Picture
    on at

    WELL IM DEVELOPING A FORM WHERE USER SUBMIT THE INFORMATION ON MY TABLE , MY USER IS WORKING ON SOME SORT OF ROAD TASK, SO SOMETIMES I CAN TAKE MORE THAN A DAY TO WORK TO COMPLETE TASK , WHAT IM TRYING TO ACHIEVE HERE , I WANT TO ENABLE USER TO HAVE PREVIOUS DATA STORE BY DEFAULT FOR THE SECOND SUBMISSION , END POINT OF PREVIOUS SUBMITED MUST BE STORE ON THE START POINT FORM NEW SUBMISSION SINCE THEY BE CONTENIUNG WHERE THEY LEFT OF AND THE DATE AND END POINT MUST BE LEFT BLANK SO THAT THE USER WILL ENTER THE DATE AND END POINT FOR THE SECOND DAY SUBMISSION 

  • WarrenBelz Profile Picture
    153,059 Most Valuable Professional on at

    @swelihle ,

    Please see amended post

  • SL-07111355-0 Profile Picture
    on at

    WHERE ?

  • WarrenBelz Profile Picture
    153,059 Most Valuable Professional on at

    @swelihle ,

    On the original

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard