Identify which Validation called a Macro
AnsweredIs it possible to identify which Validation called a Macro UF?
I have several different validations which trigger on different actions on different marketing documents. Where I can I have used a common validation for multiple documents, but I have a number of resulting macros which are for the most part the same but with slight differences depending on the trigger for validation, if I could identify the validation I could reduce these multiple macros to a single macro with conditional actions based on the calling validation.
-
Official comment
Hello Guy,
You can use this option to identify where is the UF used.

-
Hi Yaremi
This does not really answer my question.
It is not a case of looking to see where a macro is used but finding from within a running macro what called the macro to set it running.
I have several different validations within certain forms and across several different types of form (all marketing documents). When triggered the each validation calls a macro individual to the validation however >80% of the code is common to all of the macros. What I would like to be to do is instead of having 10 macros which have 80% common code and 20% different depending on the Validation which uses it, is to have one macro with conditional statement based on the calling Validation. ie
Common codeIf Valdation1 do some code specific to Validation1
If Valdation2 do some code specific to Validation2
.............
But to do this I need to know the Validation which called the macro. -
Hello Guy,
We don't have a report like this, the only ones we provide is the one I already mentioned and the one for the categories.
-
I was just looking for something similar.
It would be good to be able to exclude or run different parts of the macro depending on the validation that is calling it, rather than creating almost identical macros
Please sign in to leave a comment.
Comments
4 comments