Code Monkey home page Code Monkey logo

Comments (10)

afawcett avatar afawcett commented on August 14, 2024

@capeterson one for you? 👍

from fflib-apex-common.

capeterson avatar capeterson commented on August 14, 2024

Looks like it. I'll dig in shortly and see what can be done.
On Aug 13, 2014 3:52 AM, "Andrew Fawcett" [email protected] wrote:

@capeterson https://github.com/capeterson one for you? [image: 👍]


Reply to this email directly or view it on GitHub
#24 (comment)
.

from fflib-apex-common.

rsoesemann avatar rsoesemann commented on August 14, 2024

This might be connected to this Know Issue: https://success.salesforce.com/issues_view?id=a1p30000000SzK3AAK

from fflib-apex-common.

rsoesemann avatar rsoesemann commented on August 14, 2024

@afawcett from looking at the class I think the root cause lies out side this class and instead in fflib_SObjectDescribe

from fflib-apex-common.

rsoesemann avatar rsoesemann commented on August 14, 2024

@afawcett and @capeterson I hope I could fix this in pull request #25

from fflib-apex-common.

capeterson avatar capeterson commented on August 14, 2024

Taking a look at this I have to ask if it actually fixed the issue for you? The fflib_SObjectDescribe.getField method delegates to the FieldsMap.get implementation which already lower-cases the input at that level. Although of course it's late and I may be missing some detail.

from fflib-apex-common.

rsoesemann avatar rsoesemann commented on August 14, 2024

It's true that you store the field names in lower case in your Describe cache class, but you definitly do not lower case the field names you extract from a Fieldsets FieldSetMember.

FieldSetMember myField = ...
String stillMixedCase = myField.getFieldPath();
...getFieldToken(stillMixedCase);
Schema.DescribeSObjectResult describe = getDescribe();
Schema.SObjectField field = describe.getField(stillMixedCase);

from fflib-apex-common.

afawcett avatar afawcett commented on August 14, 2024

Hi @up2go-rsoesemann is there still an issue here? @capeterson whats your thoughts?

from fflib-apex-common.

capeterson avatar capeterson commented on August 14, 2024

If it's still an issue certainly needs to be fixed, I also need to reconcile the private and public versions, I think we've had a few bug fixes on the internal version I need to migrate to this repo.

from fflib-apex-common.

daveespo avatar daveespo commented on August 14, 2024

Old and possibly fixed?

from fflib-apex-common.

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.