How to call merge function in custom page ?

Hello

How to call merge function in custom page ?

Parents
  • Hi Bhavin Patel

    What you want to merge, if you mean arrays then we have predefined array functions in php like array_merge() and array_combine().

    If you want to do it through Studio, do it with concat() function. This will combine any number of strings separated by commas into a single string

    Formula:

    concat($first_name, " ", $last_name)
    

    also

    concat($first_name, " ", $last_name, "is the ",$title, " for testing.")
    

    Path for this is Studio > Module > Fields. check Calculated Value and click on Edit formula

    Hope this Helps

    Best Regards

    S Ramana Raju

  • Hello Ramana Raju Santhana

    Thanks for reply.

    I want to merge duplicate records from my custom page.

    how can i use SugarCRM merge functionality in my page.

Reply Children
  • Hi Bhavin Patel

    You can do it with the help of array_unique() function, it will removes duplicate values from an array. If two or more array values are the same, the first appearance will be kept and the other will be removed.

    Regards

    John