Java script Support in ACS | Community
Skip to main content
Level 2
February 5, 2021
Solved

Java script Support in ACS

  • February 5, 2021
  • 1 reply
  • 1194 views

Hi Experts,

 

Just need to understand what level of Java script we can use in the content blocks in ACS.

 

const RSS_URL = '<<URL>>';
fetch(RSS_URL)
  .then(response => response.text())
  .then(str => new window.DOMParser().parseFromString(str, "text/xml"))
  .then(data => {
    console.log(data);
    });

 

 

Can i use above code in content block where i can call the rest API, use the values and render in email?

Or any other way to call rest API in ACS which returns XML RSS feed, which i can use and generate html.

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by bisswang

You can't use API to fetch external content in ACS.

You could use External API to call a service but that has to return JSON content

1 reply

bisswangAdobe EmployeeAccepted solution
Adobe Employee
February 5, 2021

You can't use API to fetch external content in ACS.

You could use External API to call a service but that has to return JSON content