Notifications
Announcements
No record found.
I am working on calling custom web service from postman. During postman post request I am getting data in text format not in JSON. How to get data in JSON Format.
Code -
Web service method
public str getCustomer(str strDataAreaId, str strAccountNum) { CustTable custTable; changecompany(strDataAreaId) { select * from custTable where custTable.AccountNum == strAccountNum; } return custTable.AccountNum + " - " + custTable.name(); }
output -
First of all, let me report your code in the right way, to make it easier to read. Please alrways use Insert > Code (in the rich-formatting view).
public str getCustomer(str strDataAreaId, str strAccountNum) { CustTable custTable; changecompany(strDataAreaId) { select * from custTable where custTable.AccountNum == strAccountNum; } return custTable.AccountNum " - " custTable.name(); }
I see that your method is indeed written to reeturn a single string. What would you like to get instead?
Hi,
You can click on raw and select format type as JSON,and you can start with the link to custom service development:
docs.microsoft.com/.../custom-services
dynamics365musings.com/.../
Hi,
You have an option to select 'Json' in Postman body
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 660 Most Valuable Professional
André Arnaud de Cal... 549 Super User 2025 Season 2
Sohaib Cheema 307 User Group Leader