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
theressa999theressa999 

Is their any way to get standard app names from salesforce

Hi all,

 

This is the Code which i have using in my Application. My goal is, If i make any changes in my Application it should  reflect in salesforce.com 

  

But the bellow code is reflecting only to Custom App

  

As i am hardcoding the Custom App Name  like this

  

ProfileApplicationVisibility pat=new ProfileApplicationVisibility("Force_com",false,true);

 

   

" Force_com" is the custom App Name in My Application which i have created in SalesForce.com .

 

 

The Code Works Fine & The Changes are reflecting

 

   

But when i am trying for Standard App like this  

 

   

ProfileApplicationVisibility pat=new ProfileApplicationVisibility("Call Center",false,true);

   

The Changes are not reflecting in salesforce.com & I am getting the Following error for it

  

 

java.lang.Exception: INVALID_CROSS_REFERENCE_KEY msg: In field: application - no CustomApplication named Call Center found

 

 

EnterpriseProfileClient.java:222)MetaDataProfileClient.java:181)ProcessBusinessDelegator.java:63)

 

 

********************************************************************************************

  

String profileName="";

 

ArrayList<ProfileApplicationVisibility> profileApplicationVisibilityList =null;

  

ProfileApplicationVisibility[] pav=null;

 

  

if(profileName.equals("")){

 

 

 p=new Profile();

    

p.setFullName(resourceDetails.getProfileFullName());

  

 profileName=resourceDetails.getProfileFullName();

 

  

 ProfileApplicationVisibilityList = new ArrayList<ProfileApplicationVisibility>();

   

}

  

 f(profileApplicationVisibilityList.size()>0) {

   

pav=new ProfileApplicationVisibility[profileApplicationVisibilityList.size()];

   

p.setApplicationVisibilities((ProfileApplicationVisibility[])profileApplicationVisibilityList.toArray(pav));

 

}

 

ProfileApplicationVisibilityList = new ArrayList<ProfileApplicationVisibility>();

 

 

ProfileApplicationVisibility pat=new ProfileApplicationVisibility("Sales",false,true);

  

profileApplicationVisibilityList.add(pat);

 

  

if(profileApplicationVisibilityList.size()>0) {

   

pav=new ProfileApplicationVisibility[profileApplicationVisibilityList.size()];

  

p.setApplicationVisibilities((ProfileApplicationVisibility[])profileApplicationVisibilityList.toArray(pav));

 

 

 }

 

   

***********************************************************************************

I should reflect the changes of Standard App Names  in  salesforce

 

please help to solve this issue.

 

  

Regards,

Adithya K

RyanGuestRyanGuest

Metadata for Custom Applications can be found via the metadata API.

 

See the documentation here: http://www.salesforce.com/us/developer/docs/api_meta/Content/meta_customapplication.htm?SearchType=Stem&Highlight=apps|app|App

theressa999theressa999

Hi Ryan

 

We are working on the CEPM Sales Force Connector, we have generated Metadata, Enterprise wsdl from sales force by using this wsdl we are updating Tabs, Applications, Object permissions to Sales Force application profile. For the Standard Tabs we are using ‘Standard – ‘as the prefix before tab name and it is working fine.

Example: for Accounts Tab its internal tab name is Standard-Account,

Campaigns Tab its internal tab name is Standard-Campaign,

Cases Tab its internal tab name is Standard-Case

For the Standard Application setting also we are using as above like ‘Standard-sales, Standard-Ideas etc.’ but its not working. So we need your help to find out the unique app name for sales, Ideas, call center and marketing applications

 

Thank You

Adithya k