Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Answered

Set 'Owner' using Javascript when creating a record

(0) ShareShare
ReportReport
Posted on by 65

Hi, 

 

I am having difficulty  determining the correct Javascript syntax for setting the owner of record. I am able to do it using a flow but I have been unable to determine the correct syntax in Javascript.

 

 

kcward55_0-1719773774001.png

 

Everything else in the data payload shown below works fine, but not the ownerid.

 

kcward55_1-1719773923982.png

 

Thanks for any help you can provide.

Categories:
  • Verified answer
    AllanDeCastro Profile Picture
    412 Most Valuable Professional on at
    Re: Set 'Owner' using Javascript when creating a record

    Hello

    You must proceed as follows:

     

    {
    "ownerid@odata.bind": "/systemusers(00000000-0000-0000-0000-000000000000)"
    // Replace with the GUID of the new owner (systemuser)
    }

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 the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 17

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics