Skip to main content
Solved

issue with GET Method

  • May 19, 2025
  • 4 replies
  • 71 views

Mandar12
Forum|alt.badge.img+3

Hi guys,
did anyone face this issue using rest web services : GET Method.

Im getting error:Field 'content' must not be null.

Same url with apikey when tested on postman it works

Best answer by Aaron.Gleason

Here is sample code in its simplest form. (I got an API key for the service, so I know this works.)

This is very much like what your URI implied.

To receive the message from this API, use the Body key (capital B) and extract the JSON message into a string variable.

Start the JSON session based on that string variable.

Get the node you want… end the session, and display the result.

This is what my Message Box displays:

Hope this helps!

4 replies

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • May 19, 2025

This message is either with the remote web service responding with that message or Automation Anywhere responding with that message if you’re using the Multiple Variables option and the key you’re looking for isn’t present.

If you use the Multiple Variables option (I almost always do!), the key for the returned message is Body (with a capital B). This typically contains the XML or JSON message from the remote web service. If you’re trying to find a field named “content”, that would be either a custom header sent from the remote web service or you’re trying to find “content-type” instead.

Can you send a screen shot of both your code and the Postman request? Feel free to censor any sensitive data.


Mandar12
Forum|alt.badge.img+3
  • Author
  • Navigator | Tier 3
  • May 19, 2025

@Aaron.Gleason sure. I was just trying a simple usecase
Postman Response

