Hi,
Sorry if I'm being a bit naïve here but I'm assuming it's like any script, I work a little with PowerApps you I will need to change some of the script?
Such as these attribute names??
"<attribute name='name'/>"+
"<attribute name='businessunitid'/>"+
"<attribute name='teamid'/>"+
"<attribute name='teamtype'/>"+
"<order attribute='name' descending='false'/>"+