GET data from endpoint | Community
Skip to main content
New Participant
December 1, 2023
Solved

GET data from endpoint

  • December 1, 2023
  • 2 replies
  • 961 views

Hi there,

 

There is an endpoint that I would like to regularly ingest the response data into AEP, this means using GET as opposed to a POST from the endpoint. Is this possible?

 

Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by abhinavbalooni

Thanks for the details @akwankl 

 

I don't think this would sit inside AEP. This is something which would be a middle layer like a scheduled cloud function/microservice which would call the CMS API endpoint and then grab the response and then make another API call to AEP dataset to update the dataset values.

 

This should be easily achievable through a Azure Function/AWS lambda or a GCP cloud funtion.

 

Also, adding to the GET vs POST bit, you can't have GET here as GET methods usually retrieve information.

 

Please do let me know if I misunderstood the query.

 

Hope the above helps ?

 

Cheers,

Abhinav

2 replies

arpan-garg
New Participant
December 1, 2023

Hi @akwankl - On top of what @abhinavbalooni mentioned. Does your client have a AJO license, you can schedule journeys in AJO that uses a custom action to call the API and later feed in the response to a profile via update profile action.

 

Thanks,

Arpan

abhinavbalooni
New Participant
December 1, 2023

@arpan-garg Yeah that's a nice callout !

Should work with AJO.

abhinavbalooni
New Participant
December 1, 2023

Hey @akwankl 

 

Could you add more details. May be any example for us to think through the possibilities.

 

Cheers,

Abhinav

akwanklAuthor
New Participant
December 1, 2023

For sure!

 

For example, there's an endpoint that connects to our CMS which returns info of our different offers, e.g. 

[{offerid:"123",

"offername": "Test",

"status": "Draft"

},

{offerid:"222",

"offername": "Test2",

"status": "Published"

}

 

I would like call this API endpoint to retrieve the information on a daily basis, and ingest into a dataset that we can use to build segmentation such as "OfferID=222, status=published.

 

Thanks!

abhinavbalooni
abhinavbalooniAccepted solution
New Participant
December 1, 2023

Thanks for the details @akwankl 

 

I don't think this would sit inside AEP. This is something which would be a middle layer like a scheduled cloud function/microservice which would call the CMS API endpoint and then grab the response and then make another API call to AEP dataset to update the dataset values.

 

This should be easily achievable through a Azure Function/AWS lambda or a GCP cloud funtion.

 

Also, adding to the GET vs POST bit, you can't have GET here as GET methods usually retrieve information.

 

Please do let me know if I misunderstood the query.

 

Hope the above helps ?

 

Cheers,

Abhinav