Code Monkey home page Code Monkey logo

Comments (7)

ImJohnMDaniel avatar ImJohnMDaniel commented on August 11, 2024

@maximorojr Can you post an example of what you have attempted thus far?

from fflib-apex-common.

capeterson avatar capeterson commented on August 11, 2024

I believe you just need to increase the platform API that fflib_QueryFactory and fflib_SObjectDescribe are running against. That field is new(ish) and I don't think exists until > APIv30.0. Give that a try?

from fflib-apex-common.

maximorojr avatar maximorojr commented on August 11, 2024

@ImJohnMDaniel
Here is an example, try to create a method to the SELECT below on an AccountsSelector using the fflib_QueryFactory.

SELECT Id, Name, UserRecordAccess.HasReadAccess, UserRecordAccess.HasTransferAccess, UserRecordAccess.MaxAccessLevel
FROM Account

Should be something like this:

public List<Account> selectByIdWithUserRecordAcess(Set<Id> idSet)
fflib_QueryFactory accountsQueryFactory = newQueryFactory();
UserRecordAccessesSelector userRecordAccessesSelector = (UserRecordAccessesSelector) UserRecordAccessesSelector.newInstance();
userRecordAccessesSelector.configureQueryFactoryFields(accountsQueryFactory,'UserRecordAccess');
registrationNumbersQueryFactory.setCondition('Id IN :idSet');
return (List<Account>)Database.query(accountsQueryFactory.toSOQL());
}

@capeterson I tried to update the API Version to the latest, but it still not working. I believe it's Salesforce bug... because when I try to get the describe through executing an anonymous apex code, it doesn't work too.
I've opened a discussion in Developer Forum. Link to the discussion

from fflib-apex-common.

maximorojr avatar maximorojr commented on August 11, 2024

I've created an Idea to implement that. Please up vote my idea. 👍

from fflib-apex-common.

afawcett avatar afawcett commented on August 11, 2024

Upvoted! 👍

from fflib-apex-common.

afawcett avatar afawcett commented on August 11, 2024

@maximorojr i think with identifying a platform need and raising the idea, we are done here? Let me know if you think otherwise and we can re-open. Thanks again! 👍

from fflib-apex-common.

maximorojr avatar maximorojr commented on August 11, 2024

We are done here! Thanks!

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.