Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Translate the entire conversation x

Is it Possible to customize the Revise action ok button to generate Custom Conflict Event?

TDT
15-Moonstone
15-Moonstone

Is it Possible to customize the Revise action ok button to generate Custom Conflict Event?

Hi,

I have few checks need to be done when user revises the object.

But the checks are just to inform the user, it can be ignored.

I wanted to generate custom conflict event when user clicks on revise, if the checks are failed, I need to show the check failed on event management window where user can ignore the warning and proceed.

Is it possible to achieve?

ACCEPTED SOLUTION

Accepted Solutions
d_graham
18-Opal
(To:TDT)

@TDT 

You are correct.  If the listener throws an exception the action does not get persisted.

 

What you need is a "FeedbackMessage" that can be generated using the Data Utility that is run OOTB during the action in question, in the case Revise.

View solution in original post

4 REPLIES 4
avillanueva
22-Sapphire III
(To:TDT)

Yes, very easily and I just did one. You want to create a Listener service on the Revise action. Here is where you can insert your custom logic, what objects to filter on and your rules. If those rules are violated, you simply throw a WTException message that will send a note back to user as to what was wrong. 

TDT
15-Moonstone
15-Moonstone
(To:avillanueva)

HI @avillanueva,

 

Thanks for the Solution.

Throwing WTException message will not allow the user to revise right?

The Idea is to show the errors on UI to the user, the user should be able to revise without fixing the error.

Its optional to fix the errors.

d_graham
18-Opal
(To:TDT)

@TDT 

You are correct.  If the listener throws an exception the action does not get persisted.

 

What you need is a "FeedbackMessage" that can be generated using the Data Utility that is run OOTB during the action in question, in the case Revise.

avillanueva
22-Sapphire III
(To:TDT)

Ahh, yes, missed that part of your question. What's your use case? What kind of issue would be a warning not a hard error on revise?

Announcements



Top Tags