cancel
Showing results for 
Search instead for 
Did you mean: 

How to expose .XSJS as a service like in .XSOData

Aisurya
Participant
0 Kudos

Hello Experts,

How to get the metadata in .xsjs service

Ex : I have one "insert.xsjs" service which inserts data into DB . But here the question is how can i get the metadata of the table in which am inserting the value , like we do in .XSOData ($metadata).

Or is it possible to consume the .XSJS in .XSOData .

Regards,

Aisurya

Accepted Solutions (0)

Answers (1)

Answers (1)

pfefferf
Active Contributor
0 Kudos

XSJS services do not expose meta-data information like it is done by an XSOData service. If you wanna see the e.g. column information for the table you are inserting data you can get it from system view TABLE_COLUMNS (you can expose that information also via an XSJS or XSOData service if it is necessary for you).

Regarding the question if XSJS coding can be used in XSOData: XSJS coding can be used in XSOData Custom Exits.

Regards,
Florian