Hello everyone,
Can Business Rule applied or run after form load ? So I have a needs whereby, my field will only set to be mandatory, when the record is saved on the 1st time. For example : I'm creating new record, in one of the field lets say "Description", is not mandatory, user can save this new record. But after 1st saved, I want this Description to be mandatory. Problem is I have a Javascript to make an autosaved at first time the form load.
In my head, I would think like this :
Is this make sense ?
Well, I tried like that, but it's not working, because it's looks like when it is saving (my java script to auto save running) then in that instance, the field "Description" is mandatory, so it is already return error.
Kindly advice whether it's possible to make the business rule run after form load, so my data will be saved first then displayed fully on the screen, then right after that my field become mandatory. So only at the 2nd time and after, when user click save, it will throw message that field is empty.
Thanks
Hi @Axal,
It's not working because business rules run on load (no guarantee of the execution order) and after a field referenced in the business rule changes. So what @rampprakash is suggesting won't work. If you absolutely need logic after a save event then you'll need JavaScript to register a function on post save event: https://docs.microsoft.com/powerapps/developer/model-driven-apps/clientapi/reference/events/postsave
Hope this helps!
Hi @Axal,
Please find the sample screenshot for business Rule for your reference.
Please mark as Answer if it is helpful and provide Kudos
Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
Blog : https://microsoftcrmtechie.blogspot.com
I think you might be using
Hi @rampprakash ,
I'm sorry, what should I check on the entity ? and what is entity type to form ?
Thanks
Hi @Axal,
Can you please remove all your existing logic and check the Entity type to form and tray again.
Hi @rampprakash
Unfortunately, it is not working. With that rule, when my form load, it already give me error saying "Description" is empty.
The form not shown first.
Thanks,
Hey @Axal,
Please try this logic in Business Rule
Condition :
If CREATEDON contains Data
Set Description field as Mandatory
Else Description field not Mandatory
Createdon Field will only store values if record gets created.
Please mark as Answer if it is helpful and provide Kudos
Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
stampcoin
15
ankit_singhal
11
Super User 2025 Season 1
mmbr1606
9
Super User 2025 Season 1