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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to get the activityid?

(0) ShareShare
ReportReport
Posted on by 552

Hi together,

I'm writing a script to get some data out of custom email messages.

Everything's fine now and it works. But.... how can I get the activityid value of an email to add this to the odata address?

Many thanks in advance and best regards

Mick

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mick_4711 Profile Picture
    552 on at

    Got it! Sometimes things are easier as they seem.

    Xrm.Page.data.entity.getId();

  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    If you're on the form you can use following code to get record's id - Xrm.Page.data.entity.getId() -  msdn.microsoft.com/.../gg334720.aspx;MSPPError=-2147217396#BKMK_getId

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans