Create workflow template for entire table

I need help with what Iโ€™m doing wrong. I have a report right now that sets a โ€œstatusโ€ column to โ€œrunโ€ when I hit an action. that triggers a workflow to email a document. I copied that whole thing and am now attempting to change the attachment template to email every row in the table. So far, the emailing only works when no start expression is added. I tried following the documentation and tried this: <Start:C19[Unique_ID]> with no luck. What is the correct expression to use to export the entire table?

0 8 406
8 REPLIES 8

Firstly read this:

And yet, please do clarify:

Hi there, sorry for the long post.
I read the documentation and tried searching through the community questions before asking.

  • This is an email workflow rule
  • The audit log shows โ€œSuccessโ€ with nothing wrong in the details, yet Iโ€™m still not getting an email or anything archived.
  • <<Start:C19[Unique_ID]>> and << End>> (without the space there.)
  • Yes, I checked those before posting and just right now. Unfortunately, they didnโ€™t solve my problem

Can you post a screenshot from your PDF template? Provided you havenโ€™t specified any template variables in between the <<Start>> and <<End>> itโ€™s so normal that you donโ€™t receive anything. Also please post a screenshot from your worfklow setup. Thnx.

Alright, I stripped my template down and slowly added stuff back in to see what was causing the issue. Now the

  • The Start and end functions work. (The workflow emails to me.)
  • With different Start and end functions, the whole template works.
  • It stops working when I make a reference. (see photo. Red shows the problem area)
  • I now get the following error on the log:
    Error:
    โ€œJeenee.DataTypes.SpreadsheetException: The remote server returned an error: (400) Bad Request. โ†’ The HTML to PDF conversion web service failed to convert the HTML document to PDF for application โ€˜PaulusApp-770529 (f59e0b87-e262-4bdc-8856-3f003dbd1dc9)โ€™ despite 3 retries due to: The remote server returned an error: (400) Bad Request. โ€”> System.Net.WebException: The remote server returned an error: (400) Bad Request.\r\n at System.Net.WebClient.UploadValues(Uri address, String method, NameValueCollection data)\r\n at Nirvana.Data.PDFEncoder.EncodePdfRocket(Context context, String input, PageOrientationEnum pageOrientation, PageSizeEnum pageSize, Int32 pageHeight, Int32 pageWidth)\r\n โ€” End of inner exception stack trace โ€”\r\n at Nirvana.Data.PDFEncoder.EncodePdfRocket(Context context, String input, PageOrientationEnum pageOrientation, PageSizeEnum pageSize, Int32 pageHeight, Int32 pageWidth)\r\n at Nirvana.Data.PDFEncoder.Encode(Context context, String input, PageOrientationEnum pageOrientation, PageSizeEnum pageSize, Int32 pageHeight, Int32 pageWidth)\r\n at Nirvana.Data.WorkflowActionResultEmail.<>c__DisplayClass68_0.b__0()โ€

Unfortunately, that just returned the same error:

Error:
โ€œJeenee.DataTypes.SpreadsheetException: An exception occurred during a WebClient request. โ†’ The HTML to PDF conversion web service failed to convert the HTML document to PDF for application โ€˜PaulusApp-770529 (f59e0b87-e262-4bdc-8856-3f003dbd1dc9)โ€™ despite 3 retries due to: An exception occurred during a WebClient request. โ€”> System.Net.WebException: An exception occurred during a WebClient request. โ€”> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. โ€”> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host\r\n at System.Net.Sockets.NetworkStream.Read(Byte buffer, Int32 offset, Int32 size)\r\n โ€” End of inner exception stack trace โ€”\r\n at System.Net.ConnectStream.Read(Byte buffer, Int32 offset, Int32 size)\r\n at System.Net.WebClient.DownloadBitsState.RetrieveBytes(Int32& bytesRetrieved)\r\n at System.Net.WebClient.DownloadBits(WebRequest request, Stream writeStream, CompletionDelegate completionDelegate, AsyncOperation asyncOp)\r\n at System.Net.WebClient.UploadValues(Uri address, String method, NameValueCollection data)\r\n โ€” End of inner exception stack trace โ€”\r\n at System.Net.WebClient.UploadValues(Uri address, String method, NameValueCollection data)\r\n at Nirvana.Data.PDFEncoder.EncodePdfRocket(Context context, String input, PageOrientationEnum pageOrientation, PageSizeEnum pageSize, Int32 pageHeight, Int32 pageWidth)\r\n โ€” End of inner exception stack trace โ€”\r\n at Nirvana.Data.PDFEncoder.EncodePdfRocket(Context context, String input, PageOrientationEnum pageOrientation, PageSizeEnum pageSize, Int32 pageHeight, Int32 pageWidth)\r\n at Nirvana.Data.PDFEncoder.Encode(Context context, String input, PageOrientationEnum pageOrientation, PageSizeEnum pageSize, Int32 pageHeight, Int32 pageWidth)\r\n at Nirvana.Data.WorkflowActionResultEmail.<>c__DisplayClass68_0.b__0()โ€

I want to say that that error comes up when the template file is not shared with the proper account. Try to make it publicly viewable and see if it changes. I could be completely wrong thoughโ€ฆ

But regardless, that error doesnโ€™t tell us much. There should be an error somewhere else thatโ€™ll actually say what the issue it. Like:

โ€œErrorsโ€: โ€œError: Workflow rule โ€˜longtext testโ€™ action โ€˜Action 1โ€™ Attachment template. Expression โ€˜[blah blah]โ€™ is invalid due to: Unable to find column โ€˜blah blahโ€™. Error: Workflow rule โ€˜longtext testโ€™ action โ€˜Action 1โ€™ Attachment template. Start expression โ€˜[blah blah]โ€™ should generate a List of Ref values. Please verify that it generates a List and that the contents of the List are Ref values. Ref values should come from the โ€˜Keyโ€™ column of the referenced table. Error: Workflow rule โ€˜longtext testโ€™ action โ€˜Action 1โ€™ Body template. Expression โ€˜[blah blah]โ€™ is invalid due to: Unable to find column โ€˜blah blahโ€™. Error: Workflow rule โ€˜longtext testโ€™ action โ€˜Action 1โ€™ Body template. Start expression โ€˜[blah blah]โ€™ should generate a List of Ref values. Please verify that it generates a List and that the contents of the List are Ref values. Ref values should come from the โ€˜Keyโ€™ column of the referenced table.โ€,

Which I got from here:


3X_f_a_fa1072f5dd96924ef0895d0a97a4d09dabda06c3.png

You can also try to use the โ€œTestโ€ button on the workflow, then โ€œSendโ€ on one record from the following screen, and if there is any error in the template it should show a pop-up with the error.

@Austin_Nunns
May I ask where your workflow template doc is? Under your own account (which the app is currently)?

Top Labels in this Space