Hi - (I'm extremely new to this)
I have created a Server Action to run an aggregate that returns a row - but I only want to send the ID of the returned row.


Input Parameter - Country Name

Entity - Country

Rows - ID, Name,.....


I created the aggregate to find a country by its name - which is working perfectly

Now I just need to return the ID from the resulting row


(It is set up so that there is no way for duplicates, null entries or spelling mistakes)


I have an Output Parameter that I'm trying to Assign the resulting ID to - but I seem to have difficulty doing it

Solution

Hi Robert,

In server action take output parameter as Country Identifier type-

and after getting result from aggregate assign in this output variable like-

"GetCountry.List.Current.CountryId"

Hope this will help you.

Regards

Rahul Sahu

Solution

Hi Robert Honiball,

Set the output parameter datatype as Country identifier and then assign the resulted id to this output variable.

Hope this will helps You

Regards 

Poonam

Rahul Sahu wrote:

Hi Robert,

In server action take output parameter as Country Identifier type-

and after getting result from aggregate assign in this output variable like-

"GetCountry.List.Current.CountryId"

Hope this will help you.

Regards

Rahul Sahu


Thanks
I knew the solution was going to be simple - but I was getting frustrated because I couldn't find it