function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mike FuchsMike Fuchs 

Help with Button URL code to call a flow

Hi everyone - I need some help with my custom button URL to call my viusal workflow.  This button is on a custom object called "Project" and one of the input variables refers to the ID of the standard Salesforce object Opportunity that created the project.  I'm able to pass the other variable from the project iteself, but having trouble with passing the opportunity ID field.  Any suggestions on what I am doing wrong.  Here is my URL:

https://cs14.salesforce.com/flow/MilestoneCreateFromButton?VarOppID={!Opportunity.Id}&VarProjID={!pse__Proj__c.Id}&retURL=https://cs14.salesforce.com/{!pse__Proj__c.Id}
ShashankShashank (Salesforce Developers) 
If the project object has a lookup field to opportunity, then you can try something like this:

https://cs14.salesforce.com/flow/MilestoneCreateFromButton?VarOppID={!pse__Proj__c.OpportunityId__c}&VarProjID={!pse__Proj__c.Id}&retURL=https://cs14.salesforce.com/{!pse__Proj__c.Id}