Created
March 16, 2020 14:01
-
-
Save zuzannamj/3d7f1f5ebd00e8cd903fb7581389bead to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var createAsset = HTTP.Post(requestUrl, contentType, Stringify(jsonBody), headerNames, headerValues); | |
//stringify response | |
var respo = createAsset.Response.toString(); | |
//parse JSON | |
var res = Platform.Function.ParseJSON(respo); | |
//get the image url | |
var imgURL = res.fileProperties.publishedURL; | |
//initiate your data extension | |
var myDE = DataExtension.Init("{{external key of the data extension}}"); | |
//add a new row with url to a data extensions | |
myDE.Rows.Add({ URLcolumn: imgURL }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment