You need to sign in to do that
Don't have an account?
Raksha Narayan
unable to get hyperlink in SOQL query
Hi,
On Account record I have a text field that contains value as 'Click here' where 'here' is a hyperlink to www.google.com. On querying the field using SOQL, I am getting the value as 'Click <a href="www.google.com"> here</a>'
But I want to get the value as 'Click here' instead of href. Is it possible? Please suggest if it can be achieved by any other method.
On Account record I have a text field that contains value as 'Click here' where 'here' is a hyperlink to www.google.com. On querying the field using SOQL, I am getting the value as 'Click <a href="www.google.com"> here</a>'
But I want to get the value as 'Click here' instead of href. Is it possible? Please suggest if it can be achieved by any other method.
Have you tried suggestion provided in below link?
https://trailblazers.salesforce.com/answers?id=9063A000000pWokQAE
Thanks!
In my case I am not using formula field. i am updating the value from apex class through SOQL query. Is hthere a way to get the text instead of href?
you need to create HTML Rich area text field
Like:-
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
I tried the rich text field but it is giving the result as "<pre> <a href="https://www.google.com">Click Here</a></pre>" instead of hyperlink
Greeting!
what you want and what you are doing is different to get the URL field you can new field returning only that value.
If you find your solution mark this as the best answer.
Thank you!
Regards,
Suraj Tripathi
https://gameguardian.xyz/