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 Automate / Issue inserting Image ...
Power Automate
Unanswered

Issue inserting Image src in a JSON result step - Creating modern pages automatically in sharepoint with power Automate Flow

(0) ShareShare
ReportReport
Posted on by

Hi everybody,

 

I'm have a issue in a compose step when in a JSON method that creates a sharepoint site page automatically, the flow don't create the page and throws a Bad gateway error.

 

the problem occurs when I add the image to the JSON syntax, This is my flow :

 

Diemur9_0-1624286249370.png

 

and this is how I put the image:

 

Diemur9_1-1624286385902.png

and this is the JSON syntax:

 

{
"__metadata": {
"type": "SP.Publishing.SitePage"
},
"LayoutWebpartsContent": "[{\"id\":\"cbe7b0a9-3504-44dd-a3a3-0e5cacd07788\",\"instanceId\":\"cbe7b0a9-3504-44dd-a3a3-0e5cacd07788\",\"title\":\"Área de título\",\"description\":\"Descripción del área de título\",\"audiences\":[],\"serverProcessedContent\":{\"htmlStrings\":{},\"searchablePlainTexts\":{},\"imageSources\":{},\"links\":{}},\"dataVersion\":\"1.4\",\"properties\":{\"title\":\"TestHoyyyy\",\"imageSourceType\":4,\"layoutType\":\"FullWidthImage\",\"textAlignment\":\"Left\",\"showTopicHeader\":false,\"showPublishDate\":false,\"topicHeader\":\"\",\"authors\":[],\"authorByline\":[]},\"reservedHeight\":228}]",
"CanvasContent1": "[{\"controlType\":4,\"id\":\"cbfd82bc-9a97-49da-ac3d-aba3f896a95f\",\"position\":{\"zoneIndex\":1,\"sectionIndex\":1,\"controlIndex\":1,\"sectionFactor\":8,\"layoutIndex\":1},\"emphasis\":{},\"addedFromPersistedData\":true,\"innerHTML\":\"<p><strong>Descripcion</strong></p><p>{Descripcion}</p>\"},{\"controlType\":4,\"id\":\"fc4706e8-bcdd-466a-a4e2-8f7e7c1493ed\",\"position\":{\"zoneIndex\":1,\"sectionIndex\":2,\"controlIndex\":1,\"sectionFactor\":4,\"layoutIndex\":1},\"emphasis\":{},\"addedFromPersistedData\":true,\"innerHTML\":\"<ul><li>Lenguaje: {Lenguaje}</li></ul>\"},{\"position\":{\"zoneIndex\":1,\"sectionIndex\":2,\"controlIndex\":2,\"layoutIndex\":1,\"sectionFactor\":4},\"controlType\":3,\"id\":\"a8c58edc-b81f-4f7c-96fb-af92a6bc9169\",\"webPartId\":\"0f087d7f-520e-42b7-89c0-496aaf979d58\",\"emphasis\":{},\"reservedHeight\":40,\"reservedWidth\":372,\"addedFromPersistedData\":true,\"webPartData\":{\"id\":\"0f087d7f-520e-42b7-89c0-496aaf979d58\",\"instanceId\":\"a8c58edc-b81f-4f7c-96fb-af92a6bc9169\",\"title\":\"Botón\",\"description\":\"Agregue un botón en el que hacer clic con una etiqueta personalizada y un vínculo.\",\"audiences\":[],\"serverProcessedContent\":{\"htmlStrings\":{},\"searchablePlainTexts\":{\"label\":\"Descargar\"},\"imageSources\":{},\"links\":{\"linkUrl\":\"https://www.afa.com.ar/\"}},\"dataVersion\":\"1.0\",\"properties\":{\"alignment\":\"Center\"}}},{\"controlType\":4,\"id\":\"348b777e-f18c-4c5c-b885-b54b75ad7598\",\"position\":{\"zoneIndex\":1.5,\"sectionIndex\":1,\"controlIndex\":1,\"sectionFactor\":12,\"layoutIndex\":1},\"emphasis\":{},\"addedFromPersistedData\":true,\"innerHTML\":\"<p>Procesos</p>\"},{\"controlType\":4,\"id\":\"3f820b7a-cea4-4248-b8fa-95b0989d2c30\",\"position\":{\"zoneIndex\":2,\"sectionIndex\":1,\"controlIndex\":1,\"sectionFactor\":4,\"layoutIndex\":1},\"emphasis\":{},\"addedFromPersistedData\":true,\"innerHTML\":\"<img src=\\\"@{triggerOutputs()?['body/Imagen1Carrusel']}\\\" />},{\"controlType\":4,\"id\":\"8bd48573-94e9-4ae3-af6a-da242008a330\",\"position\":{\"zoneIndex\":2,\"sectionIndex\":2,\"controlIndex\":1,\"sectionFactor\":4,\"layoutIndex\":1},\"emphasis\":{},\"addedFromPersistedData\":true,\"innerHTML\":\"<p>..</p>\"},{\"controlType\":4,\"id\":\"dd29c8f1-93a5-4bd1-9ab7-fcb8a0be7dc1\",\"position\":{\"zoneIndex\":2,\"sectionIndex\":3,\"controlIndex\":1,\"sectionFactor\":4,\"layoutIndex\":1},\"emphasis\":{},\"addedFromPersistedData\":true,\"innerHTML\":\"<p>...</p>\"},{\"controlType\":4,\"id\":\"3e2ca4da-2705-4637-8bfb-75eaa84ced6c\",\"position\":{\"zoneIndex\":3,\"sectionIndex\":1,\"controlIndex\":1,\"sectionFactor\":12,\"layoutIndex\":1},\"emphasis\":{},\"addedFromPersistedData\":true,\"innerHTML\":\"<p>Video</p><p><br></p>\"},{\"position\":{\"zoneIndex\":3,\"sectionIndex\":1,\"controlIndex\":2,\"layoutIndex\":1,\"sectionFactor\":12},\"controlType\":3,\"id\":\"eb2e4887-4bd5-45b8-8df8-716258e30265\",\"webPartId\":\"490d7c76-1824-45b2-9de3-676421c997fa\",\"emphasis\":{},\"reservedHeight\":690,\"reservedWidth\":1180,\"addedFromPersistedData\":true,\"webPartData\":{\"id\":\"490d7c76-1824-45b2-9de3-676421c997fa\",\"instanceId\":\"eb2e4887-4bd5-45b8-8df8-716258e30265\",\"title\":\"Insertar\",\"description\":\"Inserta contenido de otros sitios como Sway, YouTube, Vimeo y mucho más.\",\"audiences\":[],\"serverProcessedContent\":{\"htmlStrings\":{},\"searchablePlainTexts\":{},\"imageSources\":{},\"links\":{}},\"dataVersion\":\"1.2\",\"properties\":{\"embedCode\":\"<iframe width=\\\"640\\\" height=\\\"360\\\" src=\\\"@{triggerOutputs()?['body/URLVideo']}\\\" allowfullscreen=\\\"\\\" style=\\\"border:none;\\\"></iframe>\",\"cachedEmbedCode\":\"<iframe width=\\\"640\\\" height=\\\"360\\\" src=\\\"https://web.microsoftstream.com/embed/video/c4d4d984-3fb7-46e2-82e3-2f68c6e36fd0?autoplay=false&amp;showinfo=true\\\" allowfullscreen=\\\"\\\" style=\\\"border:none;\\\"></iframe>\",\"shouldScaleWidth\":true,\"tempState\":{},\"thumbnailUrl\":\"\",\"webPartContentUrl\":\"\",\"cachedEmbedCodeThumbnail\":\"\"}}},{\"controlType\":0,\"pageSettingsSlice\":{\"isDefaultDescription\":true,\"isDefaultThumbnail\":true}}]",
"AuthorByline": [],
"TopicHeader": "",
"BannerImageUrl": "/_layouts/15/images/sitepagethumbnail.png",
"Title": "@{triggerOutputs()?['body/Title']}"
}

 

The image comes to a sharepoint list column (Image hyperlink) and the trigger starts when an item is created.

 

What mistake can I be making when placing the image? I greatly appreciate the help and collaboration.

 

 

Categories:
I have the same question (0)
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Anonymous  can you please share the json from the flow run as well?

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard