Create document from DOCX template - Uppercase

Hello,

This is how the table is designed:


I need to make both properties uppercase.

  • colSurname
  • colname

I tried related to the documentation: Value properties in DOCX, XLSX and PPTX templates — Plumsail Documents Documentation
{{arrAtt.colSurname.toUpper}} - returned [arrAtt.colName]:unprocessed (do not remember exact string, but similar).

Please, could you help me to solve this out?

Thank you
Stepan

Hi Stepan,

You can convert strings to uppercase using functions, but the specific syntax will depend on the engine configured for your process:

  • For Classic Engine: {{my_value.ToUpper}}
  • For Modern Engine: {{my_value|ToUpper}}

You can also change the engine following the documentation available.
I hope this helps clarify things!

Best regards,
Milagros
Plumsail team

Hello @MilagrosBunda ,

I do not use Plumsail web to create template. I have a .DOCX document, where the "arrAtt" is array of people who are going to attend a course.

This approach: {{arrAtt.colSurname.toUpper}} - does not work as I previously mentioned. Returned "unprocessed"
This approach: {{arrAtt.colSurname|toUpper}} - does render the surname, but not uppercase.

Any other idea how to do it? :slight_smile:

Stepan

Oh, got it. So, where exactly are you trying to use this function? Are you working within a particular integration or platform? Maybe that can help us work through this scenario.

Best regards,
Milagros
Plumsail team

Hello @MilagrosBunda ,

I have a template in .DOCX and load it in power automate action. Then I use Plumsail Documents action to generate .DOCX from template.

Thank you
Stepan

@StepanS

Thank you for the information. So far, all our tests using the syntax mentioned have passed without encountering any problems on our end.

To investigate this issue further, please send the details to support@plumsail.com to open a support ticket, and include a reference to this community thread.

Best regards,
Milagros
Plumsail team

1 Like

Hello @MilagrosBunda ,

it works fine, thank you for your help :slight_smile:

Please avoid this: (this will not work)

{{arrAtt.colSurname.toUpper}}

This one will work.

{{arrAtt.colSurname.ToUpper}}

Thank you for your help.

Kind regards
Stepan

1 Like