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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Refresh the data in Da...
Power Apps
Suggested Answer

Refresh the data in Data preview table after inserting the data

(0) ShareShare
ReportReport
Posted on by 26
using custom connector in power apps to insert and read data from power apps to databricks table.
in one screen by entering values in text box on submit button click inserting data into databricks table. After clicking on submit button, a pop displayed data inserted and redirect to another screen. in this screen having data preview table to show the inserted record.
how to show the record in this screen, when move from screen1 on submit button click to screen2.
 
if using sql table, Refresh(table1) is working, but how to achieve this using custom connector.
 
it will be very thankful for having the solution.
Categories:
I have the same question (0)
  • Suggested answer
    Rajkumar_M Profile Picture
    3,747 Moderator on at
     
    A custom connector is just a function call, so PowerApps does not automatically re-query it. You must call the connector again and bind the result to a collection or variable.
     
    1. On Submit button (Screen1)

    After inserting the record, immediately call the GET API (or pass the inserted record id) and navigate.

    Set(
        varInsertResult,
        CustomConnector.InsertRecord(
            {
                name: txtName.Text,
                age: txtAge.Text
            }
        )
    );

    ClearCollect(
        colPreviewData,
        CustomConnector.GetInsertedRecord(varInsertResult.id)
    );
     
    Navigate(Screen2)
     
    2.Instead of fetching during submit, fetch when Screen2 loads.
    Screen2 → OnVisible
     
    ClearCollect(
        colPreviewData,
        CustomConnector.GetInsertedRecord(varInsertResult.id)
    );
     
    Thanks!
     
    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.
     
     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard