Rest outbound call using authCode and Content-Type application/x-www-form-urlencoded

  • December 9, 2023

x-www-form-urlencoded is not a standard content type for data transmission. You might be referring to application/x-www-form-urlencoded, which is a common content type used when submitting data through HTML forms on the web. It is a way of encoding key-value pairs as a string in the format of key1=value1&key2=value2. 

Steps are as follows. :  

 Create scripted rest api and create a method  

A screenshot of a computer

Description automatically generated

  Override default supported request formats as : application/x-www-form-urlencoded 

Scripted resource as follows :

A screenshot of a computer

Description automatically generated

 can retrieve the urlencoded values provided in the request as a JSON map. You can then supply these urlencoded key-value pairs as query parameters, in the request body, or both. They are combined and stored in the request parameters. Access these parameters through the request.queryParams object. 

Testing : 

A screenshot of a computer

Description automatically generatedWe are getting 200 ok.   

 

 

Curated Reads

Understanding-TPSM-The-Future-Of-Tech-Service-Management
Understanding TPSM: The Future Of Tech Service Management
Technology Provider Service Management (TPSM) is a strategic solution that integrates customer care and operations teams. It focuses on streamlining service delivery and, hence, enabling technology providers to deliver exceptional customer experiences. Here is a brief guide to what you need to know about it.

 

A Paradigm Shift Scaling Your Tech Business With ServiceNow TPSM
A Paradigm Shift: Scaling Your Tech Business With ServiceNow TPSM
Modern businesses need to focus on agility. This is especially true of tech businesses as these operate in a particularly fast-moving environment. Scalability is a key part of agility. Here is a quick guide to how ServiceNow's Technology Provider Service Management solution (TPSM) can help make it easier to scale your business.

 

Streamlining-Service-Management-Delivery-With-ServiceNow-TPSM
Streamlining Service Management & Delivery With ServiceNow TPSM
ServiceNow's Technology Provider Service Management (TPSM) is a solution designed to facilitate effective service delivery and management in the technology sector.  It hosts a range of specialised tools and features that address common pain points they face.  Here is a brief guide to how implementing TPSM can help you and your business.