Power Dynamics
  • Power Dynamics
  • 🍕My name
  • D365 CE
    • Copilot
      • 🥐Add Copilot into Rich Text Control
    • Sales
      • Copilot in D365 Sales
      • Export record to PDF
    • Customer Experience
      • Contact Center (Omnichannel)
        • 🐚Internal Live Chat in MDA
        • 📢Add Chat Widget to Power Pages - Proactive Chat
      • Attachment Control
      • Case Routing: Basic Routing rule set
      • Custom SLA for any Entity
      • Customer Insight
        • Journey - Custom Trigger - Call Power Automate
    • Field Service
  • Power Platform
    • Analytics
    • Dataverse
      • Use case for the feature of Record ownership across Business Unit
      • 💡Workaround: Change the OOB "Exchange Rate" of a record
      • Using a Virtual Entity to store historical log (sample)
      • Disable Empty Address record
      • Using Adaptive card
      • Block Unmanaged Customizations
      • 🪃Recycle Bin on Dataverse (Preview)
    • Model Driven App
      • 💡Run SSRS report on MDA mobile
      • 💡Tip: Create a Security Role with "App Opener" minimum privileges
      • Tag @person to notify in MDA
      • Auto search on the Lookup field
      • Activities with multiple related records
      • Embedded Power BI - Dashboard
      • Embedded Power BI - Form
      • "Custom Help" - Is it help?
      • New modern Command Bar
      • Tip: Hide the button "Add Existing Record" on subgrid
      • Custom Page - Why not?
      • Hiding sensitive column data
    • Canvas App
    • Fabric & Power BI
      • New Text slicer
      • Dataverse link to Microsoft Fabric
      • 💡Leveraging Interactive Warehouse Floor Maps in Power BI
      • Calculation Group for Time Intelligence
    • Power Automate
      • ✅Sequential Approval
      • 📤Create an Appointment by Outlook Graph API
      • Dowload SSRS Report and Send email
      • Power Automate: Add a table in Email
      • 💡Tips: Get "DisplayName" of the Lookup field on Power Automate
      • E-sign: Power Automate & DocuSign
  • D365 Finance & Operation
    • General
      • 🇻🇳D365 FnO - Virtual entities: Use case
    • Finance
      • Consolidating Customer & Vendor Balances
    • Supply Chain
      • Landed Cost Series
        • Landed Cost- Essential Configuration
        • Landed Cost Scenarios 1
Powered by GitBook
On this page
  • My thoughts...
  • Checking now...

Was this helpful?

  1. Power Platform
  2. Model Driven App

Run SSRS report on MDA mobile

#MDA, #ModelDrivenApp, #Mobile, #PowerFx

PreviousModel Driven AppNextTip: Create a Security Role with "App Opener" minimum privileges

Last updated 10 months ago

Was this helpful?

Hello friends,

Today, I want to share my thoughts on running SSRS reports on Power App Mobile for Model Driven Apps. A key challenge is the absence of the "Run Report" button in the Power Apps Mobile for Model Driven Apps, which means users are unable to generate reports when needed.

For example, in my case: a worker using Power Apps Mobile to manage Work Orders on the field. Once a Work Order is completed, the worker needs to run the "WOSummary" report to display the Work Order information and confirm it with the client. Without the ability to run this report on the mobile app, the worker faces significant inconvenience and inefficiency.

Here, we can see the difference when opening MDA on the Web/Browser and on Power Apps Mobile.

  • MDA on Web/Browser: Open the Work Order form, and the "Run Report" button is visible.

  • MDA on Power Apps Mobile: Open the Work Order form, and the "Run Report" button is invisible.

My thoughts...

Considering this restriction, my first thought is to implement a new "View Report" button on the main Work Order form.

You can check my blog post about New modern Command Bar

Okay, I will proceed with my solution and implement it. I'll bypass the step of creating a new command, which you can find in the reference link mentioned earlier.

I will create a new command on the Work Order main form for running the "WOSummary" report on the Selected record. You can see as below.

After creating a button, I modify the PowerFx formula in the OnSelect event: Clicking the "WO Summary" button triggers the system to run a report for the selected Work Order.

By following the link above, I have tried and edited a URL structure as below.

//URL Structure
[organization url]/crmreports/viewer/viewer.aspx?action=run&helpID=[[ReportFileName]]&id=%7b[[ReportGUID]]%7d&context=records&recordstype=[[EntityTypeCode]]&records={[[RecordGUID]]]

My sample: Running report "WOSummary" on Work Order entity.

  • [[ReportFileName]]: WOSummary.rdl

  • [[ReportGUID]]: 99211b9c-8cde-ee11-904c-0022485a170d

  • [[EntityTypeCode]]: Work Order (10327) You can find the entity type code by used FetchXML Builder

  • [[RecordGUID]]: Work Order record GUID

// PowerFx
Launch(
    Concatenate("https://org5bc5a68a.crm5.dynamics.com/crmreports/viewer/viewer.aspx?action=run&helpID=WOSummary.rdl&id=%7b99211b9c-8cde-ee11-904c-0022485a170d%7d&context=records&recordstype=10327&records={",Self.Selected.Item.'Work Order',"}"));

After that, just Save and Publish this command and test it now...

Checking now...

On my phone, I opened the Power Apps mobile and ran my testing app "NTDyns.Asia" > navigate to Work Orders > and open specific a Work Order record.

Hoping well with my thoughts.

About my command, as my Functional role, I used PowerFx language. But you can use JavaScript to call the action for run reports also.

Reference link to run an SSRS report by URL:

Yeah... , we already found all the components for URL Structure. Now I will put these to my PowerFx formula.

Thank you for your reading! [NTD]yns.asia

🎉
☺️
Opening a Report by using a URL
💡
The "Run Report" button is visible on Web/Browser
The "Run Report" button is invisible on the Power Apps Mobile
New command: View Report > WO Summary
How to find entity type code
Button with PowerFx fomular: Run report "WOSummary"
Testing - Web on right - Mobile on left
Page cover image