Expand my Community achievements bar.

Join expert-led sessions on Real-Time CDP & Journey Optimizer designed to boost your impact.
SOLVED

How to get the datatypes for the columns in a dataset

Avatar

Level 2

How can programmatically get the datatypes and columns of a dataset or table in Experience Platform?

1 Accepted Solution

Avatar

Correct answer by
Level 6

To add the document link on top of @gautham_madala 's point, here you go: url

In the request you have to pass the datasetId as the input parameter along with an extra query parameter as "properties" with value="observableSchema".

Final url will look like: https://platform.adobe.io/data/foundation/catalog/dataSets/<datasetId>?properties=observableSchema

 

And then loop through the response.

 

Please note:

this process works based on the "preview dataset". If you have added a new column in the schema, but that column do not have the data yet, this response will not show up in the response

View solution in original post

2 Replies

Avatar

Level 6

You can you use the AEP Api and run the curls scripts that adobe provides from github collection in postman and check if it will work for your usecase

Avatar

Correct answer by
Level 6

To add the document link on top of @gautham_madala 's point, here you go: url

In the request you have to pass the datasetId as the input parameter along with an extra query parameter as "properties" with value="observableSchema".

Final url will look like: https://platform.adobe.io/data/foundation/catalog/dataSets/<datasetId>?properties=observableSchema

 

And then loop through the response.

 

Please note:

this process works based on the "preview dataset". If you have added a new column in the schema, but that column do not have the data yet, this response will not show up in the response