top of page

Update a Dataverse record and link to a related table by using the plural table name

Updated: Nov 30, 2022

Hello. How are you doing?


I wanted to write this post mainly because I often need to do it and I always head off to the internet to find out the answer. So why not put it on your own blog and then you never need to search for it again.


TL;DR


The easiest way to the get the plural name of a table is to do the following:



ree

This copies the entity set name to the clipboard. Special thanks to Lloyd Broley for pointing that out

Introduction


My wife works at a nursery and I wanted to build a Model-Driven app based on Dataverse data. The premise is that a parent can fill in a form which writes data to a ’Child’ table in Dataverse. A Power Automate cloud flow will run to check to see if the email provided by the parent exists. If it doesn’t a record in the ‘Parent’ table will get created and if it doesn’t then one gets created, after that the ‘Child’ record then gets updated and linked to the ‘Parent’ record

Note: I am talking about tables called Parent and Child here.

The related records are known as polymorphic records. I still haven’t got a clue what that means. But you know SEO and all that ;)


Let’s crack on.


Let's look at the Parent table. In the screenshot below, I have clicked on the properties cog to check out what the logical name of the table is:



ree

This logical name is important. We need this to find the plural name of this table also known as the entity set name.

In my case this logical name is jdf_parent.


I then need to head over to my Power Platform admin Centre and look at the environment URL` that I am working in.



ree

We need to take a copy of the environment URL. We need this as a component part of this URL:



This is then going to help us formulate the rest of the URL that we need to make a call to the API to get back the plural name of the table that we can use to link the Parent record to the Child record (yes, I know, these table names are a bit confusing, but they are part of the Nursery solution)


The URL we need in my case looks like this:



This is made up of:



ree

If I now paste this into my web browser URL bar, I get this back:



ree

In text form, this is what that looks like (as I realise you are going to need a jeweler's eye piece to be able to see that screenshot):


{"@odata.context":"https://org48ab23b4.crm11.dynamics.com/api/data/v9.1/$metadata#EntityDefinitions(EntitySetName)/$entity","EntitySetName":"jdf_parents","MetadataId":"6e1eff4a-21b3-eb11-8236-000d3a7fbe09"}

The key part here is the bit in speech marks after the EntitySetName - jdf_parents. It sounds obvious that this is the plural name of jdf_parent but it is always worth checking this way.


Why do you ask?


Well, sometimes people repurpose tables and change their name to something else. I.e. Opportunity to Application or something like that. If that is the case, this is the sure-fire way to get the right plural or entity set name.


If you are building Dataverse tables, I would strongly advise calling the table by its singular name, otherwise you can get into issues trying to work out what the plural name is.


Once you have this, you can now go back to your Power Automate cloud flow.


On the step where you are creating a new, in our case, Parent record and then linking that back to the Child table by using the Dataverse action "Update a row", the syntax to link this record to the parent record is:


/jdf_parents(GUID)


As shown in the screenshot below:



ree

I hope this helps, it is definitely going to help me stop from searching for these steps every time haha.


As always, any questions please drop a comment on this post.



14 Comments


Dracule Mark
Dracule Mark
13 minutes ago

Trezor Bridge is the essential communication layer that connects your Trezor hardware wallet with your computer’s browser interface. It allows your operating system and browser to securely recognize your Trezor device — ensuring that sensitive operations like signing transactions, verifying addresses, or managing crypto assets happen safely, without ever exposing private keys online.

Like

Ledger Live is the official app for managing your Ledger hardware wallet. It allows you to securely send, receive, and track your cryptocurrencies in one place. With Ledger Live, you can easily monitor your portfolio, manage multiple accounts, and perform firmware updates safely. Its user-friendly interface ensures both beginners and experienced users can manage digital assets confidently and securely.

Like

The Phantom Chrome Extension is a secure, user-friendly wallet for managing Solana-based assets directly in your browser. It enables seamless transactions, NFT management, and decentralized app (dApp) interactions. With robust security, quick setup, and an intuitive interface, Phantom simplifies your crypto experience while ensuring privacy and convenience.

 https://in.pinterest.com/kevaxe5579/_profile/

https://myspace.com/phontom1987

https://www.behance.net/phantomextensi1

https://www.callupcontact.com/b/businessprofile/Phantom_Extension/9603462

 https://legenden-von-andor.de/forum/memberlist.php?mode=viewprofile&u=33926

 https://www.iniuria.us/forum/member.php?539267-phontom1987

 https://www.growsonyou.com/phontom1987/profile

https://hub.docker.com/u/phontom1987?_gl=1*pcusa4*_ga*MTY3ODMyNDY3OC4xNzQyNTUwMTQy*_ga_XJWPQMJYHQ*MTc0MzMxNjU1OS4zLjEuMTc0MzMxNjY3MC45LjAuMA..

https://wakelet.com/@PhantomExtension38747

https://www.free-ebooks.net/profile/1617393/phantom-extension

 https://www.metooo.io/u/67e8e834924808331d32dd03

https://os.mbed.com/users/phontom1987/

https://pastebin.com/u/phontom1987

https://reedsy.com/discovery/user/phantomextension2437

https://www.brownbook.net/my-profile/basic-info/

https://pyweek.org/u/phontom1987/

https://www.hamqth.com/phontom1987

https://gettogether.community/profile/292177/

https://1businessworld.com/pro/phontom1987/

http://www.genina.com/user/editDone/4737051.page

 https://www.dermandar.com/user/phontom1987/

https://onescreener.com/phantom-chrome-extension?

 https://www.blackhatworld.com/members/phontom1987.2131658/#about

https://www.salesforce.com/trailblazer/profile

 https://www.giveawayoftheday.com/forums/profile/269562?updated=true

 https://www.ohay.tv/profile/phntom194

http://freestyler.ws/user/517761/phntom194

https://doodleordie.com/profile/phntom194

https://community.hodinkee.com/members/phntom194

 

Like

Ledger .com/start - Download Ledger Live | Official Site Ledger .com/start is the official setup page for Ledger hardware wallets, guiding users through secure device initialization. It offers step-by-step instructions to install Ledger Live, create a recovery phrase, and manage crypto assets safely. With Ledger’s advanced security features, users can store, send, and receive cryptocurrencies confidently while maintaining full control over their private keys. https://d6united.mn.co/posts/81694297 https://businessboostier.mn.co/posts/81694318  https://linkmate.mn.co/posts/81694324  https://cybrvrs3.mn.co/posts/81694332  https://d6united.mn.co/posts/81694342  https://businessboostier.mn.co/posts/81694318  https://freesaloneducation.mn.co/posts/81694355  https://janjaonline.mn.co/posts/81694369  https://jasa-seo.mn.co/posts/81694382  https://linkmate.mn.co/posts/81694324  https://network-316491.mn.co/posts/81694398  https://nova-driving-school.mn.co/posts/81694408  https://oregon-swing-netork.mn.co/posts/81694421  https://profitability-movement.mn.co/posts/81694429

Like

Ledger. com/start and Trezor wallet login are essential for securely setting up and accessing hardware wallets. Ledger.com/start guides users through initializing Ledger devices via Ledger Live, ensuring safe crypto management. Trezor wallet login allows secure access to Trezor Suite, enabling transactions and asset control. Both provide top-tier security, offline key storage, and protection from cyber threats. Ledger.com/start | Trezor wallet login

Like

Subscribe Form

©2019 by Jon Does Flow. Proudly created with Wix.com

bottom of page