cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Code execution logic in formulas

Hello.

 

I'm using Semicolon (";") as a seperator between multiple code executions.

 

Let's say I have the following formula as an example:

 

Patch( Gallery; Defaults(  Gallery ); { ItemStatus: “Added to Gallery” } );

UpdateIf( DataSource; ItemStatus = "Added to Gallery"; { Completed: Now() })

Can I always count on all the gallery items are patched to the data source, before the "UpdateIf" runs?

 

and what would happen if the patch function fails for some reason?

 

Thanks in advance,

Daniel.

1 REPLY 1
Highlighted
Helper V
Helper V

Re: Code execution logic in formulas

The formula will evaulate in chronological order. It will run the patch first and then chain updateif immediately following that. However, if you want them to evaulate simutaneously, the Concurrent function allows for such.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,521)