Two Easy Ways to Mark a Task as Complete in PowerApps: Patch & Teams Adaptive Cards 🚀

Поділитися
Вставка
  • Опубліковано 5 січ 2025

КОМЕНТАРІ •

  • @StephMarshall
    @StephMarshall  3 місяці тому

    😻Code Snippit😻
    Patch(
    {DATASOURCE},
    LookUp(
    {DATASOURCE},
    ID = varThisItem.ID
    ),
    {
    Status: "Complete",
    'Final Status': User().FullName & " (" & User().Email & "): Marked this item as complete on " & Text(
    Now(),
    DateTimeFormat.ShortDateTime24
    ) & If(
    !IsBlank(txtComments.Text),
    " with the following comments: " & txtComments.Text & ". " , ". "
    )
    }
    );
    If(
    !IsEmpty(Errors('FlightDeck Submissions')),
    Notify(
    First(Errors('FlightDeck Submissions')).Message,
    NotificationType.Error,
    5000
    ),
    Notify(
    "Completed successfully",
    NotificationType.Success,
    5000
    ),
    Navigate(
    ScreenMain,
    ScreenTransition.CoverRight
    )
    );
    Set(
    varComplete,
    false
    );
    Set(
    varThisItem,
    Blank()
    )

  • @bobblandeburgo3842
    @bobblandeburgo3842 3 місяці тому +1

    Adaptive cards are an under-utilized feature in 365!