pnp / teams-dev-samples

Microsoft Teams sample applications and related content https://aka.ms/teams-samples
MIT License
284 stars 146 forks source link

Approval Scenario using universal action in Adaptive card - Node.js #145

Open Wajeed-msft opened 3 years ago

Wajeed-msft commented 3 years ago

Sample description

End User Scenario:

  1. User and manager installs App to a group chat.
  2. User send bot command to initiate approval request.
  3. User submits the request by filling details in Adaptive card.
  4. Manager gets bot notification for approval.
  5. Manager can approve/reject request from bot message itselft.
  6. User gets notified for status change.

Developer Scenario:

  1. Handle "raise approval request" commad in bot.
  2. Send Adaptive card response having Universal Action for Submit.
  3. Manager should see option to approve/reject and user should see option to edit or cancel by using up to date views.
  4. Once approved/rejected by manager, card should be updated with latest status for approval.

Docs Ref: Universal Actions for Adaptive Cards

Are you willing to help?

Yes

simonagren commented 3 years ago

Hey! Would you like some help with this? :)

Wajeed-msft commented 3 years ago

Sure. Are you interested in building this sample?