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 :
and this is how I put the image:
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&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.
@Anonymous can you please share the json from the flow run as well?
WarrenBelz
146,552
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,928
Most Valuable Professional