4 件の回答
Hi Chikku,Thanks for adding more clarity to the question.If you are implementing a Visualforce Email Template then you have default tool available to add links to your template:Add email link to custom or letterhead HTML templates (https://help.salesforce.com/articleView?id=000325946&type=1&mode=1) If you are looking to implement via Apex then can use below line in Email body while sending email:
URL.getSalesforceBaseUrl().toExternalForm() + '/' + contact.Id
You can replace the
contact.Id with the object record id which you want.Hope above information helps, Please mark as Best Answer so that it can help others in the future.Thanks.