Expand my Community achievements bar.

Latest Community Ideas Review is Out: Discover What’s New and What to Expect!

Request PDF Summary Fusion Module Help

Avatar

Level 3

Hi,

 

I am trying to figure out how to use the Workfront proof fusion module called 'Request PDF Summary'. My hope is that this module returns information relating to the 'Print summary' part of the proofing tool where comments on the proof are summarised and it's possible to print / export from this page, however i can't seem to get the 'callback URL' part of the field in the right format and i wondered if anyone had any experience of using this, and if it will actually produce the output i'm after if i can get it working?

 

According to the documentation on experience league the callback URL should be "where you want the pdf summary sent" but there's no example of what that might look like. I've also looked in the proofHQ api a the requestPDFPrintSummary() item and tried to reconstruct the callback from the xml in their example but i always end up with a 500 error.

 

any help would be appreciated!

 

@Workfront Fusion 2.0

 

https://api.proofhq.com/home/callbacks/requestpdfprintsummary.html

https://experienceleague.adobe.com/docs/workfront/using/adobe-workfront-fusion/fusion-apps-and-modul...

 

Mr_Anderson__0-1664196350764.png

 

 

6 Replies

Avatar

Level 3

Did you ever figure this out? I am attempting the same scenario in Fusion and I am stuck with the callback URL.

Avatar

Level 3

Hi there,

 

Unfortunately no. We attempted several workarounds but didn't have any success. I'm on a different client now but if the same problem presents itself in the future and we find a way around it i'll post another reply in here!

 

all the best

 

J

Avatar

Level 1

The module doesn't send you the PDF itself, it only creates a URL that you can navigate to in order to download the file. So the endpoint is wherever you want to receive that URL. You can start a new Scenario with an API Webhook module and use the Webhook location as the URL endpoint. When that module gets the webhook you will need to feed the output through a parse XML module to resolve the URL and then pass it to a "Get File" module to do the actual download. 

 

Kholt26_0-1719946011811.png

 

In my case the system requires a username and password before downloading the file so I also have to do the custom Proof API call "doLogin()" to get a session ID and then pass that as part of the get a file module. The format of the get a file call in that case is "{{8.callback.pdf_url[]}}?sid={{34.body.data.session}}". Where module 8 is the output of the interpreter and 34 is the output of the dologin().

 

Avatar

Level 1

Thanks for your response, its really helpful. 

 

I started with two scenarios and created the webhook like you mentioned. The response I am getting is "value" that seems to be binary and contain file.

1. What response did you receive in your "PDF Summary Webhook" Module?
2. What is the data structure you used for your "Parse XML" module?

 

Kind Regards,
NG

Avatar

Level 1

Did you figure this out? If yes, please post your solution here. Thanks in advance.

Avatar

Employee

So basically we need to parse the XML and grab the file_url and then pass it in get a file (HTTP Module) and then you need map the result with upload document module (Workfront).

 

XML Structure you can follow is :
<?xml version="1.0"?> <callback type="pdfprintsummary"> <file_id>4698000</file_id> <proof_name>MyFile.pdf</proof_name> <pdf_url>https://app.proofhq.com/file/printup/code/BH22VmbXWAHXvsTRE</pdf_url> <status>success</status> <pass_through/> </callback>