Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes to Get/Update-PnPVivaConnectionsDashboardACE #2433

Merged

Conversation

KoenZomers
Copy link
Collaborator

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

N/A

What is in this Pull Request ?

Added Properties attribute to Update-PnPVivaConnectionsDashboardACE to allow for updating the properties of a Viva Connections dashboard ACE component using its typed properties. This will i.e. become possible now:

EXAMPLE

$ace = Get-PnPVivaConnectionsDashboardACE -Identity 58108715-185e-4214-8786-01218e7ab9ef
$ace.Properties.QuickViews[0].Data = '{ 
        "items": [ 
            { "title": "Sample 1", "image": "https://contoso.sharepoint.com/SiteAssets/image1.png" }, 
            { "title": "Sample 2", "image": "https://contoso.sharepoint.com/SiteAssets/image2.png" } 
        ]}'
Update-PnPVivaConnectionsDashboardACE -Identity $ace.InstanceId -Properties $ace.Properties

Update the default quickview data of the adaptive card extension with Instance Id 58108715-185e-4214-8786-01218e7ab9ef in the Viva connections dashboard page to the provided JSON structure.

EXAMPLE

$ace = Get-PnPVivaConnectionsDashboardACE -Identity 58108715-185e-4214-8786-01218e7ab9ef
$ace.Properties.QuickViews[0].Template = '{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.3",
    "body": [
        ...
    ]}'
Update-PnPVivaConnectionsDashboardACE -Identity $ace.InstanceId -Properties $ace.Properties

Update the default quickview Adaptive Cards template of the adaptive card extension with Instance Id 58108715-185e-4214-8786-01218e7ab9ef in the Viva connections dashboard page to the provided JSON structure.

Fixed Get-PnPVivaConnectionsDashboardACE missing the isVisible property under CardButtonActions causing using Update-PnPVivaConnectionsDashboardACE to hide card buttons

@KoenZomers KoenZomers merged commit 3d80441 into pnp:dev Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant