• deux4ever
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 6
    Questions
  • 8
    Replies
What is the correct SOQL statement to access Opportunity Line Items (Products) from an Opportunity?
I have a flow where I have a dynamic choice to display contacts associated with an Account. I am trying to do a record update, but have a couple of questions on functionality:

1. Is it possible to pre-populate input fields with the existing information from the dynamic choice? ie. display the First Name, Last Name, Title, etc if they are already filled out in the contact record.

2. I setup up the record update and mapped the fields to the contact record, but it updates them all, whether they are blank or not. So if I just wanted change the first name, it updates the first name, but updates the rest of the fields to blank.
I am trying to deploy a custom object I created in my sandbox and getting a failure. I had orginally tried to use change sets on just the custom object, but read that using IDE will solve my issue (I was getting a "Cannot set ControlledByParent on a CustomObject without a MasterDetail relationship field" failure message). So installed Eclipse and added Force.com and when I try to deploy just my custom object, I get a failure message. The odd part is that the actual custom object metadata is being deployed fine, but it looks like it is also trying to send test classes that I do not want to send over. Is there anyway I can just send the custom object and nothing else? When deploying the custom object, I drilled down to the objects folder and sent it from there. Below is the log of the failure.
*** Deployment Log ***
Result: FAILED
Date: June 6, 2014 9:49:05 AM PDT

# Deployed From:
   Project name: Sandbox
   Username: joseph.yu@emeraldnw.com.sandbox
   Endpoint: test.salesforce.com

# Deployed To:
   Username: joseph.yu@emeraldnw.com
   Endpoint: www.salesforce.com

# Deploy Results:
   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Current_Product__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Account_Name__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Approval_Date__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Approval_Status__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Collected_Oil_Gallons_YTD__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Current_Oil_Rate__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Current_Price_Ranking__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Effective_Date__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Notes__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Price_Exception_Reason__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Proposed_Oil_Rate__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Proposed_Price_Ranking__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Rec_Unique__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Recalled_Date__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Rejected_Date__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Rolling_12_Month_Oil_YTD__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Shipping_City__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Shipping_State__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Shipping_Street__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Shipping_Zip_Code__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Oil
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.All
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Approved
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Pending
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    package.xml
   Full Name:  package.xml
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

# Test Results:

Run Failures:
  ConvertLead.basicTestWithoutConvertedStatus System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []
  ConvertLead.basicTestwith System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []
  ConvertLead.basicTestwithAccount System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []
  ConvertLead.basicTestwithAccounts System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []
  createAndAttachPDF.basicTest System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []
  submitForApproval.basicTest System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []
  testSendEmailFlowPlugin.attachmentTest System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []
  testSendEmailFlowPlugin.basicTest System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []
  testSendEmailFlowPlugin.basicTestwithCCEmail System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []
  testSendEmailFlowPlugin.basicTestwithTextAttachment System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []
  testSendEmailFlowPlugin.basicTestwithTextAttachmentandCCEmail System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []
  testSendEmailFlowPlugin.basicTestwithpdfAttachment System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []

My requirement is to display records of a child's child's records in the parent (Account). I am able to do this via Apex, SOQL and Visualforce for output, but the problem I am running into is being able to filter out records that don't pertain to the current account (outputted via Visualforce inside the Account page layout. It currently returns all records). How can I filter out to only show the records of the child's child that pertain to the Account?

The account Id in the SOQL statement is "Current_Product__r.Current_Services__r.Account__r.Id"

Class:
public class PEQueryController{
    private final Account acct;
    public PEQueryController(ApexPages.StandardController stdController){
        this.acct = (Account)stdController.getRecord();
    }
    public List<Price_Exception__c> getRelatedPEs(){
        List<Price_Exception__c> pequery = [Select Name, Proposed_Oil_Rate__c, Proposed_Price_Ranking__c, Price_Exception_Reason__c, Approval_Status__c, Current_Product__r.Current_Services__r.Account__r.Id From Price_Exception__c];
        return pequery;
    }
}
Visualforce page:
<apex:page standardController="Account" extensions="PEQueryController" >
    <apex:pageBlock>
        <apex:pageBlockTable value="{!RelatedPEs}" var="pe">
            <apex:column>
                <apex:pageBlockTable value="{!pe.Name}" var="peName">        
                    <apex:column headerValue="Price Exception Name">
                        <apex:outputField value="{!pe.Name}"/>
                    </apex:column>
                    <apex:column headerValue="Proposed Price Ranking">
                        <apex:outputField value="{!pe.Proposed_Price_Ranking__c}"/>
                    </apex:column>
                    <apex:column headerValue="Proposed Oil Rate">
                        <apex:outputField value="{!pe.Proposed_Oil_Rate__c}"/>
                    </apex:column>
                    <apex:column headerValue="Price Exception Reason">
                        <apex:outputField value="{!pe.Price_Exception_Reason__c}"/>
                    </apex:column>
                    <apex:column headerValue="Approval Status">
                        <apex:outputField value="{!pe.Approval_Status__c}"/>
                    </apex:column>
                    <apex:column headerValue="Account.Id">
                        <apex:outputField value="{!pe.Current_Product__r.Current_Services__r.Account__r.Id}"/>
                    </apex:column>
                </apex:pageBlockTable>
            </apex:column>		
        </apex:pageBlockTable>
    </apex:pageBlock>
</apex:page>

I have a 3 level relationship (parent -> child -> child's_child) object and I want to be able to display a child's_child related list from the parent record. I figure VF would be the best approach for this, but how do I traverse down into the child's_child record from the parent? Any help would be appreciated.
When I try to run my Visualforce page, I get the error "Attempt to de-reference a null object" as soon as I preview it. Not sure what is going on or where to look for the error, but below is my  VF code and controller.

Visualforce Page
<apex:page controller="mySignatureController">
    <apex:pageBlock>
        <flow:interview name="Signature_Flow_Page" interview="{!mySignatureFlow}"
                        finishLocation="{!finishURL}"/>
    </apex:pageBlock>
    <apex:pageBlock>
        <apex:detail subject="{!AccountID}" relatedList="false" />
	</apex:pageBlock>
</apex:page>

Controller
public class mySignatureController{
    public Flow.Interview.Signature_Flow_Page mySignatureFlow { get; set;}
    
    public String getAccountID() {
        if (mySignatureFlow==null) return '';
        else return mySignatureFlow.AccountID;
    }
    public PageReference getfinishURL() {
        PageReference p = new PageReference('/' + mySignatureFlow.AccountID);
        p.setRedirect(true);
        return p;	
    }
}

What is the correct SOQL statement to access Opportunity Line Items (Products) from an Opportunity?
I am trying to deploy a custom object I created in my sandbox and getting a failure. I had orginally tried to use change sets on just the custom object, but read that using IDE will solve my issue (I was getting a "Cannot set ControlledByParent on a CustomObject without a MasterDetail relationship field" failure message). So installed Eclipse and added Force.com and when I try to deploy just my custom object, I get a failure message. The odd part is that the actual custom object metadata is being deployed fine, but it looks like it is also trying to send test classes that I do not want to send over. Is there anyway I can just send the custom object and nothing else? When deploying the custom object, I drilled down to the objects folder and sent it from there. Below is the log of the failure.
*** Deployment Log ***
Result: FAILED
Date: June 6, 2014 9:49:05 AM PDT

# Deployed From:
   Project name: Sandbox
   Username: joseph.yu@emeraldnw.com.sandbox
   Endpoint: test.salesforce.com

# Deployed To:
   Username: joseph.yu@emeraldnw.com
   Endpoint: www.salesforce.com

# Deploy Results:
   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Current_Product__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Account_Name__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Approval_Date__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Approval_Status__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Collected_Oil_Gallons_YTD__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Current_Oil_Rate__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Current_Price_Ranking__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Effective_Date__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Notes__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Price_Exception_Reason__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Proposed_Oil_Rate__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Proposed_Price_Ranking__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Rec_Unique__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Recalled_Date__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Rejected_Date__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Rolling_12_Month_Oil_YTD__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Shipping_City__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Shipping_State__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Shipping_Street__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Shipping_Zip_Code__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Oil
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.All
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Approved
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    objects/Price_Exception__c.object
   Full Name:  Price_Exception__c.Pending
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

   File Name:    package.xml
   Full Name:  package.xml
   Action:  UPDATED
   Result:  SUCCESS
   Problem: n/a

# Test Results:

Run Failures:
  ConvertLead.basicTestWithoutConvertedStatus System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []
  ConvertLead.basicTestwith System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []
  ConvertLead.basicTestwithAccount System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []
  ConvertLead.basicTestwithAccounts System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []
  createAndAttachPDF.basicTest System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []
  submitForApproval.basicTest System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []
  testSendEmailFlowPlugin.attachmentTest System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []
  testSendEmailFlowPlugin.basicTest System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []
  testSendEmailFlowPlugin.basicTestwithCCEmail System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []
  testSendEmailFlowPlugin.basicTestwithTextAttachment System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []
  testSendEmailFlowPlugin.basicTestwithTextAttachmentandCCEmail System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []
  testSendEmailFlowPlugin.basicTestwithpdfAttachment System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, CITY AND STATE ARE REQUIRED FOR THIS ENTRY: []

My requirement is to display records of a child's child's records in the parent (Account). I am able to do this via Apex, SOQL and Visualforce for output, but the problem I am running into is being able to filter out records that don't pertain to the current account (outputted via Visualforce inside the Account page layout. It currently returns all records). How can I filter out to only show the records of the child's child that pertain to the Account?

The account Id in the SOQL statement is "Current_Product__r.Current_Services__r.Account__r.Id"

Class:
public class PEQueryController{
    private final Account acct;
    public PEQueryController(ApexPages.StandardController stdController){
        this.acct = (Account)stdController.getRecord();
    }
    public List<Price_Exception__c> getRelatedPEs(){
        List<Price_Exception__c> pequery = [Select Name, Proposed_Oil_Rate__c, Proposed_Price_Ranking__c, Price_Exception_Reason__c, Approval_Status__c, Current_Product__r.Current_Services__r.Account__r.Id From Price_Exception__c];
        return pequery;
    }
}
Visualforce page:
<apex:page standardController="Account" extensions="PEQueryController" >
    <apex:pageBlock>
        <apex:pageBlockTable value="{!RelatedPEs}" var="pe">
            <apex:column>
                <apex:pageBlockTable value="{!pe.Name}" var="peName">        
                    <apex:column headerValue="Price Exception Name">
                        <apex:outputField value="{!pe.Name}"/>
                    </apex:column>
                    <apex:column headerValue="Proposed Price Ranking">
                        <apex:outputField value="{!pe.Proposed_Price_Ranking__c}"/>
                    </apex:column>
                    <apex:column headerValue="Proposed Oil Rate">
                        <apex:outputField value="{!pe.Proposed_Oil_Rate__c}"/>
                    </apex:column>
                    <apex:column headerValue="Price Exception Reason">
                        <apex:outputField value="{!pe.Price_Exception_Reason__c}"/>
                    </apex:column>
                    <apex:column headerValue="Approval Status">
                        <apex:outputField value="{!pe.Approval_Status__c}"/>
                    </apex:column>
                    <apex:column headerValue="Account.Id">
                        <apex:outputField value="{!pe.Current_Product__r.Current_Services__r.Account__r.Id}"/>
                    </apex:column>
                </apex:pageBlockTable>
            </apex:column>		
        </apex:pageBlockTable>
    </apex:pageBlock>
</apex:page>

I have a 3 level relationship (parent -> child -> child's_child) object and I want to be able to display a child's_child related list from the parent record. I figure VF would be the best approach for this, but how do I traverse down into the child's_child record from the parent? Any help would be appreciated.
When I try to run my Visualforce page, I get the error "Attempt to de-reference a null object" as soon as I preview it. Not sure what is going on or where to look for the error, but below is my  VF code and controller.

Visualforce Page
<apex:page controller="mySignatureController">
    <apex:pageBlock>
        <flow:interview name="Signature_Flow_Page" interview="{!mySignatureFlow}"
                        finishLocation="{!finishURL}"/>
    </apex:pageBlock>
    <apex:pageBlock>
        <apex:detail subject="{!AccountID}" relatedList="false" />
	</apex:pageBlock>
</apex:page>

Controller
public class mySignatureController{
    public Flow.Interview.Signature_Flow_Page mySignatureFlow { get; set;}
    
    public String getAccountID() {
        if (mySignatureFlow==null) return '';
        else return mySignatureFlow.AccountID;
    }
    public PageReference getfinishURL() {
        PageReference p = new PageReference('/' + mySignatureFlow.AccountID);
        p.setRedirect(true);
        return p;	
    }
}