on 2019 Oct 12 8:27 AM
lately, Our team met a requirement for raise an error message in sales quote approval.
we plan to raise the message in absl once the quote met some conditions when the approvor run the approve action.
firstly, we add a workflow rule and add some condition to call an customized action,
and in the absl action file we wrote like following:
if(XXX) { raise Error_Messag.Create("E"); }
in this absl file, we called an webservice and according to the result, to judge if raise this message
but the result is that this message could not be shown in the C4C UI,
and we also use debug mode, and had confirmed this statement is called by the application
so dose anybody know what is wrong here, and are there other method to achieve my purpose.
thanks
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
Hi,
If you raise a message in a ABSL script which is getting called by a workflow rule then you will not be able to see the messages in UI. That is C4C's standard behaviour. C4C workflow custom action should only be used for making updates to the fields via workflow or other business logic except for validation.
To achieve the requirement mentioned by you SHOULD write your logic in Root-BeforeSave validation event since this run for every update being made to approval status. and hence when you raise a message here then it will be shown in UI.
Thanks
Saurabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.