• Jia Hu
  • PRO
  • 2436 Points
  • Member since 2012

  • Chatter
    Feed
  • 92
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 831
    Replies

Question, 

 

Can you deploy change sets from one production to another production org.?

 

Thanks!  

  • January 22, 2013
  • Like
  • 0

Hi all,

 

We have recently included our Product Development team in our Chatter community and they've raised a question as a result. They would like to know if someone posts a specific hashtagged word like #suggestion, is there a way for this to create an email alert?

 

Currently all product improvement suggestions are emailed to a specific email that creates what is similar to a SFDC case. If this is possible, it would streamline the process and allow everyone to see the suggestions we're receiving.

 

Thanks,

Steve

A colleague of mine, while creating an iOS app (for a proof of concept) which uses the zksForce library, found the following article about querying an Apex Class;

http://wiki.developerforce.com/page/Metadata_Query_Apex_Class

 

I've tried to search around this discussion board and through a web search but can't seem to find any further information around this article/feature (especially around the query on line 16 of the request).

 

I'm wondering if anyone has any further information about this feature, such as;

- how querying an apex class works (because the concept doesn't make sense to me)

- example apex code

- can you pass in parameters (or use a where clause), and if so, how to setup the code and query to do this

 

Thanks,

 

Nathan

  • January 17, 2013
  • Like
  • 0

System.schedule('GetPostDataSchedule', '0 0 * * * ?', new GetPostDataSchedule());

 

It runs every hour up to 11 PM at which point it stops.  Any ideas?  I need it to run hourly everyday.

Can someone please help?  I am almost certain Hierachies in SalesForce do not work as they are specified.  

 

Sharing Settings Organization Wide Defaults 

Lead = Private

Account = Private

Opportunity = Private

 

Sharing Rules on all Objects:  NONE!

 

Admin

L Head of Finance

       L Direct Account Rep

       L Operations

       L Head of Sales

             L  Sales Manager

                       L  View Only Sales Rep

 

 

Issues:

 

1.)  View Only Sales Rep can see a records owned even by the ADMIN.  

 

I Want the "View Only Sales Rep" not to be able to see anything.  And then I will add him specifically to certain Sales Manager Default Account and Opportunity Team to allow him to view only those records.  

 

 

 

 

 

 

 

 

 

 

 

 

  • January 10, 2013
  • Like
  • 0

Hi

 

I'm new to this so please forgive my ignorance.

 

I'm getting the exception when:

 

  1. insert an Opportunity
  2. insert a ContentVersion
  3. post the new ContentVersion to the Opportunity's chatter feed
  4. delete the Opportunity

Does anybody know why, and if so, how to overcome the exception?

 

I am using API version 26.0

 

Thanking you in advance

 

 

private static void TestOpportunityDeletion()

{
  // create an opportunity
  Opportunity opp = new Opportunity() ;
  opp.Name = 'Test Name' ;
  opp.StageName = 'Test Stage Name' ;
  opp.CloseDate = Date.Today() ;
  insert opp ;

  // attach a document to its chatter feed
  ContentVersion doc = new ContentVersion() ;
  doc.Title = 'Test Version' ;
  doc.PathOnClient = 'test version.docx' ;
  doc.VersionData = Blob.ValueOf( 'test content' ) ;
  doc.Origin = 'H' ;
  insert doc ;

  FeedItem post = new FeedItem() ;
  post.Type = 'ContentPost' ;

  post.ParentID = opp.Id ;
  post.RelatedRecordID = doc.id ;
  insert post ;

 

  // delete the opportunity
  delete opp ;
}

Hi All

Is there a way to get the number of api requests for a given period, not for last 24 hours or last 7 days?

 

And what is meant by last 7 days in "API Calls Made Within Last 7 Days" standard report. ?

Is it 7 days behind current time or

7 days behind todays 12:00 am.

  • January 09, 2013
  • Like
  • 0

Apexで時間を制御したいです。

 

現在時間を取得して、たとえば下記のような処理をするにはどうやってCodeすればいいのか教えてください。

 

現在時間が13:00以前の場合 → 処理1

現在時間が13:00以降の場合 → 処理2

I'm having a hard time understanding relationships vis a vis when a Parent record displays a Child's activities in the Related List section and when it doesn't.

 

It seems that any Activities associated with a Contact will always display in the Account record.

 

However, I have a custom object that is a Child to Accounts, and in that case, the Child Activities do NOT display in the Account Related Fields List section.

 

Can someone explain to me why this is so, when on the Fields Setup Page, the relationships between these Child records and the Account record look exactly the same?

Hi,everyone!

    I'm trying to send a http request to a Japanese app, which require the Shift_JIS charset.

    so how to change the charset in the body, and also change here: <?xml version="1.0" encoding="Shift_JIS"?>

    Any help would be much appreciated!
    Thanks!

Hello All, 

 

Can anyone please tell me

When to use Enterprise WSDL  ?

When to use  Partner WSDL ?

When to use Apex WSDL ?

 

1. Enterprise WSDL : as per me , if u give some read only information to endpoint system, tat system must consume our E-WSDL and getting all the information ?

later if u have any change in schema whether  we need to update the WSDL as well as End point system too ?

 

2. Partner WSDL : its fully dynamic, Endpoint system will provide the object and fieldname as parameter then they will get all info. 

if u have any change in schema , seems no need to update WSDL and end point system too ?

 

3 . APEX WSDL ? When to use ? , What purpose ? Why we need to use this ? 

 

 

Thanks,

Vinoth 

Hi,

 

My organization has about hundreds of account records with the name of "ABC" each with different account numbers and addresses. I'm suppose to pick only 2  "ABC" accounts with the same account number to merge. 

 

However, the account merge option seems to only allow me to search via the account names, which give me hundreds of results (all with the same account name "ABC"). I'm unable to differentiate the accounts as it does not display the account number and addresses.

 

Are there any other ways to merge duplicate account? Help?

  • January 04, 2013
  • Like
  • 0
Is it possible to update a record from one Salesforce organization to another Salesforce organization using outbound messages(workflow)? If possible, Please guide me how to configure it.

How to include spelling check option on a Custom Object?

what is soap api , and rest api?

how will use the soap api and rest api?

what is bulk api ?

how will use the bulk api?

Hi,

 

I have made object "Equipment Snapshot" access as private as I don't want all the users to access all the data in the object.

Then I have given access to the data with criterion based sharing rules. 

 

For Ex User 1 "Albert Lombard" is a Standard User, he needs to access records of type "Printer" on the  underlying "Equipment" object. User 2 "Mike Barch" is a Sales specialist, he needs access to "Scanner" type records.

 

Equipment Snapshot object has Type field with printer, scanner, xerox values accordingly.

 

I have created groups - 1. printer group and added Albert Lombard to that group and 2.scanner group and added Mike Barch to that group.

 

Under "Equipment Snapshot Sharing Rules" I used criterion based sharing rules as 

Rule 1) Criterion (Select which records to share), Type = Printer and (Select the users to share these records with) Public group  = printer group.

Rule 2) Criterion (Select which records to share), Type = Scanner and (Select the users to share these records with) Public group  = scanner group.

 

After logging in as User 1/User 2, even after giving the above rules, when I search for the report I am able to see it but when I click on the report I get the below message

"Insufficient Privileges You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary. "

 

Please let me know why the users are not able to access the report data?

 

Thanks,

Babu.

  • December 25, 2012
  • Like
  • 0

Hi,

 

I have made object "Equipment Snapshot" access as private as I don't want all the users to access all the data in the object.

Then I have given access to the data with criterion based sharing rules. 

For Ex user "Albert Lombard" is a Standard User, he needs to access records of type "Printer" on the  underlying "Equipment" object. User 2 "Mike Barch" is a Sales specialist, he needs access to "Scanner" type records.

 

Equipment Snapshot object has Type field with printer, scanner, xerox values accordingly.

 

I have created groups - 1. printer group and added Albert Lombard to that group and 2.scanner group and added Mike Barch to that group.

 

Under "Equipment Snapshot Sharing Rules" I used criterion based sharing rules as 

Rule 1) Criterion (Select which records to share), Type = Printer and (Select the users to share these records with) Public group  = printer group.

Rule 2) Criterion (Select which records to share), Type = Scanner and (Select the users to share these records with) Public group  = scanner group.

 

After logging in as User 1/User 2, even after giving the above rules, when I search for the report I am able to see it but when I click on the report I get the below message

"Insufficient Privileges You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary. "

 

Please let me know why the users are not able to access the report data?

 

Thanks,

Babu.

  • December 25, 2012
  • Like
  • 0

I want to be able to search all content of apex pages from within a apex class - basically looking for string. I was told there is an object which contains the pages but cannot find it. Can anyone help ?

  • December 20, 2012
  • Like
  • 0

Hi All,

           Is it possible to  deploy from a developer instance to production? If not what would be the alternative?

 

Thanks,

Balbir

  • December 19, 2012
  • Like
  • 0

Hi all,

 

I think my brian is fried as I have been coding all day - I don't even know if I am searching using the correct terminology as I have been jumping between SQL, SOQL, APEX & VB all day...

 

Essentially looking to see if it is possible to compare the results a list collection to the results in another list.

 

As an example - list 1 is generated from the following code:

list<recordType> rT = list<Recordtype>(SELECT ID FROM RecordType  WHERE (Name LIKE '%Standard%' OR Name LIKE '%Parent%')  AND sObjectType = 'Account');

 List 2 is a list of all accounts:

list<Account> ac = list<Account>(SELECT Id, RecordTypeID FROM Account);

 

I know with SOQL you can have a nested query, though in using the 'Database.getQueryLocator' method I seem to be unable to use nested SOQL statements for my batch code...

When I use Outbound Message under 2-way SSL, got the following error in Salesforce,

javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

 

What I have done is,

1. Outbound Message test with 1-way SSL

2. In the 2-way SSL, download the client certificate from Develop -> API -> Client Certificate

2. Set up this client certificate in my Apache Web Server

 

And it is also strange that, in the 2-way SSL, I can't get the any log in the Apache, but in the 1-way SSL,

I can get the access log.

 

Anyone please help me out!

  • December 04, 2012
  • Like
  • 0

Does anyone know how to move all the documents from the Lotus Notes to the Salesforce?

 

Custom want to move all the data, espeically the docs to the Salesforce.

I am not sure how to do this.

 

I surpose the Lotus Notes/Domino version is 7.5.

 

Any idea would be appreciated!

  • December 04, 2012
  • Like
  • 0

I am using Outbound Message to call a remote Apache Web Server with SSL.

The serever certification is from VeriSign. And everything is fine when client certification is disabled.

 

When the remote Apache enabled the client certification,

I downloaded the sfdc-client.cert from Develop -> API -> Client Certificate

and change the file name to sfdc-client.pem

 

In the Apache, setup as,

SSLCACertificateFile   ..../sfdc-client.pem

SSLVerifyClient require

SSLVerifyDepth 2

 

But in the Salesforce I got the following error at Monitoring -> Outbound Messages, like

javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

 

I have stuck here for a long time, please someone could help me to fix this. Thanks ahaed.

 

  • November 16, 2012
  • Like
  • 0

I would like to know if there is any Toolkit/Production for Encryption/Decryption,

when using Web Service to integrate with Other Systems, such as Tomcat, Glassfish based Web Servers,...

 

If currently no such production available, does someone has experience to develop such function by yourself?

such as use Apex Crypto class to work with Java class,... 

 

Any information or suggestion is appreciated.

I want to confirm the Device OS info. of iPad through Salesforce Mobile.

 

When a iPad user login to Salesforce Mobile,

in the system   Administration Setup -> Mobile Administration -> Salesforce Mobile -> Users and Devices -> All Mobile Users and Devices

 

we can see the mobile information of Device OS.

 

I want to know if iPhone and iPad share the same value "iPhone OS" in Device OS.

 

Since I didn't have iPad on hand, someone please help me out.

When I click 'View All' to open the list of Posts of myself, 

how can I define the layout of this page.

 

For example, most recently updated topics are on the top,....

or how many posts are displayed in one page,... etc.

When I click someone's name, and I can open his profile page.

In the Contact section, I can add someone as my friends.

 

My quesion is, after adding the friends, where can I see my friend list?

 

Please, someone help me out! 

Is there a sample code and tutorial as how I can invoke an external webservice from visualforce page or apex code.

I also want to know how I can expose web services within force.com platform so that my external application can invoke that.

 

so basically I need web services inbound and outbound from sfdc. Any tutorials or documentation for that?

 

Thanks,

Kalpana

I am trying to push a comment from my code into the Chatter instance for a user.  I have been able to use the SOAP API and the UserFeed object to get what comments are out there for my account but I am not sure how I can push a new comment out there from my application.  Do I have to use the REST API to do this?

Hi

 

I am new to Force.com and I was looking at this Ruby gem - https://github.com/ejholmes/restforce and tried to use it. I am stuck where it is asking for a client id

 

I think I am missing something fundamental about force.com, how do I find out what my client id is? 

 

 

  • January 22, 2013
  • Like
  • 0

Question, 

 

Can you deploy change sets from one production to another production org.?

 

Thanks!  

  • January 22, 2013
  • Like
  • 0

Hi,

 

Iam new to chatter api.

I have built java code to authenticate oauth and pass the file download url via the code

but my problem is instead of open,save i want to save the files to local drive via the code.

Is there any resource to get the file saved to local drive.

Please guide me. 

  • January 21, 2013
  • Like
  • 0
Hi, I followed below post to mock a webservice callout for test class :- http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_callouts_wsdl2apex_testing.htm but it does not seem to work, is there any other setting required to make it work ? API Version is 26.0 and I am doing it on developer edition. It is still throwing error saying "System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out " Can anyone please help me ? Thanks in advance .

Hi folks!

 

I was asking myself the following question:

Who is the most trusted source in the community when it comes to code effectivity and efficiency?

 

I want to improve my code effectivity and efficiency. Who do I have to talk to or read from?

What is your personal opinion?

 

I'm looking forward to your answers!

Josh :-)

I'm planning to take developer certification in couple of weeks.

Any tips and or suggestions from people who took the test?

Thanks,

 

any documents, questions please email to kalpanar01 @ yahoo.com

 

thanks,

Kalpana.

Hi.

 

I have a string of the format - 2013-01-10T18:01:43.017+0000.
What is the best way to convert the above string format to Datetime?

 

Thx

I am a newcomer to this platform.

I just signed up for this free developer edition and I am currently interested to see the programmatic capabilities of salesforce (coming from siebel escript background)

I want to know whether I will be able to do Apex coding with this free developer edition or should I have to purchase a paid license to do some Apex coding ?.

 

tx

vp

 

 

  • January 18, 2013
  • Like
  • 0

Hi All,

 

  'Reset My Security Token' Option is not appear In my sandbox and Production .

 

   I ckecked IP restiction, that is fine and in my profile API is enabled. How to enable this option in my sanbox?

 

  Can any one please provide a solution for this issue.

Hi All,


I've a SOQL query which gives me the CompletedDate and CreatedDate in GMT.

Is it possible to get the same in my time zone. (KST)

 

List<AsyncApexJob> batchJob = [SELECT CreatedDate, JobItemsProcessed, Status, ExtendedStatus, NumberOfErrors, CompletedDate, JobType, TotalJobItems, ApexClassId FROM AsyncApexJob where id = : batchProcessId ];

 

When i added a line as below i got in KST.

kstCreatedDateMod = String.valueOf(aaj.CreatedDate);

 

But is it posssible to get directly from query? without any additional lines of code.

 

 

Thanks in Advance,

Rohit R

  • January 18, 2013
  • Like
  • 0

Hi all,

 

We have recently included our Product Development team in our Chatter community and they've raised a question as a result. They would like to know if someone posts a specific hashtagged word like #suggestion, is there a way for this to create an email alert?

 

Currently all product improvement suggestions are emailed to a specific email that creates what is similar to a SFDC case. If this is possible, it would streamline the process and allow everyone to see the suggestions we're receiving.

 

Thanks,

Steve

Hi,

I enabled delegated authentication for my salesforce organisation, now its saying single sign on is invalid for your organisation.
Contact your administrator. When I request to reset my password the url in my mail is showing that can not reset password

for single sign on users.

How could I reset password for my organisation.? Please help me out from this problem?

Hi,

What is the https://c.cs14.visual.force.com represents for my salesforce organisation. What is its environment. Any why the domain url is changing to https://c.cs14.visual.force.com when I open any visualforce page.

Please let me know why is this changing and what exactly it denotes?

 

 

Thanks

 

 

-Shiva

Hi All

Is there a way to get the number of api requests for a given period, not for last 24 hours or last 7 days?

 

And what is meant by last 7 days in "API Calls Made Within Last 7 Days" standard report. ?

Is it 7 days behind current time or

7 days behind todays 12:00 am.

  • January 09, 2013
  • Like
  • 0

When I'm using the Force.com console I get the following error every now and again:

 

Response to EXEC to /_ui/common/apex/debug/ApexCSIAPI was : -1, transaction aborted

 

The code usually executes ok and the transaction doesn't seem to abort (I'm assuming when it says abort it aborts the entire transaction). Also then when I try to double click on one of the debug statements in the console, to see what it says it keeps saying USER_DEBUG undefined. Which I'm sure it didn't do before the org was upgraded to Winter 12? maybe just me.

 

How can you find out why the transaction was aborted when there are no errors in the log?

 



 

 

  • October 10, 2011
  • Like
  • 0