• theressa999
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 9
    Replies

Hello All,

 

I want the API names of Standard app's (like: sales, ideas,call centre,Marketing,Community,cotent) . Please Anybody come across the solution to my problem???? its a road block to my project .

 

Thanks,

Adithya k

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,

 

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,

 

is there any way to list out all the Standard Apps Internal  Names (like: Sales,Ideas,Call Center )from  SF instance?

 

 

i'm using JAVA and an enterprise WSDL.

 

please help to solve this issue.

 

 

regards,

Adithya k

 

hi,

 

is there any way to list out all the objects available in a n SF instance?

 

i'm using JAVA and an enterprise WSDL.

 

please help to solve this issue.

 

 

regards,

MM Praneeth

Hi Guys,

 

I have a problem in setting ProfileTabVisibililty to standard tabs like "Accounts", "Leads".

 

Following code works fine with the custom tabs but not with standard tabs. Please help me as this is very urgent to me.

 

Profile p=new Profile();

 

p.setFullName(ProfileName);

ProfileTabVisibility ptv = new ProfileTabVisibility("__samp__c",TabVisibility.DefaultOn );

ProfileTabVisibility[] tabVisibilities = new ProfileTabVisibility[] {ptv};

p.setTabVisibilities(tabVisibilities);

UpdateMetadata updateMetadata = new UpdateMetadata(ProfileName, p);

System.out.println(p.getTabVisibilities(0).getTab());

 

 

AsyncResult[] ars= metadatabinding.update(new UpdateMetadata[] { updateMetadata });

 

This works fine.

 

But when I use standard tabs like "Account" it says

 

INVALID_CROSS_REFERENCE_KEY msg: In field: tab - no CustomTab named Account found

 

 

Anything that i set in ProfileTabVisibility is treated as CustomTab.

 

How can I set tab visibility for Standard Tab?

 

Quick reply would help me a lot.

 

Awaiting for your reply,

 

Praneeth.

Hello All,

 

I want the API names of Standard app's (like: sales, ideas,call centre,Marketing,Community,cotent) . Please Anybody come across the solution to my problem???? its a road block to my project .

 

Thanks,

Adithya k

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,

 

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,

 

is there any way to list out all the Standard Apps Internal  Names (like: Sales,Ideas,Call Center )from  SF instance?

 

 

i'm using JAVA and an enterprise WSDL.

 

please help to solve this issue.

 

 

regards,

Adithya k

Hi Guys,

 

I have a problem in setting ProfileTabVisibililty to standard tabs like "Accounts", "Leads".

 

Following code works fine with the custom tabs but not with standard tabs. Please help me as this is very urgent to me.

 

Profile p=new Profile();

 

p.setFullName(ProfileName);

ProfileTabVisibility ptv = new ProfileTabVisibility("__samp__c",TabVisibility.DefaultOn );

ProfileTabVisibility[] tabVisibilities = new ProfileTabVisibility[] {ptv};

p.setTabVisibilities(tabVisibilities);

UpdateMetadata updateMetadata = new UpdateMetadata(ProfileName, p);

System.out.println(p.getTabVisibilities(0).getTab());

 

 

AsyncResult[] ars= metadatabinding.update(new UpdateMetadata[] { updateMetadata });

 

This works fine.

 

But when I use standard tabs like "Account" it says

 

INVALID_CROSS_REFERENCE_KEY msg: In field: tab - no CustomTab named Account found

 

 

Anything that i set in ProfileTabVisibility is treated as CustomTab.

 

How can I set tab visibility for Standard Tab?

 

Quick reply would help me a lot.

 

Awaiting for your reply,

 

Praneeth.

I'm getting this exception when trying to use MetadataBindingStub.retrieve

 

org.xml.sax.SAXException: Invalid element in com.sforce.soap._2006._04.metadata.AsyncResult - secondsToWait
        at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
        at org.apache.axis.client.Call.invoke(Call.java:2470)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at com.sforce.soap._2006._04.metadata.MetadataBindingStub.retrieve(MetadataBindingStub.java:2124)

 

I've re-generated the APIs using the metadata WSDL to see if there was something amiss with my APIs, but the error remains.

 

API version is 17.0

Not sure the version of Axis (inherited project) but suspect 1.4

 

This error appears to be coming from the Salesforce side because "secondsToWait" is nowhere to be found in my code, not in the WSDL and not in the generated APIs.

 

Any ideas?

 

Thanks,

Joe