• DG-Angel
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 3
    Replies
Hi
 
I have created the PRM portal. I can see the settings and HTML for all the pages after logging into PRM.
 
But I don't know how to change the HTML for Login and Logout page. I want to customize the login and logout page and add new header and footer.
 
Can someone tell me where can i find that setting?
 
Thanks
DG
Hi
 
I am trying to solve a problem, where I have to create a custom object and associate it with contacts.
 
So that it should be part of contact each time we look at it.
 
How can I associate a custom object with contacts..so that each contact will have the custom object associated with it.
 
DG
Hi
 
I am trying to update the task using the API .
 
I am creating the fields like this
$createFields = array (
  'ActivityDate' =>$Task_date,
        'Priority' =>'Normal',
        'Status' => 'Not Started',
        'Description' => $_POST['task_logacall'],
        'Subject' => $_POST['task_subject'],
        'WhatID' => $_POST['policy_id'],
  'OwnerId' => $_SESSION['Id']
 
Now its creating the new task but when I add the user Id in lastModifiedID its not creating the task and also not throwing any error, The code is
 
$createFields = array (
  'ActivityDate' =>$Task_date,
        'Priority' =>'Normal',
        'Status' => 'Not Started',
        'Description' => $_POST['task_logacall'],
        'Subject' => $_POST['task_subject'],
        'WhatID' => $_POST['policy_id'],
  'OwnerId' => $_SESSION['Id'],
LastModifiedById=> $_SESSION['Id']
 
$task_result = $ssuUtility->createTask($createFields);
 
The createTask Functions looks like this
 
public function  createTask($fields) {
 
    $contactSObject = new SObject();
    $contactSObject->type = 'Task';
    $contactSObject->fields = $fields;
    $createContactResult = $this->mySforceConnection->create(array($contactSObject));
    return $createContactResult;
  }
 
the $_SESSION['Id'] i am getting by querying the User__c object. Its updating the owner Id but not the lastmodifiedId, which changes the name of the person who last modified it.
 
Please let me know what is going wrong here. Or is that I cannot change the LastModified Person name by updating LastModifiedById using Session_Id from user__c object
 
DG
Hi
 
 I am getting this [any] object with lots of fields like this
 
["any"]=>
      string(67) "<sf:LastModifiedDate>2007-06-01T14:23:18.000Z</sf:LastModifiedDate>"

 
how do I extract the LastModifiedDate from here also if there are two tags in [any] object like this
 
["any"]=>
      string(67) "<sf:LastModifiedDate>2007-06-01T14:23:18.000Z</sf:LastModifiedDate><sf:Variable>2007-06-01T14:23:18.000Z</sf:variable>"

 
how do i extract both LastModifiedDate and Variable from this object here in php
 
Please let me know if someone has done this before. I need to extract these variable vaues from this [any]. These variables are result of my query to CASE object.
 
The result looks like this
object(stdClass)#15 (4) {
  ["done"]=>
  bool(true)
  ["queryLocator"]=>
  NULL
  ["records"]=>
  array(1) {
    [0]=>
    object(stdClass)#16 (3) {
      ["type"]=>
      string(4) "Case"
      ["Id"]=>
      NULL
      ["any"]=>
      string(67) "<sf:LastModifiedDate>2007-06-01T14:23:18.000Z</sf:LastModifiedDate>"
    }
  }
 
 
Thanks
DG
Hi
 
I am getting this [HTTP] Could not connect to host  error. Is that the indication that salesforce API  is down?
 
Is there a way we can figure out if the API is down at any time?
 
-DG
Hi
 
I am trying to update the task using the API .
 
I am creating the fields like this
$createFields = array (
  'ActivityDate' =>$Task_date,
        'Priority' =>'Normal',
        'Status' => 'Not Started',
        'Description' => $_POST['task_logacall'],
        'Subject' => $_POST['task_subject'],
        'WhatID' => $_POST['policy_id'],
  'OwnerId' => $_SESSION['Id']
 
Now its creating the new task but when I add the user Id in lastModifiedID its not creating the task and also not throwing any error, The code is
 
$createFields = array (
  'ActivityDate' =>$Task_date,
        'Priority' =>'Normal',
        'Status' => 'Not Started',
        'Description' => $_POST['task_logacall'],
        'Subject' => $_POST['task_subject'],
        'WhatID' => $_POST['policy_id'],
  'OwnerId' => $_SESSION['Id'],
LastModifiedById=> $_SESSION['Id']
 
$task_result = $ssuUtility->createTask($createFields);
 
The createTask Functions looks like this
 
public function  createTask($fields) {
 
    $contactSObject = new SObject();
    $contactSObject->type = 'Task';
    $contactSObject->fields = $fields;
    $createContactResult = $this->mySforceConnection->create(array($contactSObject));
    return $createContactResult;
  }
 
the $_SESSION['Id'] i am getting by querying the User__c object. Its updating the owner Id but not the lastmodifiedId, which changes the name of the person who last modified it.
 
Please let me know what is going wrong here. Or is that I cannot change the LastModified Person name by updating LastModifiedById using Session_Id from user__c object
 
DG
We've been successfully retrieving a list of Lead and Contact results using php 5.1. We're querying the fields LastName, FirstName, Title, Street, City, State, PostalCode, Country, Phone, Email, and Id. When we add ANY other field, whether it's a standard field such as Fax or Description, or a custom field, the contents of the [any] part of the object changes from a value to an array containing two items.
 
Anyone have similar issues? This is a rush job and is turning into a time nightmare.
 
Before Any Additional Field:
stdClass Object
(
    [done] => 1
    [queryLocator] =>
    [records] => Array
        (
            [0] => stdClass Object
                (
                    [type] => Lead
                    [Id] => Array
                        (
                            [0] => 00Q3000000BK8qbEAD
                            [1] => 00Q3000000BK8qbEAD
                        )
                    [any] => BenFaustna /naVT12345ben@eem.tv89723472
                )
...
 
After Any Additional Field:
stdClass Object
(
    [done] => 1
    [queryLocator] =>
    [records] => Array
        (
            [0] => stdClass Object
                (
                    [type] => Lead
                    [Id] => Array
                        (
                            [0] => 00Q3000000BK8qbEAD
                            [1] => 00Q3000000BK8qbEAD
                        )
                    [any] => Array
                        (
                            [0] => BenFaustna /naVT12345ben@eem.tv89723472
                            [1] =>
                        )
                )
...

Message Edited by benfaust on 07-24-2006 11:35 AM