• Justin Pietras
  • NEWBIE
  • 10 Points
  • Member since 2015


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 8
    Replies
I saw a few years back a presentation at dreamforce around Files Connect.  During that presentation the presenter wrote a script that does the following: 

When adding a file to Salesforce, it will automatically push/create that file within google drive, delete the file within Salesforce and link it to the Salesforce record.  

Has anyone done this before and if so, can you share that script.

BTW...Not a developer in anyway, so any help is much appreciated.  

Thank you in advance!  
I am working in the opportunity object.  I want the workflow to do two things when the stage date has hit "60" days since it has been changed from Quoting to Proposal:  1.  Update the status from "proposal" to "quoting".  2.  Send an email to specific users.  

I already have a custom field called "Stage Duration", which has a formula of the following, which works perfect:
Today()- Last_Stage_Change_Date__c

My question is...in the formula for the workflow below correct?  
 
AND( 
NOT(IsClosed), 
NOT(ISBLANK(Last_Stage_Change_Date__c)), 
ISPICKVAL(StageName, "PROPOSAL"),
IF(Stage_duration__c =>60)
)

The status changes with a field update as planned, but the email does not send out.  Thoughts?
I created a VF Page using a standard controller and a custom extension.  My purpose for this VF Page is to update fields on a specific record within a custom object, but for some reason it is not updating the record once I enter in the data and click on the save button.  

BELOW IS MY CONTROLLER AND EXTENSION:

public class SupplierInfoExtension{
  public order__c selectedOrder {get;set;}
  public List<Order_Line_Item__c> selectedOrderLines {get;set;}
  
  public SupplierInfoExtension(ApexPages.StandardController controller) {
    selectedOrder = (Order__c) controller.getRecord();
    selectedOrderLines = [SELECT Additional_Information__c, Approx_Lbs_Gal__c, CreatedById, CreatedDate, FOB_DVD_Customer__c, FOB_DVD_Supplier__c, 
                                 Id, Name, Order__c, Product__r.name, Product_Code__c, Customer_Product_Code__c
                            FROM Order_Line_Item__c
                           WHERE Order__c = : selectedOrder.Id];
  }
  public void save()
  {
      update selectedOrder;
  }
}



BELOW IS MY VF PAGE CODE:

<apex:page sidebar="false" StandardController="Order__c" extensions="SupplierInfoExtension">
    <apex:form >
    <apex:pageBlock >
            <apex:pageBlockTable value="{!Order__c}" var="Order">
                <apex:column value="{!Order__c.name}"/>
                <apex:column value="{!Order__c.customer__r.name}"/>
            </apex:pageBlockTable>
        </apex:pageBlock>
        <apex:pageBlock >
        <apex:pageBlockButtons >
            <apex:commandButton value="save" action="{!save}"/>
        </apex:pageBlockButtons>
            <apex:pageBlockTable value="{!selectedOrderLines}" var="ol">
                 <apex:column headerValue="Product Code">
                    <apex:inputField value="{!ol.Product_Code__c}"/>
                </apex:column>
            </apex:pageBlockTable>
    </apex:pageBlock>
    </apex:form>
</apex:page>


Any thoughts on why the record is not updating?  
Hello everyone!  

I am a SFDC Admin, and I am starting to get into developing a little.  I currently have a VF page using a standard controller, "Orders__c".  Within this object "orders__c" is a seperate object "Order Line Items__c".  I would like to show the "Order Line Items__c" on my current VF Page, but am not clear on how to create an VF Extension.  I understand what I need to do on the VF Page itself, but the extension is very new to me.  Any example of a basic VF Extension for what I am looking at doing would be very useful.  

Thank you in advance!
I am working in the opportunity object.  I want the workflow to do two things when the stage date has hit "60" days since it has been changed from Quoting to Proposal:  1.  Update the status from "proposal" to "quoting".  2.  Send an email to specific users.  

I already have a custom field called "Stage Duration", which has a formula of the following, which works perfect:
Today()- Last_Stage_Change_Date__c

My question is...in the formula for the workflow below correct?  
 
AND( 
NOT(IsClosed), 
NOT(ISBLANK(Last_Stage_Change_Date__c)), 
ISPICKVAL(StageName, "PROPOSAL"),
IF(Stage_duration__c =>60)
)

The status changes with a field update as planned, but the email does not send out.  Thoughts?
I created a VF Page using a standard controller and a custom extension.  My purpose for this VF Page is to update fields on a specific record within a custom object, but for some reason it is not updating the record once I enter in the data and click on the save button.  

BELOW IS MY CONTROLLER AND EXTENSION:

public class SupplierInfoExtension{
  public order__c selectedOrder {get;set;}
  public List<Order_Line_Item__c> selectedOrderLines {get;set;}
  
  public SupplierInfoExtension(ApexPages.StandardController controller) {
    selectedOrder = (Order__c) controller.getRecord();
    selectedOrderLines = [SELECT Additional_Information__c, Approx_Lbs_Gal__c, CreatedById, CreatedDate, FOB_DVD_Customer__c, FOB_DVD_Supplier__c, 
                                 Id, Name, Order__c, Product__r.name, Product_Code__c, Customer_Product_Code__c
                            FROM Order_Line_Item__c
                           WHERE Order__c = : selectedOrder.Id];
  }
  public void save()
  {
      update selectedOrder;
  }
}



BELOW IS MY VF PAGE CODE:

<apex:page sidebar="false" StandardController="Order__c" extensions="SupplierInfoExtension">
    <apex:form >
    <apex:pageBlock >
            <apex:pageBlockTable value="{!Order__c}" var="Order">
                <apex:column value="{!Order__c.name}"/>
                <apex:column value="{!Order__c.customer__r.name}"/>
            </apex:pageBlockTable>
        </apex:pageBlock>
        <apex:pageBlock >
        <apex:pageBlockButtons >
            <apex:commandButton value="save" action="{!save}"/>
        </apex:pageBlockButtons>
            <apex:pageBlockTable value="{!selectedOrderLines}" var="ol">
                 <apex:column headerValue="Product Code">
                    <apex:inputField value="{!ol.Product_Code__c}"/>
                </apex:column>
            </apex:pageBlockTable>
    </apex:pageBlock>
    </apex:form>
</apex:page>


Any thoughts on why the record is not updating?