Skip to main content
Solved

Get default e-mail from comm. methods via API

  • August 31, 2022
  • 3 replies
  • 244 views

Link
Superhero (Customer)
Forum|alt.badge.img+23
  • Superhero (Customer)
  • 1265 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.

 

Best answer by CallumW

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* 

3 replies

CallumW
Superhero (Partner)
Forum|alt.badge.img+16
  • Superhero (Partner)
  • 129 replies
  • Answer
  • August 31, 2022

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* 


Forum|alt.badge.img+9
  • Hero (Customer)
  • 78 replies
  • August 31, 2022

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

 


Link
Superhero (Customer)
Forum|alt.badge.img+23
  • Author
  • Superhero (Customer)
  • 1265 replies
  • September 1, 2022

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.