Forum Post: How to expose 'Document Template' results to URL

  • Thread starter Thread starter dtsmith601@gmail.com
  • Start date Start date
Status
Not open for further replies.
D

dtsmith601@gmail.com

Guest
I want an external service to be able to make a call to a URL which gives XML that is the result of a merged 'Document Template'. So if the template is... ?xml version="1.0" encoding="UTF-8"? something {!firstName} /something Calling a (hypothetical) REST service like http:// rollbase url /rest/api/runTemplate?objName=Contact&objId=123&templateId=555 would return... ?xml version="1.0" encoding="UTF-8"? something John /something An alternative to a new REST function would be to use Server API's rbv_api.runTemplate(objName, ObjId, templateId). But I do not know a way to expose the results as a URL. If Server APIs can be called from a custom Java app, I could simply relay the results in the app. Can Server APIs be called from custom Java code? Or could the Server API be used on a portal page (that had no other content, including header, frame, html, etc.) that exposes the result?

Continue reading...
 
Status
Not open for further replies.
Back
Top