How to get a single attribute value of a entity on a page?

0
I have created three different fields to get sum of three type of Expense. 1. Total expenses 2. This Month Expense 3. Today Expense How can I get these three data on a same page /file?guid=19703248381223387 /file?guid=19703248381223486 /file?guid=19703248381223578
asked
1 answers
0

Hi Akhilesh Yadav,

 

To display those totals on the same page, follow this approach:

 

Create a non-persistent entity (e.g., DashboardSummary) with attributes:

 

TotalExpense (Decimal)

 

ThisMonthExpense (Decimal)

 

TodayExpense (Decimal)

 

 

In a microflow before opening the page:

 

Create an object of DashboardSummary

 

Calculate each value (as you already did in separate microflows)

 

Set the attributes into that object

 

Return this single NP object as the page parameter

 

 

On your page:

 

Use a Data View with data source → this microflow

 

Inside the Data View, use Text widgets to show each attribute

(e.g. TotalExpense: $DashboardSummary/TotalExpense)

 

 

This way, you don’t need multiple microflows as separate calls — just one combined object containing all three totals. It will display correctly together on the dashboard.

answered