• Mellorine
  • NEWBIE
  • 25 Points
  • Member since 2009

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies

Hi, I am currently using PHPToolkit and I have created a dynamic query to get data from a Salesforce object.

 

The problem is my local server and my live server is not returning the same values when I try to do a print_r for the QueryResult.

 

For my live server, this is the sample result:

[CreatedDate] => 2010-04-22T11:20:01.000Z
                            [LastModifiedDate] => 2010-04-22T11:20:08.000Z
                            [0] => SObject Object
                                (
                                    [type] => Name
                                    [fields] => stdClass Object
                                        (
                                            [Name] => sample data
                                        )

                                )

Now for my local server, this is the result

[CreatedDate] => 2010-04-22T11:20:01.000Z
                            [LastModifiedDate] => 2010-04-22T11:20:08.000Z
                            [Owner] => SObject Object
                                (
                                    [type] => Name
                                    [fields] => stdClass Object
                                        (
                                            [Name] => sample data
                                        )

                                )

Notice that in the local server, the key name for the SObject is "Owner", while in the live server, it is the index 0. I am not sure why the output is different. I am using the same version of PHPToolkit. I need the "Owner" string because I'll put it as a key in my associative array.

 

Thanks for your time.

I'm working on an external app that retrieves data from Salesforce. Is there a way to retrieve the object icons like the following:

 

 

Is this possible? I want to  retrieve them so in case they change icons, the application I'm doing also changes.

 

Thanks. 

Hi, I am currently using PHPToolkit and I have created a dynamic query to get data from a Salesforce object.

 

The problem is my local server and my live server is not returning the same values when I try to do a print_r for the QueryResult.

 

For my live server, this is the sample result:

[CreatedDate] => 2010-04-22T11:20:01.000Z
                            [LastModifiedDate] => 2010-04-22T11:20:08.000Z
                            [0] => SObject Object
                                (
                                    [type] => Name
                                    [fields] => stdClass Object
                                        (
                                            [Name] => sample data
                                        )

                                )

Now for my local server, this is the result

[CreatedDate] => 2010-04-22T11:20:01.000Z
                            [LastModifiedDate] => 2010-04-22T11:20:08.000Z
                            [Owner] => SObject Object
                                (
                                    [type] => Name
                                    [fields] => stdClass Object
                                        (
                                            [Name] => sample data
                                        )

                                )

Notice that in the local server, the key name for the SObject is "Owner", while in the live server, it is the index 0. I am not sure why the output is different. I am using the same version of PHPToolkit. I need the "Owner" string because I'll put it as a key in my associative array.

 

Thanks for your time.

I'm working on an external app that retrieves data from Salesforce. Is there a way to retrieve the object icons like the following:

 

 

Is this possible? I want to  retrieve them so in case they change icons, the application I'm doing also changes.

 

Thanks.