Erreur : Ajouter une photo à un word à partir du Dataverse
-
Erreur : Ajouter une photo à un word à partir du Dataverse
Bonjour,
Je souhaite ajouter une photo de mon dataverse vers un document Word.
L’ajout d’un champ classique foncitonne entre les deux.
Mais lorsque je le fais avec une photo j’ai une erreur.
J’ai utilisé la fonciton “Télécharger un image depuis le DATAVERSE” qui me renvoie la fonction ci-dessous.
Il s’agit apparament d’un format Base64, non pris en comtpe dans mon action de copie de champs vers Word.
J’ai essayé de la fonction message avec le code suivant mais il me met expression incorecte :
{ “$content-type”: “image/jpeg”, “$content”: “base64(outputs(‘Télécharger_un_fichier_ou_une_image_de_l’environnement_sélectionné’)[‘body/$content’])}” }Une idée ?
Output image :
{ “statusCode”: 200, “headers”: { “Cache-Control”: “no-cache”, “x-ms-service-request-id”: “44a4203f-3f20-4108-8db7-3ec5e59ae1f4,c651e818-070b-43f6-bef7-92e2359a49a8”, “Set-Cookie”: “ARRAffinity=998cbc676808ffed613a2da1787c3ba4cb16a768df0c6da1e3dd10fc49234d8315134d20c556b0b34b9b6ae43ec3f5dcdad61788de889ffc592af7aca85fc1c508DC44542D745E49576891335; path=/; secure; HttpOnly,ReqClientId=8a2d4a8a-85cc-4e18-9b6b-d39f9cfd5f8e; expires=Wed, 14-Mar-2074 17:55:51 GMT; path=/; secure; HttpOnly,orgId=ec2439d1-3914-ee11-977e-000d3a95b3ff; expires=Wed, 14-Mar-2074 17:55:51 GMT; path=/; secure; HttpOnly,ARRAffinity=998cbc676808ffed613a2da1787c3ba4cb16a768df0c6da1e3dd10fc49234d8315134d20c556b0b34b9b6ae43ec3f5dcdad61788de889ffc592af7aca85fc1c508DC44542D745E49576891335; path=/; secure; HttpOnly”, “Strict-Transport-Security”: “max-age=31536000; includeSubDomains”, “REQ_ID”: “c651e818-070b-43f6-bef7-92e2359a49a8”, “CRM.ServiceId”: “framework”, “AuthActivityId”: “76f93ce3-4fe3-4854-8a9d-afc56aad6542”, “x-ms-dop-hint”: “4”, “x-ms-ratelimit-time-remaining-xrm-requests”: “1,200.00”, “x-ms-ratelimit-burst-remaining-xrm-requests”: “7999”, “OData-Version”: “4.0”, “X-Source”: “1421412152192051391001482481976022911817319052141941720021938271351152042346678241,47382043622212011622210616114624501741761172512617483251131180171253237786218574241113”, “Public”: “OPTIONS,GET,HEAD,POST”, “Timing-Allow-Origin”: “*”, “x-ms-apihub-cached-response”: “true”, “x-ms-apihub-obo”: “false”, “Date”: “Thu, 14 Mar 2024 17:55:51 GMT”, “Allow”: “OPTIONS,GET,HEAD,POST”, “Content-Length”: “4160”, “Content-Type”: “application/octet-stream”, “Expires”: “-1” }, “body”: { “$content-type”: “application/octet-stream”, “$content”: “iVBORw0KGgoAAAANSUhEUgAAAJAAAACQCAYAAADnRuK4AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAA/VSURBVHhe7Z3JbxzHFYfnn0mQU3IJkFv+l5wM2EEMJAESIMghQIAgt8AX20AQJ3IERLZsWbAka+FOiosoivu+7/s6G7fhS301LKrZ6iFn3G2J3f1+wEN39TIzVfX1q+raJvOjDwryNu0Xf8jLrz7KyR9v5dXeor33cV5++ad8YJ6EsbcO0O/+lZf5taIcHx+rvUXb3j+Sv901efB+tBC9dYB+/1leFtZfA7S3tyfDw8PS19cnm5ublyLt7OjoyFq1x9XetJ2DI/n7VyYPkgbQ/Py8zMzMXGw5trS0JK9evbJgcXxyclKGhobs/vLysiwuLsrCwoIMDg7aa7h+dna2IoBqCQZodHRUnj59aoFZW1uzxwDixYsX0tDQYK2np0cGBgbk5cuX0traKl1dXTIxMWGBe/78udTV1Ulvb6+srq5efK7aZUskQOvr69aT5PP5S5GlWDo8PJRCoWDPscWKxeKlLee812lxVtkSA9D7n+ZkdKEQGEm1H86WNory59u5+AP04w9y8tMPd+Xnv91We4v2sw935Ce/zgbmSRjLvPfJkail0D4+DD5eo2VElTqdnZ1Zi0IKUAqlAN1w7eRERhbPpGuyJKNLJSkcnUk2m5WDg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