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

Community site session details

Session Id : o8q/f1D+yJyNmTuh/xDqZO
Power Apps - Microsoft Dataverse
Answered

Populate 'Sender' field when creating Email record in Timeline (using Javascript)

Like (0) ShareShare
ReportReport
Posted on 16 Apr 2024 16:59:18 by 65

Hello,

 

I am creating a record in the 'Email' entity, triggered by a field change in the 'regarding' entity.

I can successfully create the record and set the fields shown in the code below, with the exception of the 'sender' field. The email address I am using is a valid email address from the 'systemuser' entity, and in fact is the email address for the ownerid.

 

There are no error messages generated when creating the record. It appears that the 'sender' field is simply being ignored.

 

kcward55_0-1713285712943.png

 

I created a flow that is triggered when the email record is created/modified. I created the record and then entered the 'sender' email address manually. When I compared the output from the two flows, the only thing that changed in the email body (other than modified timestamp, version) was the 'sender' field. No other lookup fields or anything else was modified.

 

Any idea where I'm going wrong?

Categories:
  • kcward55 Profile Picture
    65 on 16 Apr 2024 at 18:03:26
    Re: Populate 'Sender' field when creating Email record in Timeline (using Javascript)

    Hi @a33ik 

     

    That works. Thanks for your help.

  • Verified answer
    a33ik Profile Picture
    3,304 Most Valuable Professional on 16 Apr 2024 at 17:09:15
    Re: Populate 'Sender' field when creating Email record in Timeline (using Javascript)

    Hello,

    Try to replace "sender" with the following:

     

    "email_activity_parties": [
    {
    "addressused":"xxx@gmail.com",
    "participationtypemask": 1
    }
    ]

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Featured topics

Loading complete