web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Blank recipient and blank regarding when email PDF using Export to PDF button

(0) ShareShare
ReportReport
Posted on by 450

Hi,

I have enabled the Convert to PDF functionality for a custom entity, and configured word templates appropriately. When I use the Email PDF option, the new Enhanced Email pops up as expected, but the To field and the Regarding field is blank. Looking at the browser Developer Tools (F12), I get this message

pastedimage1626109817992v2.png

I can see the problem is that the custom entity has no Customer field, and the email form cannot populate the To field, but it should populate the regarding field without any error in javascript. So I think it's a bug for Microsoft.

Is anyone having the same issue?

Kind regards,

Khoa

I have the same question (0)
  • Verified answer
    Wahaj Rashid Profile Picture
    11,321 on at

    Thank you for your query.

    Did you enable the Sending Email flag for the custom entity?

    pastedimage1626121304582v2.png

    Go to Advanced Settings -> Customization -> Customize this System, expand Entities -> <Your entity> and under Communication and Collaboration section, check "Sending Email" option, Save and Publish the entity.

    Refresh, the form and try again.

    Here is an extract from official docs:

    pastedimage1626120922820v1.png

    Create PDF files from sales records - Sales Enterprise | Microsoft Docs

  • khoait Profile Picture
    450 on at

    Thanks Wahaj, checking Sending Email option makes the Regarding field popuplated. I can use javascript to get the recipient contact from Regarding record and ignore the error in F12.

  • Keeks Profile Picture
    2 on at
    Hi Khoait, 
     
    I would love to know the JS you wrote to fix the 'To' field populating. 
    I am having trouble with this
     
    thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 61

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 52 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans