Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Select statement:
SELECT DISTINCT
AI.INVOICE_NUM,
AI.CREATION_DATE CREATION_DATE,
(select PAPF1.FULL_NAME
ap_inv_aprvl_hist_all ahl,
FND_USER FND
(select PAPF1.EMAIL_ADDRESS
ap_inv_aprvl_hist_all ahl,
FND_USER FND
AND FND.employee_id=PAPF1.PERSON_ID)LS_EMAIL_ADDRESS,
AI.WFAPPROVAL_STATUS,
ahl.RESPONSE,
ahl.APPROVER_NAME
,AHL.CREATION_DATE REJECTION_DATE
,AHL.rowid
into
&INVOICE_NUM,
&CREATION_DATE,
&LAST_UPDATED_PERSON,
&LS_EMAIL_ADDRESS,
&WFAPPROVAL_STATUS,
&RESPONSE,
&APPROVER_NAME,
&REJECTION_DATE,
&rowid
FROM
AP_INVOICES_ALL AI
,AP_INV_APRVL_HIST_ALL ahl
WHERE 1=1
and ai.INVOICE_ID=ahl.INVOICE_ID
and ahl.RESPONSE='REJECT'
and ahl.rowid=:rowid
----------------------------------------------------------------------------------------------------------------------------------------
Note: Give &EMAIL_ADDRESS as value for email.so that the dynamic mail address is obtained with
respect to the User.
Text:
----------------------------------------------------------------------------------------------------------------------
Dear & LAST_UPDATED_PERSON,
Regards
-----------------------------------------------------------------------------------------------------------------------------------
Enter Action set Name as Sending mail then go to Action set Details.
In members tab give Action as Sending mail, then click tab for 3 times and save.
This is alert is created to send mail to user who creates an Invoice and the Initializes it’s approval and is
received by another User .But, If the Invoice gets rejected by another User who receives the invoice for
approval.
Then the Email alert is sent to the user who created the invoice.