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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Email Timeline Form: "Regarding" Column shows undefined value

(6) ShareShare
ReportReport
Posted on by 12
Hi, 
 
I would like to display the "Regarding" column in the timeline for emails. I can select the email card form in the Maker Portal via the timeline and display the "Regarding" column there. However, the value "undefinded" is then displayed in the app, although the "regardingobjectid" field is filled in. Where is the error? 
 
Thank you very much!
Categories:

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

I have the same question (0)
  • Verified answer
    Ramesh Kumar Profile Picture
    7,527 Super User 2025 Season 2 on at
    I wish I can help more here but at this stage I can only think of, Ensure that the regardingobjectid field is properly linked to the correct entity and that the relationship is established. If you're using custom entities, ensure the relationship between the regardingobjectid and the related entity is correctly defined in the solution.
     
    Thanks
    Ramesh
     
    If this was helpful, please check the "Does this answer your question?" box and mark it as verified.
  • Verified answer
    Daivat Vartak (v-9davar) Profile Picture
    7,835 Super User 2025 Season 2 on at
    Hello TillPragmatic,
     

    You're encountering a common issue when trying to display the "Regarding" field (specifically, the related object's name) in the timeline's email card form. The "undefined" value indicates that the timeline is struggling to resolve the related object's name from the regardingobjectid field.

    Here's a breakdown of the problem and how to fix it:

    Understanding the Problem:

    • regardingobjectid (Lookup Field):

      • This field stores the lookup reference to the related record (e.g., Account, Contact, Opportunity).
      • It stores the GUID of the related record, not the record's name. 

    • Timeline Rendering:

      • The timeline needs to perform a lookup to the related record to retrieve the name for display.
      • If this lookup fails, or if the timeline doesn't have the necessary information to perform the lookup, it will display "undefined.. 

    • Card Form Limitations:

      • Card forms in the timeline have some limitations regarding related entity lookups. 


    •  

    Troubleshooting and Solutions:

    1. Ensure Related Entity is Included in the App:

      • The most common reason for "undefined" is that the related entity (the one referenced in regardingobjectid) is not included in the model-driven app.

      • Solution:

        • Open your model-driven app in the app designer.
        • Ensure that the related entity is included in the app's entities list.
        • Publish the app. 
         

    2. Verify Entity Permissions:

      • The user viewing the timeline must have read permissions for the related entity.

      • Solution:

        • Check the user's security role and ensure they have read privileges for the related entity. 
         

    3. Check the "Primary Name" Field of the Related Entity:

      • The timeline uses the related entity's "primary name" field to display the record's name.

      • Solution:

        • Go to the related entity's customization settings.
        • Verify that the "primary name" field is correctly configured.
        • Make sure that the primairy name field has data in it. 
         

    4. Card Form Customization (Advanced):

      • In some cases, the timeline's card form might need additional customization to correctly retrieve the related entity's name.

      • Solution:

        • If the previous steps don't resolve the issue, you might need to use JavaScript to retrieve the related entity's name and display it in the card form.

        • This involves:

          • Using the Xrm.WebApi.retrieveRecord method to retrieve the related record.
          • Accessing the primary name field of the retrieved record.
          • Setting the value of a text field in the card form to the retrieved name. 

        • This is a more advanced solution and requires JavaScript development skills. 
         

    5. Timeline Configuration:

      • In rare cases, the timeline configuration itself might be causing the issue.

      • Solution:

        • Remove the Email card from the timeline, publish, and then add it back. 
         

    6. Browser Cache:

      • Clear your browser's cache and cookies. 

    7.  

    Key Recommendations:

    • Start by ensuring that the related entity is included in the app. This is the most common cause.
    • Verify entity permissions.
    • Check the related entity's "primary name" field.
    • Only use Javascript as a last resort.

    •  

    If you've checked these settings and the issue persists, the JavaScript customization option might be necessary.

     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more. If you have further questions, please feel free to contact me.
     
    My response was crafted with AI assistance and tailored to provide detailed and actionable guidance for your Microsoft Dynamics 365 query.
     
    Regards,
    Daivat Vartak

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 62 Most Valuable Professional

#2
#ManoVerse Profile Picture

#ManoVerse 57

#3
Pallavi Phade Profile Picture

Pallavi Phade 49

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans