Skip to content

PCF control to list and download Note (annotation) attachments from Dataverse for model-driven Power Apps.

License

Notifications You must be signed in to change notification settings

ImranCodeBug/codebug-documentviewer-pcf

Repository files navigation

codebug-documentviewer-pcf

Build Status Follow on LinkedIn

PowerApps Component Framework (PCF) control to list and download Note (annotation) attachments from Dataverse.

Quick start

  • Install dependencies:
    npm install
  • Build the control:
    npm run build
  • Run locally (dev host):
    npm start

Project layout (key files)

What it does

  • Uses the WebAPI feature to query annotation (Note) records for an entity and renders them as clickable tags.
  • Downloads attachment content (base64) via the Dataverse Web API and triggers a browser download (AnnotationService).

Note this PCF is for model driven app only. inside the index.ts you will see that it is trying to fetch the client Url and the record id in which the component is being hosted. Possibly neither is supported action within a PCF

Development notes

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

PCF control to list and download Note (annotation) attachments from Dataverse for model-driven Power Apps.

Topics

Resources

License

Stars

Watchers

Forks