exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 1 question 16 discussion

Actual exam question from Microsoft's PL-400
Question #: 16
Topic #: 1
[All PL-400 Questions]

A Power Platform solution includes the following Web API call:
GET http://contoso.crm.dynamics.com/api/data/v9.1/RelationshipDefinitions?$select=SchemaName
You need to explain what this line of code is doing.
What does the code do?

  • A. Retrieve the list of relationships between tables.
  • B. Retrieve a list of tables that are related to each other.
  • C. Retrieve a list of one-to-many relationships with other tables.
  • D. Retrieve a list of tables that have more than one relationship.
  • E. Retrieve a list of many-to-many relationships with other tables.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Querying relationship metadata -
Entity relationships can be queried using the RelationshipDefinitions entity set. You can use a query like the following to get the SchemaName property for every relationship.
GET [Organization URI]/api/data/v9.0/RelationshipDefinitions?$select=SchemaName
The properties available when querying this entity set are limited to those in the RelationshipMetadataBase EntityType.
Note: You can retrieve relationship metadata in the context of a given entity much in the same way that you can query attributes. The ManyToManyRelationships,
ManyToOneRelationships, and OneToManyRelationships collection-valued navigation properties can be queried just like the Attributes collection-valued navigation property.
However, entity relationships can also be queried using the RelationshipDefinitions entity set.
Reference:
https://docs.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query-metadata-web-api https://docs.microsoft.com/en-us/power-apps/developer/data-platform/webapi/reference/relationshipmetadatabase?view=dataverse-latest

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
akkunja
Highly Voted 2 years, 8 months ago
Correct A
upvoted 10 times
...
kingAzure
Most Recent 7 months, 2 weeks ago
Selected Answer: A
Answer is A. "You can use a query like the following to get the SchemaName property for every relationship. GET [Organization URI]/api/data/v9.2/RelationshipDefinitions?$select=SchemaName" https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query-metadata-web-api
upvoted 1 times
...
odigetti365
1 year, 6 months ago
Correct
upvoted 1 times
...
hertino
2 years, 8 months ago
Correct, https://docs.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query-metadata-web-api
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago