
Announcements
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