Power Community

Power Community

How to use Retrieve and Retrieve Multiple using PowerShell – Microsoft Dataverse

image

1. Retrieve:

Retrieve Used to Retrieve Single Record at a Time

CMDLETS:

Get-CrmRecord

 

Sample :

 

Get-CrmRecord -conn $conn -EntityLogicalName account -Id be02caab-6c16-e511-80d6-c4346bc43dc0 -Fields name,accountnumber

 

 

account – Entity Logical Name

be02caab-6c16-e511-80d6-c4346bc43dc0 – GUID of record to Retrieve

name,accountnumber – Field from Account Table

 

 

2. Retrieve Multiple :

 

Retrieve Multiple Used to Retrieve Multiple Records at a Time

 

CMDLETS:

 

Get-CrmRecordsByFetch

 

Sample :

 

$accountFetch = @”
 

 


“@

$multipleRecord = (Get-CrmRecordsByFetch -conn $conn -Fetch $accountFetch).CrmRecords

 

 

That’s it 🙂

This post was originally published on this site

- Advertisement -spot_img

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisement - Advertisement

Latest News

Filter data with single date slicer when multiple dates in fact table fall in range without creating relationship in Power BI

Hi Folks, After a while, I am back with another interesting way to solve this type of problem in Power...

More Articles Like This

- Advertisement -spot_img