RE: Getting name of a document template using dynamic provider
Thanks for the reply.
The reason for me to use the dynamic provider is that the Document Arcive Provider is missing the document filename, and the Dynamic Provider can give me that.
Document Archive Provider (superoffice.com)
But since i can get the doctmpl_id, i will make a second request to get the doctmpl table and make the join in the code instead.
I think that would be the best way to get the needed information.
This is the complete set of columns in my request. (I left it out in my initial question to make the focus on the doctmpl join).
const string columns = "document.document_id," + "document.appointment_id.(appointment->appointment_id).registered," +
"document.appointment_id.(appointment->appointment_id).updated," +
"document.appointment_id.(appointment->appointment_id).person_id.(person->person_id).firstname," +
"document.appointment_id.(appointment->appointment_id).person_id.(person->person_id).lastname," +
"document.appointment_id.(appointment->appointment_id).task_idx.(doctmpl->doctmpl_id).name," +
"document.appointment_id.(appointment->appointment_id).task_idx," +
"document.appointment_id.(appointment->appointment_id).registered_associate_id.(associate->associate_id).person_id.(person->person_id).firstname," +
"document.appointment_id.(appointment->appointment_id).registered_associate_id.(associate->associate_id).person_id.(person->person_id).lastname," +
"document.header," +
"document.appointment_id.(appointment->appointment_id).contact_id.(contact->contact_id).name," +
"document.name";