07-03-2023, 06:43 AM (This post was last modified: 10-23-2023, 04:30 PM by geraldbigot.)
Hello,
I was looking in modules/evvtgendoc files to find where I could change the file name when export in odt but no luck.
Now, when I export in odt, in Ticket module, I obtain : "ModuleName"_"Ticket_Title".odt and I would like :
07-03-2023, 07:49 AM (This post was last modified: 07-13-2023, 07:57 AM by geraldbigot.)
I found this GV but I don't know how to add "ticket_number" in the filename with this GV :
Workflow_Email_GenDoc_Attachment_Name String Name|Number When merging a GenDoc workflow email attachment, the name used for the attachment will be the Entity Name field (Name) or the Entity Number field (Number) concatenated with the template name.
08-07-2023, 02:09 PM (This post was last modified: 08-07-2023, 02:09 PM by xhilda.shazivari.)
(07-03-2023, 07:49 AM)geraldbigot Wrote: I found this GV but I don't know how to add "ticket_number" in the filename with this GV :
Workflow_Email_GenDoc_Attachment_Name String Name|Number When merging a GenDoc workflow email attachment, the name used for the attachment will be the Entity Name field (Name) or the Entity Number field (Number) concatenated with the template name.
Hello,
In order to get this filename ("ModuleName"_"Ticket_Title"_"Ticket_number".odt), which is a "concat" expression, means you have to:
1. Create a Business Map, type: Condition Expression where you form the expression you need.
2. Set value of the GV (Workflow_Email_GenDoc_Attachment_Name) to Expression.
3. Relate the Business Map you created with the Workflow_Email_GenDoc_Attachment_Name GV .
It isn't exactly the same but the next three images show how to change the name of the download PDF in Quotes, the workflow GV is almost identical. HTH
ok. the expression above is for QUOTES, it won't work anywhere else, and it is doing a bunch of transformations you may not need
it was just an example of one that is working
the one I shared does this:
- concatenates the quote_no with an underscore and the account_id (both fields only available in a quote
- replaces all ampersand for the string 'and'
- replaces all spaces with an underscore
- deletes all double underscores