May 16, 2023

Reset Auto number field

Not like old versions, Dataverse has the capability of setting auto numbers. Its very flexible and can arrange to auto increment as per any pattern you may like. 


Sometime it is required to reset these numbers. Consider a situation that you are doing a data migration that require testing few times in same environment. In this situation, resetting the Auto numbers could be needed.

What you need to do is change the Seed Value and publish. Then Auto Number is reset. 


May 4, 2023

Workflow to run against BPF entity

Though we do so many Business Process Flows, it is not that common to trigger another workflow when applying the BPF. Well ,it is possible. As we do in other instances, we only have to select the BPF Entity/ Table and you will see below configuration page which is pretty usual.

If look carefully, you will notice quite different trigger events are lined-up. In given example, we have selected Process is Applied and Process Status changes.


One of the cool things you can do is to set active step depending on some conditions (Conditions in the entity record where BPF is defined based on). For example, if the BPF is done on Account entity, we can control which step BPF should jump into based on some fields of Account. 

Caution

Anyway, there is one situation you have to be careful of. In some cases, we write more than one Business Process Flows and create a switching mechanism in JS Script. So record is jumping to correct BPF upon opening of the record.

In this case, if you write a WF against a BPF which is not the default one, pl keep in mind your Workflow which should have triggered for Process is Applied will not trigger immediately. It will trigger only after someone open the record. Obviously, JS will fire only after record is open and then only correct BPF is applied for the first time. Make sense right ?