Print and delivery - E-mail action, fetch cardcode from custom mass delivery config
AnsweredSituation:
Mass delivery configuration, type custom.
Not related to a form in Business One.
Uses DI - Field info fields to map DocKey and Business partner code.
Used in report action; fetches relevant data with DocKey@.
E-mail recipient needs to be determined from the Business partner as set in the DI field info, using 'direct e-mail'. So the value of the BP code is needed there.
Is there a way to retrieve it?
(Of course it can be retrieved using the dockey, but that would be redundant and may not always applicable).
Thanks for your help!
-
Official comment
Hello Mark,
I just created a ticket to check this.
-
Hello Marc,
Can you please send the secreenshots of your configuration?
-
Hi Yaremi,
Please see below. I've already found a way (by using a procedure that takes the DocKey as input to retrieve the e-mail address). But the principle would be the same:
Mass delivery config selects DocKey and CardCode from an arbitrary (non-UI) source.
Through the report configuration the report action is called (type e-mail).On that report action I would need to fetch e-mail addresses based on the CardCode.
These addresses are (in this case) stored on the BP itself in UDFs, but may be stored anywhere.
Please sign in to leave a comment.
Comments
3 comments