
Announcements
Hi,
the problem is as follows:
I have a power app where I enter email, additional information and then adaptive card is sent to the email I just entered (all information is stored in different sharepoint list columns). When a person receives adaptive card, he has two options, either accept it or reject and enter another email. When adaptive card is accepted, email address from the sharepoint list is deleted.
Any ideas how to solve this and avoid deletion of the email? If it helps, code sample of the adaptive card is bellow.
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.2",
"body": [
{
"type": "TextBlock",
"text": "Number: @{items('Apply_to_each')?['Number']}",
"weight": "Bolder",
"size": "Medium"
},
{
"type": "TextBlock",
"text": "Information",
"isSubtle": true,
"wrap": true
},
{
"facts": [
{
"title": "Date",
"value": " @{body('Get_item')?['Spoilage_date']}"
},
{
"title": "Project",
"value": "@{body('Get_item')?['Project']} "
},
{
"title": "Element",
"value": " @{body('Get_item')?['Element_group']}"
},
{
"title": "Quantity",
"value": "@{body('Get_item')?['Element_count']} "
},
{
"title": "Type",
"value": "@{body('Get_item')?['Spoilage_type']}"
},
{
"title": "Reason",
"value": " @{body('Get_item')?['Spoilage_reason']}"
},
{
"title": "Info",
"value": "[Press here](@{items('Apply_to_each')?['{Link}']})"
},
{
"title": "Formed",
"value": "@{body('Get_item')?['Author']?['DisplayName']} - @{body('Get_item')?['Author']?['Email']} "
}
],
"type": "FactSet"
},
{
"type": "TextBlock",
"text": "Explanation",
"wrap": true
},
{
"type": "Input.Text",
"id": "Spoilage_comment",
"spacing": "None",
"isMultiline": true,
"placeholder": "Insert comment"
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Accept",
"id": "Spoilage_accept",
"data": {
"Currently_messaged": "",
"approval": "Accepted"
}
},
{
"type": "Action.ShowCard",
"card": {
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"text": "Responsible"
},
{
"choices": [
{
"title": "Dep1",
"value": "Dep1"
},
{
"title": "Dep2",
"value": "Dep2"
},
{
"title": "Dep3",
"value": "Dep3"
},
{
"title": "Dep4",
"value": "Dep4"
},
{
"title": "Dep5",
"value": "Dep5"
},
{
"title": "Other",
"value": "Other"
}
],
"placeholder": "Address",
"type": "Input.ChoiceSet",
"id": "Spoilage_type",
"value": "@{body('Get_item')?['Spoilage_type']}"
},
{
"type": "Input.Text",
"id": "Next_email",
"placeholder": "Enter email",
"style": "Email"
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Send",
"id": "Spoilage_reject",
"data": {
"Currently_messaged": "",
"approval": "Rejected"
}
}
]
},
"title": "Reject"
}
],
"-ms-tokens": {}
}
Thanks!