Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Add a Custom "Mark as Paid" button on Main Invoice View/Main Grid

(0) ShareShare
ReportReport
Posted on by 24
Hi there,
 
I have a business requirement in which we need to add a custom /Mark As Paid/ button on Main Invoice View/Main Grid. The custom button will have the functionality to mark all the invoices being paid automatically.
 
Since, I do not have programming background, can anyone assist me how we'll to create custom button with such functionality.
 
Thanks!
  • Dengliang Li Profile Picture
    Microsoft Employee on at
    Add a Custom "Mark as Paid" button on Main Invoice View/Main Grid
    Hi,
     
    In the Apply to each control, update the invoice records from the previous step List rows.
     
    Best Regards,
    Dengliang Li
     
  • Talal Tariq Profile Picture
    24 on at
    Add a Custom "Mark as Paid" button on Main Invoice View/Main Grid
    Hi Dengliang Li,
     
    I have tried the solution that you have mentioned but I'm actually stuck at "Apply to Each" control and it seems like this control used to get the output from the previous step. Can you further guide me about this step again so that I can re-check my flow for any error as such.
     
    Thanks!
  • betlejuice Profile Picture
    2,139 on at
    Add a Custom "Mark as Paid" button on Main Invoice View/Main Grid
    Hi,
     
    you can add a new button editing the commnad bar with PowerFx.  Try this:Add Power Fx buttons to model-driven apps – Ben Prins
  • Suggested answer
    Dengliang Li Profile Picture
    Microsoft Employee on at
    Add a Custom "Mark as Paid" button on Main Invoice View/Main Grid
    Hi,

    You can use Smart Button to create a Mark as Paid button. Click on this button to call Power Automate Flow.
    Call Workflow directly from a button using Ribbon Workbench - CloudFronts
     
    Copy the following code and place it where indicated in the first image.
    const req = new XMLHttpRequest();
            // This URL comes from the connector in the flow / when an HTTP request is received / generated URL.
            var url = "<Your URL>";
            req.open("POST",url,true);
            req.setRequestHeader("Accept","application/json");
            req.setRequestHeader("OData-MaxVersion","4.0");
            req.setRequestHeader("OData-Version","4.0");
            req.setRequestHeader("If-None-Match","null");
            req.setRequestHeader("Content-Type","application/json ");
            req.send();

    Then with Power Automate Flow you can mark all active invoices as paid.
     Fill in the HTTP Post URL here.
    // This URL comes from the connector in the flow / when an HTTP request is received / generated URL.
            var url = "<Your URL>";


     
     
     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more.
    If you have further questions, please feel free to contact me .
     
    Best Regards,
    Dengliang Li

     

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,209 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,923 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans