Comments (6)
Just to let you know i am aware of this and will likely take a look next week at this.
In the meantime there is a comment in the Salesforce Metadata API documentation that states that 'List views with the Visible only to me Restrict Visibility option are not accessible in Metadata API. Each of these list views is associated with a particular user.'. Just wanted to let you know this, as this suggests your step 1 above is not possible.
http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_listview.htm
from apex-mdapi.
Thanks Andrew,
I did see that in the documents when I was going through this, that's alright. The problem I'm trying to solve here is just clean up, we've moved a lot of business units into salesforce over the past year and one in particular (sales) needs to have permissions to manage public lists. They are supposed to share the lists only with their territory but they generally don't take that extra step and hit share to all instead... you know how that goes. So I want to have a batch that runs through them and changes the sharing to what it should be so it's not overwhelming for other departments.
Thanks again for your response, I look forward to the fix and using this package more!
from apex-mdapi.
Just been looking at this issue again, i am not sure what fix your expecting from me on this? Can you confirm and I'll take a look.
from apex-mdapi.
I'm not sure if there is a fix, I may be writing the code incorrectly. When the listView updates, it resets all of the values not specified to null or default. I wouldn't be specify the filters, since I don't want to change them but they are reset to the default value.
from apex-mdapi.
Yeah sadly it does not support partial updates, unlike some metadata objects, like Custom Object. So because you cannot retrieve it (because its not a shared one) you cannot update it and retain the original values. Sorry about this, it does seem like a restriction in the Salesforce API side of things sadly, i'll keep it in mind and if something comes to light I'll add a comment here for sure!
from apex-mdapi.
List<MetadataService.UpdateMetadata>
Geeting error in this line the MetadataService.UpdateMetadata is not a valid type.
Already have MetadataService Class in my org.please help
from apex-mdapi.
Related Issues (20)
- MetadataServiceExamples outdated
- Test Class For MetadatadeolpyController Class
- Help article to use named credentials with wrapper has been removed HOT 1
- Generate an Apex from WSDL
- GlobalValueSetTranslation HOT 2
- Update search layout task, event, activity HOT 1
- System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element customizeSetup
- Apex Wrapper Metadata API Takes Time to Reflect the Change
- Can't create in production org
- Can't create a sharing rule HOT 2
- GlobalValueSetTranslation
- Can we create ApexClass natively? Any Example? HOT 1
- UserInfo.getSessionId() makes this unusable in packaged code HOT 2
- How do we update multiple profiles at once?
- LightningComponentBundle (LWC): reading/creating/updating
- Creating Apex Trigger
- Creating a MultiPicklist HOT 2
- System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element includeRecordsOwnedByAll
- How To get Picklist Value according to record type for a custom object HOT 3
- Can anyone suggest on how to read the flexipage? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apex-mdapi.