Skip to main content

Notifications

Business Central forum
Suggested answer

Save request and repones from API

Posted on by 7
Hi all,
I am looking for some examples or documentation.
When you are receiving a Rest API request and send a response is there a way to save both of them in a table, probably a blob field, and then do some action?
 
I'm not sure if I can create an API page and somehow save the request and response.
Or should I create a Codeunit as a web service? But then again if I use web services can I get a JSON as a parameter?
 
Not sure what is possible in Business Central's latest version, or what is the best approach.
Categories:
  • Suggested answer
    gdrenteria Profile Picture
    gdrenteria 4,046 Super User on at
    Save request and repones from API
  • Save request and repones from API
    Hi HeinKruger
    Just to clarify you saying that I can see the body of the request and response in temelerty?

     
  • HeinKruger Profile Picture
    HeinKruger 27 on at
  • Suggested answer
    Saurav.Dhyani Profile Picture
    Saurav.Dhyani 12,769 User Group Leader on at
    Save request and repones from API
    Hi,
     
    Yes, if you want to store them in a blob or you can read the response using Json objects and then pick values of fields that you need and then store in a table records.
     
     
    Regards,
    Saurav Dhyani

Helpful resources

Quick Links

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,907 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,189 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans