Hello. I'm trying to get async OnSave to work as discussed here https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/events/fo.... But all my tests indicate that it does not work. The entity is saved before the async function has completed.
I have created the smallest possible solution where this problem is visible. Just 1 entity, it you save the entity a JavaScript event fills in the name field. This event is async, by doing just a simple retrieveRecord. What happens is that the entity is saved with the name field being empty.
I have added the app setting per the description in the Docs. I can also confirm that the setting is available when queried from the OData end-point. So everything seems to be in order on that end. But still the function is not awaited properly. I've attached my solution I'm testing with.
Do you have any idea what could be wrong here?
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
192 | |
67 | |
46 | |
41 | |
22 |
User | Count |
---|---|
247 | |
121 | |
83 | |
76 | |
69 |