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 Platform Community / Forums / Power Apps / PowerApp access Dynami...
Power Apps
Answered

PowerApp access Dynamics 365 data on form but have offline mode.

(0) ShareShare
ReportReport
Posted on by

Hello,

I just started working with PowerApps last week. I was able to create an Events Lead app to collect data we need and feed our Dynamics 365. We like the options and that we could prefill some data fields. We believe we can collect data quicker then Dynamics Quick Create form.

I have been able to make the phone app and create an online only version. I was even able to take the phone version and convert it to a tablet version with some information I found. My problem is now I would like to look at an offline mode. I figure conventions can have hit or miss signal. Not waiting for a good connection may be best. 


I found articles on using a collection to capture offline data https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/offline-apps . I have been unsuccessful getting the collection to work with our data. I was using an editform with SubmitFrom()

If( Connection.Connected,
    SubmitForm(Form1_1),
    Collect( LocalEventLeadsToPost, Form1_1 );
        SaveData( LocalEventLeadsToPost, "LocalEventLeadsToPost" )
);

I believe this is where I may have to make a change or possibly something on each datacard. 

 

Thank you,

 

Brant 

 

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    on at

    HI @Anonymous ,

    Do you want to save your form data into the collection ('LocalEventLeadsToPost' collection) when the connection miss signal?

     

    Based on the formula that you mentioned, I think there is something wrong with it. I have made a test on my side, please modify your formula as below:

    Set the OnSelect property of the "Submit" button to following:

    If(
    Connection.Connected, SubmitForm(Form1_1), Collect(LocalEventLeadsToPost, Form1_1.Updates); /* <-- Modify formula here. Please type Form1_1.Updates formula */ SaveData(LocalEventLeadsToPost, "LocalEventLeadsToPost") )

    Then if you want to load the cached file into a collection within your app, please take a try with the following formula:

    LoadData(LocalEventLeadsToPost, "LocalEventLeadsToPost", true)

    More details about SaveData and LoadData function in PowerApps, please check the following article:

    SaveData function and LoadData function

     

    More details about creating an offline app within PowerApps, please check the following video:

    https://www.youtube.com/watch?v=aIwbcCag9B4

     

    Best regards,

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard