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

How to get e-mail from timeline use fetchxml?

(0) ShareShare
ReportReport
Posted on by 65

Hello.

How to get e-mail from timeline use fetchxml?

I need to get this e-mails.

pastedimage1620807630268v1.png

I have this code, but he not working

oldRegardingObjectId - This is the parameter that passes the id.

return $@"<fetch mapping='logical'>
            <entity name='annotation'>
                <attribute name='objectid'/>
                   <filter type='and'>
                      <condition attribute='objectid' operator='eq' value='{oldRegardingObjectId}'/>
                    </filter>
            </entity>
        </fetch>";

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

    Hi,

    Thank you for your query.

    You need to query Email entity (Annotations are only notes).

    Here is a sample FetchXML:

      
        
        
        
        
        
        
        
        
        
        
          
        
      
    

    It is easier to start with Advanced Find to build your query (Look for Email Messages entity). Then you can download the FetchXML:

    pastedimage1620810341581v1.png

    Also, following plugin of XRM Tool Box comes handy when testing/experimenting with FetchXML:

    FetchXML Builder  Â· XrmToolBox

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 70

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans