Skip to content

/AWS1/CL_SE2=>GETEMAILIDENTITY()

About GetEmailIdentity

Provides information about a specific identity, including the identity's verification status, sending authorization policies, its DKIM authentication status, and its custom Mail-From settings.

Method Signature

IMPORTING

Required arguments:

iv_emailidentity TYPE /AWS1/SE2IDENTITY /AWS1/SE2IDENTITY

The email identity.

RETURNING

oo_output TYPE REF TO /aws1/cl_se2getemailidresponse /AWS1/CL_SE2GETEMAILIDRESPONSE

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

DATA(lo_result) = lo_client->/aws1/if_se2~getemailidentity( |string| ).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  lv_identitytype = lo_result->get_identitytype( ).
  lv_enabled = lo_result->get_feedbackforwardingstatus( ).
  lv_enabled = lo_result->get_verifiedforsendingstatus( ).
  lo_dkimattributes = lo_result->get_dkimattributes( ).
  IF lo_dkimattributes IS NOT INITIAL.
    lv_enabled = lo_dkimattributes->get_signingenabled( ).
    lv_dkimstatus = lo_dkimattributes->get_status( ).
    LOOP AT lo_dkimattributes->get_tokens( ) into lo_row.
      lo_row_1 = lo_row.
      IF lo_row_1 IS NOT INITIAL.
        lv_dnstoken = lo_row_1->get_value( ).
      ENDIF.
    ENDLOOP.
    lv_dkimsigningattributesor = lo_dkimattributes->get_signingattributesorigin( ).
    lv_dkimsigningkeylength = lo_dkimattributes->get_nextsigningkeylength( ).
    lv_dkimsigningkeylength = lo_dkimattributes->get_currentsigningkeylength( ).
    lv_timestamp = lo_dkimattributes->get_lastkeygenerationtsmp( ).
  ENDIF.
  lo_mailfromattributes = lo_result->get_mailfromattributes( ).
  IF lo_mailfromattributes IS NOT INITIAL.
    lv_mailfromdomainname = lo_mailfromattributes->get_mailfromdomain( ).
    lv_mailfromdomainstatus = lo_mailfromattributes->get_mailfromdomainstatus( ).
    lv_behavioronmxfailure = lo_mailfromattributes->get_behavioronmxfailure( ).
  ENDIF.
  LOOP AT lo_result->get_policies( ) into ls_row_2.
    lv_key = ls_row_2-key.
    lo_value = ls_row_2-value.
    IF lo_value IS NOT INITIAL.
      lv_policy = lo_value->get_value( ).
    ENDIF.
  ENDLOOP.
  LOOP AT lo_result->get_tags( ) into lo_row_3.
    lo_row_4 = lo_row_3.
    IF lo_row_4 IS NOT INITIAL.
      lv_tagkey = lo_row_4->get_key( ).
      lv_tagvalue = lo_row_4->get_value( ).
    ENDIF.
  ENDLOOP.
  lv_configurationsetname = lo_result->get_configurationsetname( ).
  lv_verificationstatus = lo_result->get_verificationstatus( ).
  lo_verificationinfo = lo_result->get_verificationinfo( ).
  IF lo_verificationinfo IS NOT INITIAL.
    lv_timestamp = lo_verificationinfo->get_lastcheckedtimestamp( ).
    lv_timestamp = lo_verificationinfo->get_lastsuccesstimestamp( ).
    lv_verificationerror = lo_verificationinfo->get_errortype( ).
    lo_soarecord = lo_verificationinfo->get_soarecord( ).
    IF lo_soarecord IS NOT INITIAL.
      lv_primarynameserver = lo_soarecord->get_primarynameserver( ).
      lv_adminemail = lo_soarecord->get_adminemail( ).
      lv_serialnumber = lo_soarecord->get_serialnumber( ).
    ENDIF.
  ENDIF.
ENDIF.