Files
.ec-documentation/ssa/fetch.js
phares@iscn5cg20977xq 1563c27577 Windows Updates
Service-Shop and SSA js
2025-08-19 11:41:24 -07:00

9 lines
404 B
JavaScript

let url = 'https://ssa.eu.infineon.com/m42Services/api/orders?decider=false&costCenterDecider=false&catalogRequest=false&minimalResultSet=true&$orderby=CreatedDate%20desc&$top=2000&$count=true';
fetch(url)
.then((res) => res.text())
.then((text) => {
const data = JSON.parse(text);
if (data.length > 0)
console.log(data[0]);
})
.catch((e) => console.error(e));