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 / Sending the data as a ...
Power Automate
Unanswered

Sending the data as a turn context activity value or as an object when clicks on Submit button of adaptive card

(0) ShareShare
ReportReport
Posted on by 7

Hi 

 

I have a adaptive card with Submit button which send the submit button message as data json with time of submit button click.

 

 

public static Attachment GetUserRating(bool update = false)
 {
 var cardBody = new List<AdaptiveElement>()
 {
 new AdaptiveTextBlock()
 {
 Size = AdaptiveTextSize.Large,
 Weight = AdaptiveTextWeight.Bolder,
 Text = "Choose the rating",
 Wrap = true
 },
 };
	
	cardBody.Add(new AdaptiveChoiceSetInput
 {
 Type = AdaptiveChoiceSetInput.TypeName,
 Id = "rating" 
 IsRequired = true,
 IsMultiSelect = false,
 Style = AdaptiveChoiceInputStyle.Expanded,
 Choices = new List<AdaptiveChoice>
 {
 new AdaptiveChoice() { Title = ResourceString.ExcellentChoiceTitle, Value = "Excellent" },
 new AdaptiveChoice() { Title = ResourceString.GoodChoiceTitle, Value = "Good" },
 new AdaptiveChoice() { Title = ResourceString.AverageChoiceTitle, Value = "Average" },
 new AdaptiveChoice() { Title = ResourceString.PoorChoiceTitle, Value = "Poor" },
 new AdaptiveChoice() { Title = ResourceString.VeryPoorChoiceTitle, Value = "Very Poor"}
 }
 });

 cardBody.Add(new AdaptiveActionSet()
 {
 Actions = new List<AdaptiveAction>()
 {
 new AdaptiveSubmitAction()
 {
 Title =Submit,
 DataJson= GetJsonMessage($"RatingCardSharedTime_{DateTime.UtcNow:yyyy-MM-ddTHH:mm:ss.ffffff}"),
 }
 }
 });

 return GetAttachment(AdaptiveCard.ContentType, GetAdaptiveCard(cardBody));
 }

 

We are using the rating cad shared time for validating the card response . We want to automate this card using power automate

 

We wanted to send the data json message with the string Rating card shared time with date and time. From code we are getting this response as a turn context activity value object.

 

Can we send the same message as a turn context value form power automate

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard