Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save expiscornovus/55439b541ed0dc97a597ff16ba3d8ea0 to your computer and use it in GitHub Desktop.
Save expiscornovus/55439b541ed0dc97a597ff16ba3d8ea0 to your computer and use it in GitHub Desktop.
Get Local Option Set from Microsoft Dataverse via HTTP action in Power Automate
{
"inputs": {
"method": "GET",
"uri": "@{variables('EnvironmentUrl')}/api/data/v9.1/EntityDefinitions(LogicalName='@{variables('Table')}')/Attributes(LogicalName='@{variables('Column')}')/Microsoft.Dynamics.CRM.PicklistAttributeMetadata?$select=LogicalName&$expand=OptionSet($select=Options)",
"headers": {
"Content-Type": "application/json",
"OData-MaxVersion": "4.0",
"OData-Version": "4.0"
},
"authentication": {
"type": "ActiveDirectoryOAuth",
"authority": "https://login.microsoftonline.com",
"tenant": "@parameters('TenantId')",
"audience": "@variables('EnvironmentUrl')",
"clientId": "@parameters('ClientId_MicrosoftDataverse')",
"secret": "@parameters('ClientSecret_MicrosoftDataverse')"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment