Skip to content

Instantly share code, notes, and snippets.

@expiscornovus
Created May 15, 2024 11:30
Show Gist options
  • Save expiscornovus/980569855c9187878c33c6351fad07b0 to your computer and use it in GitHub Desktop.
Save expiscornovus/980569855c9187878c33c6351fad07b0 to your computer and use it in GitHub Desktop.
Create Average Rating Field
{"id":"46f9d52a-3611-40c6-b0d0-29af87793b82","brandColor":"#036C70","connectionReferences":{"shared_sharepointonline":{"connection":{"id":"/exp_sharedsharepointonline_e5efa"}}},"connectorDisplayName":"SharePoint","icon":"https://connectoricons-prod.azureedge.net/releases/v1.0.1685/1.0.1685.3700/sharepointonline/icon.png","isTrigger":false,"operationName":"Send_an_HTTP_request_to_SharePoint","operationDefinition":{"type":"OpenApiConnection","inputs":{"host":{"connectionName":"shared_sharepointonline","operationId":"HttpRequest","apiId":"/providers/Microsoft.PowerApps/apis/shared_sharepointonline"},"parameters":{"dataset":"@parameters('SPOSiteCollection_PowerUsers (exp_SPOSiteCollection_PowerUsers)')","parameters/method":"POST","parameters/uri":"_api/Microsoft.SharePoint.Portal.RatingSettings.SetListRating(listID=@a1,ratingType=@a2)?@a1=@{variables('ListId')}&@a2=1","parameters/headers":{"Accept":"application/json;odata=verbose","Content-Type":"application/json;odata=verbose"}},"authentication":{"type":"Raw","value":"@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']"}},"runAfter":{"Initialize_variable_-_ListId":["Succeeded"]},"metadata":{"operationMetadataId":"63923373-05b5-47bc-af21-7bd4eb6b3111"}}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment