Zum Hauptinhalt gehen

Save run report activity results as a pdf file on server

Kommentare

4 Kommentare

  • Jake Brown

    Amanda from support helped me out. pass the report href into the send web request activity and expect a blob . that blob is the byte[] that can be passed into send email or write files. Pretty nifty capability.

    0
  • Claire Inbody

    Jake - I am looking at doing the same thing. Can you specify what you did from the send web request and then send email activities? Send email is server workflow trying to figure out how to do client side then server to send the email.

    Thanks,

    Claire

    0
  • Jake Brown

    Claire - I wish I could remember. @Amanda Frech?  helped me out with it. I ended up switching to use the reporting python library (geocortex.reporting.client) and SMTP - handling it all in a script. Good luck!

    0
  • Claire Inbody

    Jake - I got it working! Like you stated the send web request. My issue was I needed to pass in Run workflow argument into the run report activity first.

     

    In my client side workflow I have a run workflow activity and the argument is:

    ={ "body": $form1.state.autoComplete1.label}

     

    Where "body" is what will be passed into my server workflow.

     

    In my server workflow to run report activity I have the parameter:

    ={

    StructNumber:$getWorkflowInputs1.inputs.body

    }

     

    Then I have the send web request use the =$runReport1.href blob then I create an email attachment to give us the report pdf to then use send email activity.

    Thanks

    Claire

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.