36
Views
5
Comments
How to fetch data from server action for a particular screen?

Hi,

I created a server action as getUsers where I have joined multiple entities 
image 

In the Home Screen, I  created a Data Action in which I have called the above server action. But not sure what value to assign.image

How to get that data from the server ? I need get all the data in table in the Home screen. Also attached my oml file

DataAction.oml

Hi,

Create a structure with the columns that you require from aggregate and assign the type of output variable of dataaction to type of list of that structure.

In flow after aggregate assign aggregate list to output variable and aggregate columns to structure columns.

Regards,

Pramod

Hi,

First, you need to add an Output variable to your Server Action. Add an Output variable with datatype as the List type of your aggregate like this 


Then in the Data Action add an output variable and set its datatype to Data Action's Output list type

Then you can assign the variable in the data action and use it. Please note you can also create a record type Output variable containing on the attributes you need depending upon your requirement. Attaching Updated OML

Thanks

DataAction.oml

Hi, 

I have corrected your OML, please check

thanks

DataAction.oml

Hi Sakthipriya B,

just follow this link. data action this will help you. 

or follow this

1. 

2. 

3. 

Thanks 

Prince


Hi Shaktipriya 

Please see the attachement file it will help you for the task

Fetch Data server action.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.