Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Pedro Neves
0
Views
1
Comments
How to access eSpace entities from c#?
Question
Is there any api or function that allows retreiving record list of eSpace entities?
A little background:
I have a dll with financial functions that I need to integrate with an Service Studio application.
Some of this functions require various data already defined as entities.
How can I reach or pass them to the dll functions?
Miguel Ventura
Staff
Hi Pedro,
The easiest way to give your extension action access to data from the eSpace would be to have the eSpace passing the data to the action.
To do so, you may:
create a structure in your extension to store the needed data
add an input parameter to your action of type Record List using as a record the structure you've created
update the references in your eSpace to the action - the new structure should come along
in your eSpace logic, query the data from the database
use a foreach iteration over the data to append it to a variable of type record list of the structure you've created in your extension
pass that variable as input parameter to the extension action
This should be the easiest way. As for having the extension to get the data from the eSpace by itself, I wouldn't recommend it as there's no way to ensure that an extension runs in the context of that particular eSpace (it can be imported and used by other eSpaces).
Cheers,
Miguel
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...