You need to sign in to do that
Don't have an account?
Petr Částek 3
Schema.SObjectType.Contact.fields.getMap() returns smaller map than expected.
Hi,
I have a managed package that I'm developing. In the developer org the above expression returns:
- normal result counting more than 61 fields when ran in anonymous execution mode
- sooner 0, now 1 field only when ran from tests as well as from batch job (apex)
Why? I need all the fields to be accessible in batch job or tests.
I found that API restriction might be the limiting factor. But my package has no possibility to set its restrictions:
I have a managed package that I'm developing. In the developer org the above expression returns:
- normal result counting more than 61 fields when ran in anonymous execution mode
- sooner 0, now 1 field only when ran from tests as well as from batch job (apex)
Why? I need all the fields to be accessible in batch job or tests.
I found that API restriction might be the limiting factor. But my package has no possibility to set its restrictions:
You can verify field level security on Contact fields first.
Then let me know again any issues.
Regards,
Scott Haleo
@Hytechpro.com