Skip to main content
I need to create a field that puts in a URL and adds the numbers from a field on the record to the end.

 

like this

 

https://mywebsite.URL/admin/viewMerchant/+SF Field+/
3 answers
  1. Lakhan Meghani (Cube84) Forum Ambassador
    Aug 12, 2020, 7:45 PM
    Hi Leah

     

    it looks like you want to Concate 2 strings.

     

    This can be done using formula field or you can do the same with trigger.

     

    So your trigger simply concate the string as mentioned in your usecase.

     

    For(objname t :trigger.new) {

     

    t.yourFinalField = 'https://mywebsite.URL/admin/viewMerchant/' + t.SFField + '/' ;

     

    }

     

    DML update;

     

    Here is the Psuedo code which helps you to build a logic.

     

    IF IT works for you then kindly mark the best answer and close the thread.

     

    Thanks
0/9000