Loading
Feature degradation | Gmail Email delivery failureRead More
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Create the Integration Procedure with the HTTP Action

          Create the Integration Procedure with the HTTP Action

          After you configure NASA as a Remote Site and get a NASA API key, you can create and run the example Integration Procedure, which retrieves the astronomy picture of the day.

          1. Add an HTTP Action component.
          2. Configure the HTTP Action component with these settings:

            Property

            Value

            HTTP Path

            https://api.nasa.gov/planetary/apod

            HTTP Method

            GET

            REST OPTIONS: Add Parameter

            • Key: api_key
            • Value: %ApiKey%
          3. Add a Response Action component into the Structure panel below the HTTP Action, and configure it with these settings:

            Property

            Value

            Send JSON Path

            HTTPAction1

            Send JSON Node

            PictureInfo
          4. Edit the input JSON, adding the key ApiKey and your API key as the value.
          5. Click Execute. The output is similar to this example:
            {
              "PictureInfo": {
                "url": "https://apod.nasa.gov/apod/image/2006/Eclipse-under-bamboos1024c.jpg",
                "title": "Eclipse under the Bamboo",
                "service_version": "v1",
                "media_type": "image",
                "hdurl": "https://apod.nasa.gov/apod/image/2006/Eclipse-under-bamboos.jpg",
                "explanation": "Want to watch a solar eclipse safely? Try looking down instead of up, though you might discover you have a plethora of images to choose from. For example, during the June 21st solar eclipse this confusing display appeared under a shady bamboo grove in Pune, India. Small gaps between close knit leaves on the tall plants effectively created a network of randomly placed pinholes. Each one projected a separate image of the eclipsed Sun. The snapshot was taken close to the time of maximum eclipse in Pune when the Moon covered about 60 percent of the Sun's diameter. But an annular eclipse, the Moon in silhouette completely surrounded by a bright solar disk at maximum, could be seen along a narrow path where the Moon's dark shadow crossed central Africa, south Asia, and Ch",
                "date": "2020-06-26",
                "copyright": "Somak Raychaudhury"
              }
            }
          6. (Optional) Paste the url or hdurl value into your browser and view the picture.
           
          Loading
          Salesforce Help | Article