Skip to main content
Question

Customer Invoice email attachment issue

  • September 15, 2021
  • 8 replies
  • 504 views

Srikanth
Superhero (Partner)
Forum|alt.badge.img+18

Hi, We created an Email type Custom Event Action using PDF_REPORT_CREATED Event to send out Customer Invoices. We are using the standard IFS report in Apps 10. 

While the Custom Event is firing, we aren’t receiving the correct invoice PDF. Instead the following email with a corrupt looking PDF is getting sent out:

The file cant be opened and gives the following error message:

 

The invoice PDF inside the IFS report archive looks right and can be opened. 

Also, the above attachment come across correctly when we sent it manually using the Email option in the Print Dialogue:

Notice the subject, message and email sender name look different

Has anyone come across this issue before?

Does this anything to do with how the Custom Event Action creation?

TIA,

Srikanth

This topic has been closed for replies.

8 replies

durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Superhero (Customer)
  • 538 replies
  • September 16, 2021

What does your event action look like?

 

I copied this from a working event action (Apps 9 UPD 13):

                  command_sys.mail(
                     from_user_name_ => email_from_,
                     to_user_name_   => email_to_,
                     text_           => email_body_,
                     error_text_     => NULL,
                     attach_         => '&PDF_FILE',
                     cc_             => NULL,
                     subject_        => email_subject_,
                     timer_          => NULL,
                     audit_          => NULL,
                     from_alias_     => NULL,
                     label_          => NULL,
                     mail_sender_    => NULL);

 


Srikanth
Superhero (Partner)
Forum|alt.badge.img+18
  • Author
  • Superhero (Partner)
  • 291 replies
  • September 16, 2021

Thanks for the info.

Here is how the Event Action looks like right now:

 


durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Superhero (Customer)
  • 538 replies
  • September 17, 2021
Srikanth wrote:

 

What do you see when you click the blue link that says “1 Attachments”?


william.klotz
Superhero (Customer)
Forum|alt.badge.img+21
  • Superhero (Customer)
  • 479 replies
  • September 17, 2021

Hi @Srikanth ,

 

Here’s a the event action we use to send invoice by email to a customer.  The email address comes from the customer record on the payment tab.  It’s setup under the AR Customer Contact section.

Send Invoice By Email

 

Regards,

William Klotz


Srikanth
Superhero (Partner)
Forum|alt.badge.img+18
  • Author
  • Superhero (Partner)
  • 291 replies
  • September 20, 2021
durette wrote:
Srikanth wrote:

 

What do you see when you click the blue link that says “1 Attachments”?

&PDF_FILE


Srikanth
Superhero (Partner)
Forum|alt.badge.img+18
  • Author
  • Superhero (Partner)
  • 291 replies
  • September 20, 2021
william.klotz wrote:

Hi @Srikanth ,

 

Here’s a the event action we use to send invoice by email to a customer.  The email address comes from the customer record on the payment tab.  It’s setup under the AR Customer Contact section.

Send Invoice By Email

 

Regards,

William Klotz

Only difference is Mail Sender is left blank in your screenshot. Let me try this out.

Thanks!


william.klotz
Superhero (Customer)
Forum|alt.badge.img+21
  • Superhero (Customer)
  • 479 replies
  • September 20, 2021

Hi @Srikanth ,

 

Hopefully removing the Mail Sender will correct your issue.  We’ve never used the Mail Sender in our Email actions.

 

Regards,

William Klotz


Srikanth
Superhero (Partner)
Forum|alt.badge.img+18
  • Author
  • Superhero (Partner)
  • 291 replies
  • September 21, 2021

We recreated the Event Action with Mail Sender left blank but the issue still persists.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings