Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Email activity sent through code is not getting visible for team under activities of contact

Posted on by 645

Hi,

Email activity sent through code is not getting visible for team under activities of contact

  • Verified answer
    Dynamics365 Rocker Profile Picture
    Dynamics365 Rocker 7,755 on at
    RE: Email activity sent through code is not getting visible for team under activities of contact

    Ok. Then provide organisation level read privileges to their security role on contact,System user and Activity

  • Integration Profile Picture
    Integration 645 on at
    RE: Email activity sent through code is not getting visible for team under activities of contact

    Currently with out regarding included, its appearing on the contact form. But its getting visible only to admin not for the other users from other teams\BU

  • Suggested answer
    Dynamics365 Rocker Profile Picture
    Dynamics365 Rocker 7,755 on at
    RE: Email activity sent through code is not getting visible for team under activities of contact

    Add regarding object id as well then activity will appear on contact form.

  • Integration Profile Picture
    Integration 645 on at
    RE: Email activity sent through code is not getting visible for team under activities of contact

    No.I am using below way.

    / Create the 'From:' activity party for the email            
    ActivityParty fromParty = new ActivityParty            
    {                
    PartyId = new EntityReference(SystemUser.EntityLogicalName, _userId)            };
    // Create the 'To:' activity party for the email
    
    ActivityParty toParty = new ActivityParty
    
    {
    
    PartyId = new EntityReference(“contact”, _contactId) //Pass your required mail to record info
    
    };
    
    // Create an e-mail message.
    
    Email email = new Email
    
    {
    
    To = new ActivityParty[] { toParty },
    
    From = new ActivityParty[] { fromParty },
    
    Subject = "SDK Sample e-mail",
    
    Description = "SDK Sample for SendEmail Message.",
    
    DirectionCode = true
    
    };
    
    _emailId = _serviceProxy.Create(email);
  • Dynamics365 Rocker Profile Picture
    Dynamics365 Rocker 7,755 on at
    RE: Email activity sent through code is not getting visible for team under activities of contact

    Did you set contact in regarding?

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans