You need to sign in to do that
Don't have an account?

Standard app API (Internal names ) in 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
Hi All
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 help to find out the unique API name's for sales, Ideas, call center and marketing applications.
I tried by using describeSObject( ), describeTabs( ), calls but i am getting only Standard app lables but not standard Application- API (Internal names ).Actually i want Standard app internal names(API names) so that i can perform the updation in Standard Application setting . Anybody please come across the solution to solve my problem????
Thank You
Adithya k