Solved

Get default e-mail from comm. methods via API

  • 31 August 2022
  • 3 replies
  • 151 views

Userlevel 7
Badge +22
  • Superhero (Customer)
  • 943 replies

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.

 

icon

Best answer by CallumW 31 August 2022, 16:38

View original

3 replies

Userlevel 6
Badge +15

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* 

Userlevel 3
Badge +8

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 :)

 

Userlevel 7
Badge +22

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