web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Auto Approval bot. Can...
Power Automate
Answered

Auto Approval bot. Can I inject custom messages using adaptive cards or similiar?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have an approval flow which cleans up shift requests. There is an option to add some custom message information to this approval so that the user gets this message with the approval granted. Is it possible to use adaptive cards to change this message perhaps. Its a handy thing to remind an end user to do a certain thing or remember something relative to the shift. The alternative is to inject to the shift slot itself, but this seems more suited to scheduled things which re-occur.

Ideally I'd like a spot to populate the adaptive card say in a private tab in Teams, then whenever the flow runs its uses that adaptive card data as the custom message information. The card can then be cleared or set to a generic message for the bulk of the time.

 

Tony

Categories:
  • v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    If you want the approval to generate an adaptive card that could be inserted into the Team massage, you could use the Create an approval action. Add the custom message into the Details field or Create a custom response to put information into options: 
    Annotation 2020-05-26 143731.jpg

    If the adaptive card generated, there is no way to edit, so we should edit the approval request before sending message to team, the way to edit the card is use markdown:

    https://docs.microsoft.com/en-us/power-automate/approvals-markdown-support

     

    After post message, you could create a wait for an approval action to accept the approval request, then the comments get from team could be extracted:

     

    Annotation 2020-05-26 143843.jpgAnnotation 2020-05-26 144442.jpg

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I see what you mean. I think I am looking for doing this from the other end or the other way around.

    I would like to create a "template" kind of thing that sits idle in Teams. I populate the message field with my notes. This information is held somehow (I was thinking an adaptive card could be used as a container to be picked up by the existing approval flow) and injected into the freshly approved shift.

    Perhaps I need to look at this from another angle.

    Perhaps I need to create a sharepoint list text item. That may be able to be declared as something to be inserted during the flow process. ie a default text or an optional replacement text item.

    Ideally a placeholder for the text would exist in the approval messages bit. If it existed in sharepoint or elsewhere it would be used, if it did not exist then a default text would be used.

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have figured out a method without using the adaptive card process. Its not as elegant potentially but I'm only chasing functionality at the moment.

    I created a powerapp which places a text string into a flow. The flow opens a sharepoint list, clears the current items and inserts a new item with the message body being the text entered in the app.

    When the approval bot flow runs it appends this message text into the approval message after the static message.

    Its a little manual, but does the trick and requires nothing special to make it work.

     

    Tony

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 389

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard