-1

I am trying to build a flow, where I want to show an URL(hyperlink) in the response, which on click will open another flow end-point.

Example: GET /list

output:

{
  "object" :{
"accounts" : **url**,
"customer" : **url**
}
}

I want to add the hyperlink in the url (show in bold in output), which on clicking will open another flow passing either "accounts" or "customer" to the other flow as end-point.

Thanks in advance

user12277274
  • 105
  • 2
  • 15

1 Answers1

0

The example indicates that the response is a JSON and I guess you are receiving it from a browser. You can add the hyperlink as the value of the attributes. However JSON doesn't have an URL data type, so the URLs will need to be strings, surrounded by quotes. Note that it is up to the browser to decide if those URLs are 'clickable' or just plain text.

aled
  • 21,330
  • 3
  • 27
  • 34
  • How to make text as hyperlink (clickable) in Mule 4? – Vatsal Mehta Oct 19 '22 at 07:25
  • What do you mean by clickable exactly? Mule doesn't has a user interface, there is nothing to click. Only a client application may display the output in a graphical way that include links. What you are asking doesn't make sense without further context on what is exactly the client and how it will recognize URLs. – aled Oct 19 '22 at 11:57
  • I do agree Mule does not have user interface. But Mule have the capability to send email. And we have a requirement where we need to send one URL endpoint in the email. Now this URL is something which needs to be seen entirely. Just "Link" text with hyperlink of endpoint. So how we can leverage this ? – Vatsal Mehta Oct 20 '22 at 14:22
  • That's different than this question. You should post a new question with your specific use case. – aled Oct 20 '22 at 15:29