The CreatorCon Call for Content is officially open! Get started here.

Make Assignment group as mandatory Once incident created (Not for new Records)

krithvik
Mega Contributor

Hi,

I have one issue that after incident created some one remove the assignment group as saved,So need to stop this behavior that after incident created assignment group should make assignment group as mandatory for reassignment of queue(Not allowing to save incident with out any Queue).

Kindly help to achieve this.

Note: I don't want to make assignment group field as mandatory in configuration 

 

Thanks & Regards

Krithvik

 

 

7 REPLIES 7

Mohammad Danis1
Giga Guru

Hey Krithvik,

I would suggest you to go with On Before Update Business Rule. Where you can alert an Error Message if assignment group is empty and abort the update action.

find_real_file.png

Under Advanced Tab Script will like the below:

(function executeRule(current, previous /*null when async*/) {

	if(current.assignment_group == ''){
gs.addErrorMessage("Please Select Assignment Group");
		current.setAbortAction(true);
	}

})(

 

If my reply helped with your issue please mark it as Correct & 👍Helpful.

Let me know if you stuck somewhere.

Thank you!!


Kind Regards,
Mohammad Danish

DirkRedeker
Mega Sage

Hi

Let me show you my example (No Code solution) with using a UI Policy:

 

On NEW Records, the field is NOT mandatory:

find_real_file.png

On existing Records:

find_real_file.png

 

Here the UI Policy that I created:

find_real_file.png

Give it a shot and let me know, if that  answery your question and mark my answer as correct and helpful.

Have fun.

BR

Dirk

 

Megha Padale
Giga Guru

Hi Krithvik,

For this you can create ui policy or client script so that you can set assignment group mandatory as per your condition.

If my answer helped you in any way, mark answer as helpful and correct.

Thanks and regards,

Megha.