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
sddodsonsddodson 

Trying to create a custom button that displays account details

My flow is as folllows

 

Screen Element that is also the start element:

Name: Display account id

Unique Name: Display_account_id

       with a display field:

       Account ID:  {!vaAccountId}

               the variable unique name is vaAccountId, data type=text, input and output, and default value is {!$vaAccountId}

 

My custom button is:


URL=/flow/display_current_account_renewal_date?vaAccountID={!Account.Id}

 

I placed the button on the account page and and when I go to an account on click on the button it it just displays the text "Account ID: " 

 

This is my first time trying to do this.  Any advice on what I am doing wrong would be greatly appreciated.

 

Best Answer chosen by Admin (Salesforce Developers) 
RajaramRajaram

Your variable vaAccountID does not need to have a default value.

Also make sure the variable names are matched correctly (case sentitive) so set it to be 

/flow/display_current_account_renewal_date?vaAccountId={!Account.Id}

 

 

 

 

All Answers

RajaramRajaram

Your variable vaAccountID does not need to have a default value.

Also make sure the variable names are matched correctly (case sentitive) so set it to be 

/flow/display_current_account_renewal_date?vaAccountId={!Account.Id}

 

 

 

 

This was selected as the best answer
sddodsonsddodson

Thank you for your help, that solved it!