Hi,
I have created a picture library.
when a user submits a picture in the library, i made a flow that is displaying an adaptative card for me.
It works well but how can i display the picture that he wants to submit or if it is not possible how to make the url of the photo clickable.
Thanks for your advice
Solved! Go to Solution.
Hi @ALP1,
In your image control of your adaptive card you could input a variable or a dynamic value from your flow.
Below is an example.
1. Add a get file properties to retrieve the properties of the submitted file
2. Use the Link to Item field in the Url field of your image control. Add it via the payload editor.
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.2",
"body": [
{
"type": "Image",
"id": "Picture",
"url": "@{outputs('Get_file_properties')?['body/{Link}']}"
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit"
}
]
}
Hope this helps a bit.
Hi @ALP1,
In your image control of your adaptive card you could input a variable or a dynamic value from your flow.
Below is an example.
1. Add a get file properties to retrieve the properties of the submitted file
2. Use the Link to Item field in the Url field of your image control. Add it via the payload editor.
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.2",
"body": [
{
"type": "Image",
"id": "Picture",
"url": "@{outputs('Get_file_properties')?['body/{Link}']}"
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit"
}
]
}
Hope this helps a bit.
Yes thank you very much.
First question : Where did you find the syntax @{outputs('Get_file_properties')?['body/{Link}']}
Do you have documentation ?
Second question : Do you know how i can rotate the picture ?
Correct the highlighted errors and try again.
thank you after few days it works well. thanks again
Join digitally, March 2โ4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
User | Count |
---|---|
80 | |
56 | |
55 | |
43 | |
39 |
User | Count |
---|---|
84 | |
81 | |
76 | |
63 | |
42 |