web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Try to create tiles in...
Power Apps
Unanswered

Try to create tiles in SharePoint list

(1) ShareShare
ReportReport
Posted on by 261

Hello

I am trying to create a tiles view with json.

I have a custom tenant and the following code works, in my devlopment tenant NOT.

{
 "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/tile-formatting.schema.json",
 "height": 135,
 "width": 135,
 "hideSelection": true,
 "fillHorizontally": false,
 "formatter": {
 "elmType": "a",
 "attributes": {
 "href": "[$myURL]",
 "class": "sp-row-card sp-card-borderHighlight ms-bgColor-themePrimary ms-bgColor-themeDarker--hover ms-fontColor-white ms-fontColor-themePrimary--hover"
 },
 "style": {
 "width": "135px",
 "height": "135px",
 "border-color": "#00A0f5",
 "border-style": "solid",
 "border-width": "1px",
 "border-radius": "0px",
 "background-color": "#00A0f5",
 "white-space": "normal",
 "padding": "4px",
 "font-size": "8px",
 "display": "flex",
 "flex-direction": "column",
 "justify-content": "center",
 "align-items": "center",
 "cursor": "pointer",
 "text-decoration": "none"
 },
 "children": [
 {
 "elmType": "div",
 "attributes": {
 "class": "ms-bgColor-white sp-css-borderColor-neutralLight sp-card-subContainer"
 },
 "style": {
 "display": "flex",
 "flex-direction": "column",
 "align-items": "center",
 "justify-content": "center",
 "background-color": "#00A0f5",
 "padding": "8px"
 },
 "children": [
 {
 "elmType": "img",
 "style": {
 "width": "45%",
 "height": "auto",
 "transition": "transform 0.3s",
 "margin-bottom": "8px"
 },
 "attributes": {
 "src": "[$Icone]"
 }
 },
 {
 "elmType": "div",
 "style": {
 "color": "white",
 "text-align": "center",
 "font-size": "15px",
 "font-weight": "600",
 "background-color": "#00A0f5"
 },
 "attributes": {
 "class": "ms-fontColor-neutralPrimary sp-card-content sp-card-highlightedContent",
 "title": "[$Description]"
 },
 "txtContent": "[$myName]"
 }
 ]
 }
 ]
 }
}

 

The following list column I am using:

MD2024_0-1721132492651.png

 

ICON is the link to the icon

Description is as it is 😉

myUrl is where I will go to if I click on the tile and

myTitle is the buttom title of that tile

 

If somebody has any idea why it works on one tenant and not on the other one..

Please let me know.

Thanks in advance 😉

Cheers

Michael

 

Categories:
I have the same question (0)
  • Verified answer
    dave3564 Profile Picture
    19 on at

    Do you notice if Microsoft Lists looks different between the two tenants? I have found that my JSON formatting for views have broken on some lists since the latest Microsoft List updates. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard