Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Get party id as Text (without apostrophes or ticks)Forum ↗

Get party id as Text (without apostrophes or ticks)

App Development2 posts67 views3 likesLast activity May 2025
WA
WallaceKellyOP
May 2025

The following Daml Script…

alice <- allocateParty "Alice"
let partyText = show alice

…sets partyText to the value 'Alice', including the ticks.

How can I get a text representation of the party without the surrounding ticks?

WA
WallaceKelly
May 2025

There is a partyToText : Party -> Text function which does not include the ticks.

alice <- allocateParty "Alice"
debugRaw $ "Using show:        " <> (show alice)
debugRaw $ "Using partyToText: " <> (partyToText alice)
Using show:        'Alice'
Using partyToText: Alice
← Back to Discussions