Skip to main content

Hi experts,

how can I get the default e-mail address via API from comm. methods of a certain customer?

I tried this API:

IFSAPP.COMM_METHOD_API.Get_Default_Email(Customer_No)

But it doesn’t work. Only if I enter any user name instead of the customer order no as parameter.

 

You can use Get_Default_Value and specify email

 

comm_method_api.Get_Default_Value(party_type_ => 'CUSTOMER',
identity_ => '*CUSTOMER_NO*',
method_id_ => 'E_MAIL')

 

 

Just change *CUSTOMER_NO* 


Looking at that API, Emails will only be returned if the “default per method” field is checked, and the party type is “PERSON”. 

Callums response above is correct :)

 


You can use Get_Default_Value and specify email

 

comm_method_api.Get_Default_Value(party_type_ => 'CUSTOMER',
identity_ => '*CUSTOMER_NO*',
method_id_ => 'E_MAIL')

 

 

Just change *CUSTOMER_NO* 

Hi @CallumW 

thank you a lot. It works.


Reply