1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Get SessionID of Document Template

Discussão em 'PSDN - Forum' iniciado por Ramon Schouten, Dezembro 15, 2017.

  1. Hi there,

    We have a quality management system application.
    When a form is created, a html is automatically created through a document template.

    [​IMG]

    I am trying to download this html (pdf) with powershell as a pdf to my local pc.

    If I Clik on the form, it's html link is the following:
    https://qap360-d.qap360.nl/master/s...ile&objDefId=52140&templateId=52328&id=141058

    [​IMG]

    So when I download this with powershell to my local pc as a pdf file, it succeeds and gets me a correct PDF.
    But when i use the rollbase field url of that document template: {!Print_Formulier#url}, it gives:
    https://qap360-d.qap360.nl/master/servlet/Template?hint=file&objDefId=52140&templateId=52767&id=141063

    without the sessionid and if i download this to pdf i get a corrupt pdf file.

    It seems to be the case that it only renders as pdf when you are logged in at that url.
    [​IMG]

    So without the sessionId it directs to the login page and won't render as pdf. = corrupt pdf.
    [​IMG]

    Is there any way to get that sessionID?
    Because for a customer we need to upload that pdf to sharepoint as soon as it is created or the status is updated.


    Kind regards,
    Ramon Schouten

    Continue reading...

Compartilhe esta Página