Run the PopulateCacheOrchestratorApplication Class
You've used Postman to get the session token from your org, configured your IDE for Java, and loaded the orchestration classes into your IDE. Now you're ready to configure and run the PopulateCacheOrchestratorApplication class.
To run the PopulateCacheOrchestratorApplication class in Visual Studio Code:
In Visual Studio Code, click the Explorer icon and expand the CACHE_AND_POPULATE_ORCHESTRATORS pane.
Locate and click the
PopulateCacheOrchestratorApplication.javafile. The file opens in a tab.
Edit these String values in the file:
String Value Set the value to accessToken The
access_tokenvalue you saved in the Set Up Postman, Import the Files, and Get the Token task
instanceUrl Your org's hostname, for example
catalogCodes The name of a catalog in your org
Make sure the file looks something like this, then save it:
PopulateCacheOrchestratorApplication.javafile and select Run Java.
Watch the TERMINAL pane to see JSON responses for REST API calls appear.