What is a Sticky Post?

A sticky post is a special WordPress feature that keeps a post pinned to the top of post lists — both in the admin view, on the frontend, and even in REST API responses unless explicitly excluded. https://example.com/wp-json/wp/v2/posts WordPress includes sticky posts first before returning the rest sorted by publish date (default order is date… Continue reading What is a Sticky Post?

How to create a json payload for a POST request?

Creating a JSON payload for a POST request involves constructing a JSON object and then converting it to a string format, which can be sent in the body of the POST request. Step 1: Constructing the JSON Object {  “name”: “John Doe”,  “email”: “john.doe@example.com”,  “age”: 30,  “address”: {   “street”: “123 Main St”,   “city”: “Anytown”,   “state”:… Continue reading How to create a json payload for a POST request?

NetSuite Entity Record Deletion with Postman

In this article, we will explore how to leverage Postman, a widely used API testing tool, to automate the deletion of entity records in NetSuite. Understanding Netsuite API for Entity Deletion Netsuite’s SuiteTalk API supports various operations, including deleting records. To delete an entity record, a DELETE request needs to be sent to the appropriate… Continue reading NetSuite Entity Record Deletion with Postman

Show alert message in Suitelet POST

/** * * @param scriptContext */ function alertMesage(scriptContext){ var html = ‘<script> alert(“The quantity should be greater than Zero”);window.close() </script>’; scriptContext.response.write(html) } The alert message will show and on clicking ok will close the whole suitelet page

Integrating with Postman

Postman provides an API development toolchain aimed at integrating with your workflow.The Postman team develops an open ecosystem in conjunction with industry partners tobuild integrations that facilitate your API projects. Integrations allow you to automatesharing data and functionality between Postman and other tools you might use for your API development. 1.Body field corresponding to item… Continue reading Integrating with Postman