![]() To test and make sure your environment and access token are set up properly, I am going to provide a very simple test API call. As a note, you can also set up a similar Authorization process in the ‘Authorization’ tab on the call as well, but I tend to use the call and script option more often.Īfter setting all of this up, you will want to click the ‘Send’ button in the top right, near where you set your environment. ![]() Pm.t("dne_etAccessToken", data.access_token) īy adding this JS in, on each call of this, it will update the dne_etAccessToke variable in your environment with the returned token in your Response. First things first, verify that your environment is selected in the dropdown in the top right of your POSTman.īelow is a quick overview of the call, that you can use if you have familiarity with POSTman to set up your call: Now that you have your environment set up, you need to aim at retrieving your token so that you can do your REST/SOAP API calls. You will then be able to select this environment in the dropdown at the top right of your POSTman. This is where you will add in the information you will need to be able to utilize SOAP and REST API calls to SFMC from POSTman This will open the below window where you will want to select the ‘Environment’ option: In POSTman you will want to click the ‘New’ button at the top of the side bar to the right of the ‘My Workspace’ label: Next we will work on setting up an Environment in POSTman to best utilize your new Package in SFMC. See more details inside of this Stack Exchange post. **EDIT** I wanted to give a quick thank you to Vishal Kumar C V and Renato Oliveira for bringing up that I did not include the append needed to be added to the SOAP Base URI ( /Service.asmx) for the SOAP API to work. These will be used inside your POSTman API calls. You then will want to grab the following fields for use in your API call: You then hit save and the new component will be added to your package. After testing, you should make sure to go back and assign scope on your component as appropriate for your intended usage. For this article, I am going to allow full permissions on my package – basically allowing full access to the whole platform. You will then need to assign the scope of your package (see official documents on scope here). For more information on Component Types, see official documentation here. For this article, I am going to choose ‘ Server-to-Server’ as this is only going to be used via POSTman or similar services. Next you need to select your integration type. For the purposes of this article, you will want to select ‘API Integration’. ![]() This will open a new popup to select the component type. ![]() You will want to click on ‘Add Component’. The part we want to concentrate on is the bottom that involves ‘Components’. Next part is the creation of the component inside the package to allow utilization of API integration between your external system and SFMC.Īfter building the package, this will then open up a screen with your new Package overview. You then want to hit save to create your package. This will open a popup asking for name/description of your new package. You will need to hover over it and the dropdown should have one of the first options being ‘Setup’.įrom there you will want to navigate on the left sidebar to ‘Platform Tools’ and then expand ‘Apps’ and select ‘Installed Packages’.Ĭlick on ‘New’ in the top right. This includes, creating the package, the component and gathering the required information from Salesforce Marketing Cloud down to creating the environment and setting up an authentication call and test calls inside of POSTman.įirst you will need to go into the ‘Setup’ section which is under your user name in the top right of the screen. It essentially allows you to make changes, perform actions, retrieve data and more all programmatically via an outside resource.īelow I will give a quick overview on setting up an API integration package and then utilizing it in POSTman. **EDIT ** – Updated to show implementation inside of new POSTman UI as well as set up utilizing the same environment and syntax used by the Salesforce provided API collection.ĪPI calls are one of the most powerful tools available to an SFMC user.
0 Comments
Leave a Reply. |