Resolving page datafolder paths in Inline C# functions for use by external apps and JavaScript/AJAX apps

Topics: General, Troubleshooting
Mar 6 at 3:30 PM
I’m creating a new Inline C# function that will allow me to search a page datafolder via JavaScript/AJAX or via a mobile phone app. The function returns a set of XML with results of the search, and can be previewed at:

http://unidocs.baileyweb.online/Frontend/AJAX/BaileyWeb.University.Data.SearchCourses.ashx?SearchCourseTitle=English

The page datafolder outputs via RoutedData to pages such as this one:

http://uni.baileyweb.online/courses/2017/9/25/BA-DRAM

The problem I have is that I currently have no way to resolve the URL of the page datafolder’s path (the CourseURL node value in the XML), so that I can link to the page from my external app. Is there a C1 function that will resolve the full path URL from a known datatype ID?