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 / Deleted cell value aft...
Power Automate
Unanswered

Deleted cell value after adaptive card is accepted

(0) ShareShare
ReportReport
Posted on by 48

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!

Categories:
I have the same question (0)

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard