Actions
Adaptive Cards have a wide range of actions that can be triggered in a few different ways.
Trigger Points
There are a few ways to trigger the following actions. Options range from a standard button from inside an ActionSet or an Image :
Adding the ActionSet to your Adaptive Card and selecting "Add an action" from the Card Canvas.
Adding an Image and selecting an Action Type from the dropdown menu within the Element Properties Toolbar.
Selecting a column from a ColumnSet and selecting an Action Type from the dropdown menu within the Element Properties Toolbar.
Selecting a TableCell from a Table and selecting an Action Type from the dropdown menu within the Element Properties Toolbar.
Add actions directly onto the card by selecting the Card Canvas and clicking "Add an action".
Action.OpenUrl
Description
A simple action that will open whatever URL you put in the "Url" parameter in the Element Properties Toolbar.
Technical Documentation
Read more about Action.OpenUrl
Action.Submit
Description
Acts as the main action button for sending data back to Looply.
Use this action for "Approving" or "Rejecting" cards or if your card contains Input Elements where the data you want to use will be sent to your Looply Workflow. When a user clicks on this action any data bound to the action is sent back to Looply as well.
For example, a card that is of this shape:
The above card has 2 Input.Text fields and an Action.Submit action. If both fields are filled and the button is clicked then the data sent to Looply will look like this:
Note: Looply will know which workflow this data will be sent to when a user clicks on the submit button, therefore, you may see additional information being transferred back to the Looply Workflow.
Technical Documentation
Action.ShowCard
Description
This action will trigger a new card to appear within your current card. This is perfect if you don't want to show aspects of your card until the end user clicks on this action. A common use case for this is if a user wants to reject a card yet if they reject will have to supply a reason.
Here's an example below:
The above is a card with a "Reject" button that if clicked will show an Input.ChoiceSet where they will have to select a value to send back to Looply in order to reject the card.
Note: Data from inputs in this nested card will still be sent back to Looply as there is an Action.Submit button connected. Data sent to Looply will follow the same principles as shown in the Action.Submit section.
Technical Documentation
Read more about Action.ShowCard
Action.ToggleVisiblity
Description
This is a simple action that will show and hide select elements within the adaptive card.
Technical Documentation
Read more about Action.ToggleVisibility
Action.Execute
Description
This action provides no use within Looply and should not be used. This action is useful if the card is implemented on an independent system from Microsoft Teams where a developer will independently make an invoke call to a Microsoft Bot/App. This button is identical in design to the Action.Submit action yet the data is not automatically sent anywhere as this process is independently implemented by the hosting app.
Technical Documentation
Last updated