709
Views
6
Comments
Client and Server Action Variable
Question

How to Access Client Variable Values inside Server Action ? Please not refer tutorial of outsystem.

2026-02-26 06-29-24
Rahul
 
MVP

Hi ,

You are not able to access client variable inside server action directly.

But you can make your own way like.

1. Create a server action with input_parameter.

2. Use this server action on client action and pass the client variable value in this input parameter and write you logic inside server action.


Hope this will help you.


2023-01-03 18-53-09
Sangam Bhondele

how do i pass the value of input parametre of client side to thhe server side input parametre


2026-02-26 06-29-24
Rahul
 
MVP

Hi,

Find the attached oml for your reference .

also see the working example - Demo

OSTest.oml
2022-08-19 05-46-27
Aman Vishwakarma

Hi Sangam , here is what you were expect of ! 

Regards :-

Aman Vishwakarma

BuildAListScreenExercise.oml
UserImage.jpg
Rishabh Ojha

Hi Everyone,


Is it possible to pass an object data type from client to server action, I am getting error for the same.

Why other variables are allowed but not object?

2016-04-22 00-29-45
Nuno Reis
 
MVP

Service Studio will tell you "Invalid Client Action. Server Actions with 'Object' type parameters are not allowed in Client Actions" without any more clues.

In summary, Server Actions are a lot more powerful than Client Actions. Client Actions expect a straightforward logic and minimum work interpreting the data. They may convert Integer to Text and other small changes, but Client Actions don't work with Objects.

If you want to send an Object, Client Action will need to convert 'something' into Object. And again, a Client Action doesn't know at Object is.

What is expected is that you have a in-between Server Action that can receive Client data, turn it into an Object, and send it to the server action that uses objects.

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