Giter Site home page Giter Site logo

Comments (6)

afawcett avatar afawcett commented on July 30, 2024

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.

blaketanon avatar blaketanon commented on July 30, 2024

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.

afawcett avatar afawcett commented on July 30, 2024

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.

blaketanon avatar blaketanon commented on July 30, 2024

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.

afawcett avatar afawcett commented on July 30, 2024

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.

abhishek200-ai avatar abhishek200-ai commented on July 30, 2024

@afawcett

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.