Skip to main content
kk k ha preguntado en #Salesforce Developer

I am trying to add a button to a pageLayout using the apex metadata api.

 

However, I can't add the button because the platformActionList is null when Salesforce Mobile and Lightning Experience Actions are not enabled.

 

I want to solve this.

 

The first solution I thought of is

I don't know if it's possible, but use the apex metadata api to enable Salesforce Mobile and Lightning Experience Actions.

 

The second is to find the PlatformActionList value that is created by default

when enabling Salesforce Mobile and Lightning Experience Actions

and update it with the button value I want to add.

 

I would like to know if this is realistically possible and if so, how to do it.

Also, if you know of any other possible ways to do this, I would appreciate your help.

 

The sources I referenced for using the apex metadata api are listed below.

https://github.com/certinia/apex-mdapi/tree/master/apex-mdapi/src/classes

 

I am very eager to solve this problem.

 

@* Salesforce Developers * 

2 respuestas
0/9000