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
Raphael Mazouz 6Raphael Mazouz 6 

Add an action on a page using metadata

I would like to do the following example but dynamically via metatdada API.
Add Action to the page:
  1. Go to Object
  2. Find Custom, Button and Links Section
  3. Click "New Action"
  4. Add the Lighting component you want same as below
User-added image
Can you show me an example of metadata Api code to do it ? (The custom component is already existing in my org)
Thank You