function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MunkhtegshMunkhtegsh 

How to get the `Application` of a specific `sObject` (tab) programmatically?

Hey guys, I am trying to get the related Application of a sObject. Is there any way to do it programmatically?

I can find the tabs by querying a list of tabs of the application or doing `Build -> Create -> Apps -> Included Tabs`, but both of them are reluctant approaches since I've got too many sObjects.
Best Answer chosen by Munkhtegsh
MunkhtegshMunkhtegsh
Hi Abhishek,

Thank you for the answer, but it was not the answer that I was looking for. I ended up writing my own query for it. You can find it here (https://stackoverflow.com/questions/62168037/soql-query-for-getting-the-application-name-of-a-particular-tab/62492519#62492519). Hope it will help someone in the future. 

All Answers

AbhishekAbhishek (Salesforce Developers) 
Hi,

I think your query is answered in this blog,

https://stackoverflow.com/questions/3343432/how-do-i-programmatically-launch-a-specific-application

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks.
MunkhtegshMunkhtegsh
Hi Abhishek,

Thank you for the answer, but it was not the answer that I was looking for. I ended up writing my own query for it. You can find it here (https://stackoverflow.com/questions/62168037/soql-query-for-getting-the-application-name-of-a-particular-tab/62492519#62492519). Hope it will help someone in the future. 
This was selected as the best answer