You need to sign in to do that
Don't have an account?
anne fdsgafa
Invalid Query Scope: MineAndMyGroups
I am trying to run the query:
SELECT Id,Name FROM ListView USING SCOPE MineAndMyGroups WHERE SObjectType='Account'
I want to retrieve only listviews that are owned by the user and were shared/assigned to the user and populate them into my picklist.
When I enter that query into queryeditor I get this error:
Name FROM ListView USING SCOPE MineAndMyGroups WHERE SObjectType='Account' ^ ERROR at Row:1:Column:43 Invalid query scope: MineAndMyGroups
It works fine when I substitute "MineAndMyGroups" with "Mine". Am I missing any requirements or is there another way to achieve what I want?
Thanks
SELECT Id,Name FROM ListView USING SCOPE MineAndMyGroups WHERE SObjectType='Account'
I want to retrieve only listviews that are owned by the user and were shared/assigned to the user and populate them into my picklist.
When I enter that query into queryeditor I get this error:
Name FROM ListView USING SCOPE MineAndMyGroups WHERE SObjectType='Account' ^ ERROR at Row:1:Column:43 Invalid query scope: MineAndMyGroups
It works fine when I substitute "MineAndMyGroups" with "Mine". Am I missing any requirements or is there another way to achieve what I want?
Thanks
please follow the below link:
https://help.salesforce.com/articleView?id=000232625&language=en_US&type=1
https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_select_using_scope.htm
I hope you find the above solution helpful.If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha