Giter Site home page Giter Site logo

Comments (8)

triestelaporte avatar triestelaporte commented on July 30, 2024 1

@afawcett I'm seeing this exact behavior on RemoteSiteSettings. It looks like readMetadata for RSS just returns null no matter what. Have you seen this too?

(I've confirmed behavior in JSForce and Postman raw posts as well)

from apex-mdapi.

Dobermaxx99 avatar Dobermaxx99 commented on July 30, 2024 1

@afawcett I'm seeing this exact behavior on RemoteSiteSettings. It looks like readMetadata for RSS just returns null no matter what. Have you seen this too?

(I've confirmed behavior in JSForce and Postman raw posts as well)

I was able to fix this by specifying the full name of the RemoteSiteSetting.

MetadataService.RemoteSiteSetting wfa = (MetadataService.RemoteSiteSetting) service.readMetadata('RemoteSiteSetting',
                new String[]{
                        '<REMOTESITESETTING FULLNAME>'
                }).getRecords()[0];

        System.debug(wfa.url);

from apex-mdapi.

afawcett avatar afawcett commented on July 30, 2024 1

Thanks for sharing @Dobermaxx99

from apex-mdapi.

knght4yshua avatar knght4yshua commented on July 30, 2024 1

So, I'm assuming that still doesn't work? Here's what I'm passing:

MetadataService.Flow flowResult = (MetadataService.Flow) mdService.readMetadata('Flow', new List<String>{'<NAME OF FLOW>'}).getRecords()[0];

All values (actionCalls, decisions, etc.) still return as "null". When I make a call using the REST Explorer, however, it returns that data just fine. It is clear that the data is there. Why isn't it returning using the syntax above?

from apex-mdapi.

afawcett avatar afawcett commented on July 30, 2024

Currently reading of Flows is not supported in the library, it is actually broken in the Salesforce API this library wraps. I'm waiting for that to be fixed and I will update the library. Here is the duplicate issue. #26.

from apex-mdapi.

BourhiMaryem avatar BourhiMaryem commented on July 30, 2024

Hi ,

Im Having the same issue with workflow rules , although i have used the method for workflow field updates and validation rules and it works just fine , any thoughts ?

from apex-mdapi.

afawcett avatar afawcett commented on July 30, 2024

Have you seen this example?

from apex-mdapi.

afawcett avatar afawcett commented on July 30, 2024

@triestelaporte if you use listMetadata or the equiv from within Developer Workbench what Metadata Fullname is assocaited to the Remote Site?

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.