Announcements
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Abhilash Warrier 681 Super User 2026 Season 1
André Arnaud de Cal... 551 Super User 2026 Season 1
Giorgio Bonacorsi 471