Hi Team
Is there an example, if you want to customized a buttons(Request to Action, Submit for Approval, Submit-Rejected)? So that later on i can call these actions on my work flow on power automate?
Hi Team
Is there an example, if you want to customized a buttons(Request to Action, Submit for Approval, Submit-Rejected)? So that later on i can call these actions on my work flow on power automate?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mithilesh TataRank #862 · 2.6K reputationPosted Mar 14, 2024, 5:36 AM EDT
If you want to create customized buttons with specific actions like "Request to Action," "Submit for Approval," and "Submit-Rejected" in your application, you can achieve this using React Native. Here's a simplified example demonstrating how you can create such buttons and trigger corresponding actions:
import React from 'react'; import { View, TouchableOpacity, Text } from 'react-native'; const CustomButton = ({ title, onPress }) => ( {title} ); const App = () => { const handleRequestToAction = () => { // Perform action for "Request to Action" console.log("Request to Action triggered"); // You can call Power Automate workflow or any other logic here }; const handleSubmitForApproval = () => { // Perform action for "Submit for Approval" console.log("Submit for Approval triggered"); // You can call Power Automate workflow or any other logic here }; const handleSubmitRejected = () => { // Perform action for "Submit-Rejected" console.log("Submit-Rejected triggered"); // You can call Power Automate workflow or any other logic here }; return ( ); }; const styles = { container: { flex: 1, justifyContent: 'center', alignItems: 'center', }, button: { backgroundColor: 'blue', padding: 10, marginVertical: 10, borderRadius: 5, }, buttonText: { color: 'white', fontSize: 18, }, }; export default App;In this example:
CustomButtoncomponent that acceptstitleandonPressprops. This component renders aTouchableOpacitywith the provided title and triggers the correspondingonPressfunction when pressed.Appcomponent where we define the actions (handleRequestToAction,handleSubmitForApproval,handleSubmitRejected) that should be triggered when the respective buttons are pressed.You can integrate this code into your React Native application and customize it further based on your requirements. Later on, you can call these actions in your Power Automate workflow by integrating with your application's backend or APIs.
Guest UserRank #877 · 2.5K reputationPosted Mar 14, 2024, 6:38 AM EDT
Hi Tata
I am sorry was not clear enough, was talking directly from microsoft sharepoint. I see they got options to use like JSON to customize it and saw some examples on github as well for this.
Tuhin PaulRank #7 · 71.9K reputationPosted Mar 14, 2024, 3:52 PM EDT
Method 1: Using Cloud Buttons
Create a Cloud Button Flow:
Create Buttons in Power Automate Desktop:
Method 2: Using Adaptive Cards (More Advanced)
Create an Adaptive Card Template:
Use the Adaptive Card in Power Automate Desktop:
Tuhin PaulRank #7 · 71.9K reputationPosted Mar 14, 2024, 3:53 PM EDT
Triggering the Actions in Power Automate Cloud Flows: