How to convert string to Nullable <boolean> in uipath

Hi everyone,

I’m trying to specify whether to show a preview of links mentioned in a text message. How to convert string to nullable ?


I want it like this:
image

Can you help me?
Thanks in advance,
Tuan

What does the string look like, that you want to convert?

A nullable boolean means basically a value that can be True, False, or Null (Nothing). Passing a null would presumably execute some default behaviour.

@efelantti

It’s a string containing hyperlinks.

image

How about passing:

  • True if you want to “Unfurl” the links
  • False if you don’t want it.

?

@efelantti
I haven’t found a solution yet !

It’s not working? Is there an error message displayed?

@efelantti

image

It’s not working !

Instead of Boolean.TryParse(test, True), pass just True.

@efelantti
It should be like this:
image

Regards
Tuan

Can you try setting the message to this:

<https://translate.google.com/|Google Translate>

1 Like

@efelantti
it works. Thank you very much :man_bowing:

1 Like

@efelantti

I want to ask you a question. How to make the text bold ?

Thanks in advance,
Tuan

I suggest you to try surrounding the text you want to make bold with asterisks like this:
*bold text*

Here’s mentioned some Slack formatting options: Format your messages | Slack - https://slack.com/.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.