{

    "result": "success",

    "documentation": "https://www.exchangerate-api.com/docs",

    "terms_of_use": "https://www.exchangerate-api.com/terms",

    "time_last_update_unix": 1747612801,

    "time_last_update_utc": "Mon, 19 May 2025 00:00:01 +0000",

    "time_next_update_unix": 1747699201,

    "time_next_update_utc": "Tue, 20 May 2025 00:00:01 +0000",

    "base_code": "USD",

    "conversion_rates": {

        "USD": 1,

        "AED": 3.6725,

        "AFN": 70.0671,

        "ALL": 87.8082,

        "AMD": 386.5407,

        "ANG": 1.7900,

        "AOA": 918.1161,

        "ARS": 1146.1700,

        "AUD": 1.5602,

        "AWG": 1.7900,

        "AZN": 1.6998,

        "BAM": 1.7494,

        "BBD": 2.0000,

        "BDT": 121.4896,

        "BGN": 1.7493,

        "BHD": 0.3760,

        "BIF": 2976.5407,

        "BMD": 1.0000,

        "BND": 1.2987,

        "BOB": 6.9189,

        "BRL": 5.6849,

        "BSD": 1.0000,

        "BTN": 85.6364,

        "BWP": 13.5348,

        "BYN": 3.0280,

        "BZD": 2.0000,

        "CAD": 1.3955,

        "CDF": 2894.6169,

        "CHF": 0.8365,

        "CLP": 941.9221,

        "CNY": 7.2081,

        "COP": 4205.4166,

        "CRC": 506.5923,

        "CUP": 24.0000,

        "CVE": 98.6255,

        "CZK": 22.2661,

        "DJF": 177.7210,

        "DKK": 6.6706,

        "DOP": 58.8538,

        "DZD": 133.3336,

        "EGP": 50.1151,

        "ERN": 15.0000,

        "ETB": 134.4570,

        "EUR": 0.8945,

        "FJD": 2.2630,

        "FKP": 0.7524,

        "FOK": 6.6706,

        "GBP": 0.7524,

        "GEL": 2.7406,

        "GGP": 0.7524,

        "GHS": 12.3292,

        "GIP": 0.7524,

        "GMD": 72.6982,

        "GNF": 8755.0663,

        "GTQ": 7.6794,

        "GYD": 209.1916,

        "HKD": 7.8146,

        "HNL": 25.9929,

        "HRK": 6.7392,

        "HTG": 130.7977,

        "HUF": 359.9885,

        "IDR": 16479.2904,

        "ILS": 3.5504,

        "IMP": 0.7524,

        "INR": 85.6380,

        "IQD": 1307.8202,

        "IRR": 42011.8243,

        "ISK": 130.6197,

        "JEP": 0.7524,

        "JMD": 159.0675,

        "JOD": 0.7090,

        "JPY": 145.3019,

        "KES": 129.2326,

        "KGS": 87.4501,

        "KHR": 3991.6984,

        "KID": 1.5603,

        "KMF": 440.0359,

        "KRW": 1397.2867,

        "KWD": 0.3073,

        "KYD": 0.8333,

        "KZT": 508.9938,

        "LAK": 21783.0458,

        "LBP": 89500.0000,

        "LKR": 298.7424,

        "LRD": 199.9897,

        "LSL": 18.0589,

        "LYD": 5.5172,

        "MAD": 9.2921,

        "MDL": 17.3720,

        "MGA": 4518.5627,

        "MKD": 55.0094,

        "MMK": 2101.9700,

        "MNT": 3585.9748,

        "MOP": 8.0489,

        "MRU": 39.8134,

        "MUR": 46.0340,

        "MVR": 15.4537,

        "MWK": 1738.1682,

        "MXN": 19.4616,

        "MYR": 4.2957,

        "MZN": 63.6694,

        "NAD": 18.0589,

        "NGN": 1599.3213,

        "NIO": 36.7885,

        "NOK": 10.3853,

        "NPR": 137.0182,

        "NZD": 1.6991,

        "OMR": 0.3845,

        "PAB": 1.0000,

        "PEN": 3.6870,

        "PGK": 4.1402,

        "PHP": 55.8310,

        "PKR": 281.5931,

        "PLN": 3.8166,

        "PYG": 8037.3193,

        "QAR": 3.6400,

        "RON": 4.5571,

        "RSD": 104.8485,

        "RUB": 80.9262,

        "RWF": 1452.1506,

        "SAR": 3.7500,

        "SBD": 8.5122,

        "SCR": 14.2238,

        "SDG": 458.8813,

        "SEK": 9.7507,

        "SGD": 1.2988,

        "SHP": 0.7524,

        "SLE": 22.7481,

        "SLL": 22748.0773,

        "SOS": 571.2092,

        "SRD": 36.8870,

        "SSP": 4569.7505,

        "STN": 21.9138,

        "SYP": 12901.1939,

        "SZL": 18.0589,

        "THB": 33.2626,

        "TJS": 10.3990,

        "TMT": 3.4998,

        "TND": 3.0156,

        "TOP": 2.3762,

        "TRY": 38.8759,

        "TTD": 6.7788,

        "TVD": 1.5603,

        "TWD": 30.1097,

        "TZS": 2689.5149,

        "UAH": 41.5232,

        "UGX": 3658.5155,

        "UYU": 41.6631,

        "UZS": 12936.5432,

        "VES": 94.7630,

        "VND": 25917.6553,

        "VUV": 120.6577,

        "WST": 2.7731,

        "XAF": 586.7146,

        "XCD": 2.7000,

        "XCG": 1.7900,

        "XDR": 0.7407,

        "XOF": 586.7146,

        "XPF": 106.7354,

        "YER": 244.3213,

        "ZAR": 18.0564,

        "ZMW": 26.8696,

        "ZWL": 26.8695

    }

}

URI:https://v6.exchangerate-api.com/v6/$sAPIKey$/latest/USD

 

 


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • Answer
  • May 19, 2025

Here is sample code in its simplest form. (I got an API key for the service, so I know this works.)

This is very much like what your URI implied.

To receive the message from this API, use the Body key (capital B) and extract the JSON message into a string variable.

Start the JSON session based on that string variable.

Get the node you want… end the session, and display the result.

This is what my Message Box displays:

Hope this helps!


Mandar12
Forum|alt.badge.img+3
  • Author
  • Navigator | Tier 3
  • May 19, 2025

Thanks ​@Aaron.Gleason