certinia / apex-mdapi

Apex Wrapper for the Salesforce Metadata API
BSD 3-Clause "New" or "Revised" License
684 stars 974 forks source link

Update search layout task, event, activity #283

Open santiago-rollio opened 2 years ago

santiago-rollio commented 2 years ago

Hi!, first thx for sharing this awesome metadataservice class and examples.

I'm trying to add a new List View button to the search layout in Activities since I can't do it in Task or Event directly. I'm getting errors when trying to save it, only when UpdateMetadata is called with the new listview buttons.

In the rest of the objects I have no problem, but with Task, Event and Activity every time I try to save, i get same error.

FYI: The process is:

Error: "error occured processing component activity. in field: listviewbuttons - no weblink named Activity.Nameofbutton"

"Activity.Nameofbutton" is a button that is already there (it's a button from Task), an old one, added by some user manually to the Activity Search Layout, NOT the one I want to add.

lazerlipa commented 2 years ago

can you please share the code that you use for the rest of the objects? because I cant get it to work thanks