• Anton Yoganathan
  • NEWBIE
  • 10 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 4
    Replies
Hi,

how can i bring out something similar to 
"

<a href="Https://www.google.com">Search</a>

"

in the following code.



trigger chatterfeed on Feedback__c (after update) {

for(Feedback__c feed:trigger.old)
{
FeedItem post = new FeedItem();
post.ParentId = 'Some id';
String fullFileURL = URL.getSalesforceBaseUrl().toExternalForm()+'/'+ Feed.id;
String stringURL  = '<a href='+fullFileURL+' >Test</a>/>';
post.Body =stringURL;
insert post;
}


for which i get a post with a link like below and clicj=king on it should direct to me to the link on the href.
"
Test
"
'String stringURL  = '<a href='+fullFileURL+' >Test</a>/>';   this does no work..

Hi,

how can i bring out something similar to 
"

<a href="Https://www.google.com">Search</a>

"

in the following code.



trigger chatterfeed on Feedback__c (after update) {

for(Feedback__c feed:trigger.old)
{
FeedItem post = new FeedItem();
post.ParentId = 'Some id';
String fullFileURL = URL.getSalesforceBaseUrl().toExternalForm()+'/'+ Feed.id;
String stringURL  = '<a href='+fullFileURL+' >Test</a>/>';
post.Body =stringURL;
insert post;
}


for which i get a post with a link like below and clicj=king on it should direct to me to the link on the href.
"
Test
"
'String stringURL  = '<a href='+fullFileURL+' >Test</a>/>';   this does no work..

Hi,

how can i bring out something similar to 
"

<a href="Https://www.google.com">Search</a>

"

in the following code.



trigger chatterfeed on Feedback__c (after update) {

for(Feedback__c feed:trigger.old)
{
FeedItem post = new FeedItem();
post.ParentId = 'Some id';
String fullFileURL = URL.getSalesforceBaseUrl().toExternalForm()+'/'+ Feed.id;
String stringURL  = '<a href='+fullFileURL+' >Test</a>/>';
post.Body =stringURL;
insert post;
}


for which i get a post with a link like below and clicj=king on it should direct to me to the link on the href.
"
Test
"
'String stringURL  = '<a href='+fullFileURL+' >Test</a>/>';   this does no work..

Based on the business requirement I have to make text as a link in trigger and then I wanna retrieve/print that value in a standard page.

 

eg. string link = '<a href=/'+ accId +'>'+accName+ '</a>'

 

Please share your thoughts.

  • April 22, 2013
  • Like
  • 0

Hi,

 

Here is a requirement to remove the button "Submit for Approval" from the Approval History related history list from a case page layout once the case is approved.

 

I didnt find any settings to remove  the button in the page layout properties.

 

Please share your ideas if  you had come across this requirement with any workarounds.

 

Thanks in advance,

Pavan