Can SFMC understand Azure Function Configuration Data similar to Web app Config Data?

I tried below:

  1. Created a basic Azure Function which loads the Index.html File using fs.readFile module.
  2. Optionally Proxied the Url with Default Routing. My Endpoint Url is (https://myFunctionApp.azurewebsites.net/). This works in Browser.

File Structure in Azure Function:

enter image description here

Problem: When I configured this in SFMC, the Journey Builder console throws error "GET https://myFunctionApp.azurewebsites.net/config.js net::ERR_ABORTED 404 (Not Found)"

How the Config.js path will be identified by SFMC?


enter image description here


enter image description here


The config.js path should be accesible from MC in the path you set in your custom activity configuration. For testing purposes you can set it publicly available so you are sure that MC will have access too.

  • The files are publicly accessible as of now. When I use Config.js instead of Config.json, the dependecies like module/exports are not defined. And hence Im getting error as unable to resolve config.js. Not sure how requireJS will bind the dependent modules. Sep 22 '21 at 4:57
  • Also I went through the code of Marketing Cloud Iframe custom.js which looks for config.json first and fallback to check for config.js. Sep 22 '21 at 4:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.