How to pass a pv! as value for contents in Create PDF (smart service) plugin?

Certified Associate Developer

How to pass a pv! as value for content in Create PDF (smart service) plugin? in Process model 

 I can pass a few words as value using this code which I got from community,

={
'type!{urn:appian:ps:pdftools}PdfContent'(
page: 1,
xPercent: 10,
yPercent: 10,
angle: 0,
sections: {
'type!{urn:appian:ps:pdftools}PdfSection'(
style: null,
components: {
'type!{urn:appian:ps:pdftools}PdfText'(
value: "Some"
),
'type!{urn:appian:ps:pdftools}PdfText'(
value: "text"
)
}
)
}
)
}

but I try to pass a pv! as value into the contents I got this error 

is there any possible to pass a pv as a value in this code 

  Discussion posts and replies are publicly visible

Parents Reply Children
  • 0
    Certified Associate Developer
    in reply to Mike Schmitt

     this is the code I Used to pass the pv!paragraph as value in Contents in input part of the Config Create Pdf

     

    ={
    'type!{urn:appian:ps:pdftools}PdfContent'(
    page: 1,
    xPercent: 10,
    yPercent: 10,
    angle: 0,
    sections: {
    'type!{urn:appian:ps:pdftools}PdfSection'(
    style: null,
    components: {
    'type!{urn:appian:ps:pdftools}PdfText'(
    value: pv!paragraph
    )
    )
    }
    )
    }
    )
    }

  • 0
    Certified Lead Developer
    in reply to nivedhitha

    If you populate "pv!paragraph" with some simple text does it still get the same error as above, or did you just run it with something complex so far?  One thing I'd like to rule out is the possibility that maybe some special characters were passed in that break the PDF generation.  What has the PV value been in previous instances where you try to run it and it gives that error?