Problem with setAbortAction(true)

Ana Beatriz1
Giga Expert

 

Is there a way to abort an action on field level and not for the whole record?

For example, we have a Business rules that abort changes on group if the assigned to is not pat of the group.

But if the user changes another field with a valid value, the whole record will not be updated because of the business rule that has way to abort an action just to one field.

I would like to abort the change only for the group, and allow the other fields to be updated without having to save they separately.

Thank you in advance. 

 

1 ACCEPTED SOLUTION

Abhijit4
Mega Sage

Hi Ana,

I think you are trying to find solution in wrong direction, why don't you just show only those users in assigned to field which are part of current assignment group (which is currently in place for most OOTB modules)? if someone changes assignment group after updating assigned to then clear out assigned to field.

With above implementation you don't need to maintain any script to validate assigned to.

Let me know if you have any further queries.

Please mark this as Correct or Helpful if it helps.

Thanks and Regards,
Abhijit

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

View solution in original post

9 REPLIES 9

Abhijit4
Mega Sage

Hi Ana,

I think you are trying to find solution in wrong direction, why don't you just show only those users in assigned to field which are part of current assignment group (which is currently in place for most OOTB modules)? if someone changes assignment group after updating assigned to then clear out assigned to field.

With above implementation you don't need to maintain any script to validate assigned to.

Let me know if you have any further queries.

Please mark this as Correct or Helpful if it helps.

Thanks and Regards,
Abhijit

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

Hi Abhijit, thank you very much for your response! I couldn't agree more. Just proposed using a ref qualifier for that!

Hi Ana,

If my answer helped you to resolve your issue then please mark appropriate answer as correct/helpful based on the impact so that others also can get benefit from it.

Thanks and Regards,
Abhijit

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

Hi Ana,

I can see you have marked other response as Correct.

However, I shared reference qualifier approach first.

Logically my answer should be marked as correct.

Thanks and Regards,
Abhijit

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

Hi Abhijit, sorry for that! Just correct it! Thank you