function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ravichandra sindheRavichandra sindhe 

Need a help to build this apex logic with sample code

table name :Messages

MessageID:Sample1

messageText:name chnaged from *%oldname%* to new name *%newname%*

i will pass messageID,oldname,newname as per below

param(0,0)='oldname'

param(0,1)='newname'

Functionname("Sample1",param)

i want those old and new name replaced with a table message.

 

and finally i need that message to make an update

 

example the output message should 

name chnaged from ravi to new name chandra.