SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.23k stars 992 forks source link

Adaptive Card template support in ACE cards #7404

Closed AsishP closed 2 years ago

AsishP commented 2 years ago

Target SharePoint environment

other (enter in the "Additional environment details" area below)

What SharePoint development model, framework, SDK or API is this about?

πŸ’₯ SharePoint Framework

Developer environment

No response

What browser(s) / client(s) have you tested

Additional environment details

Teams Mobile App - iOS and Android (latest versions)

Describe the bug / error

Adaptive card JSON template on ACE initial card view, doesn't seem to work when on Mobile App (not the quick view). Screenshot attached, Seems like the JSON parsing doesn't work on Viva Connections Mobile App. Is it possible to support that? 2021-10-14 09_35_54-VivaConnectionsMobileAppIssue

Steps to reproduce

  1. Create a ACE card for Viva Connections
  2. Override the get Template() method in CardView.ts to return a Adaptive card template json as below. Please add some dynamic values replacement in Adaptive Card json to see the issue public get template(): ISPFxAdaptiveCard { return require('./template.json'); }
  3. Publish and add the card to Viva Connection dashboard
  4. View it in MS team mobile app on iOS or Android

Expected behavior

Expecting to see the card view with data as shown in the browser view or the Teams desktop version (Screenshot below) 2021-10-14 09_35_54-VivaConnectionsDesktop .

ghost commented 2 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

johnguy0 commented 2 years ago

@AsishP This is not supported. Card views must inherit from one of the base card view classes and cannot override their template methods.

Card views

ghost commented 2 years ago

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues