Print and delivery - E-mail action, fetch cardcode from custom mass delivery config Answered

Marc ter Horst

Situation:

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!

Comments

3 comments

  • Comment author
    Yaremi Miranda Lopez
    • Official comment

    Hello Mark,

    I just created a ticket to check this.

  • Comment author
    Yaremi Miranda Lopez

    Hello Marc, 

    Can you please send the secreenshots of your configuration?

    0
  • Comment author
    Marc ter Horst

    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.

     

    0

Please sign in to leave a comment.