Create a Workflow Rule that will pre-fill information from a related object

When searching on Salesforce directly or using Formyoula, you will only be able to find records where your search matches one of the objects searchable fields. Currently, the Salesforce lookup and formula fields are not searchable. Searching for Contacts based on the Account name is not possible because the Account is a lookup field on the Contact object and is not searchable. We would need to have the Account name available directly on the Contact record in a searchable field type like the text field to enable Contact search based on the Account name.

In this guide, we will explain how to create a Workflow Rule in your Salesforce, that will automatically prefill the Account Name in a text field on the Contact record.

To start, please go to Setup => Contacts => Fields

And please create an “Account Name” text field by pressing the “New” button

When all the steps are completed, please click “Save”.

Now please go to Setup => Create => Workflow & Approvals => Workflow Rules and please click on the “New Rule” button.

Please select the Contact object and click on the “New” button.

Please add a Rule Name, select “created, and any time it's edited” radio button and set the Rule Criteria to “Criteria are met when Contact: Last Name not equal to blank”.

When done, please click on “Save & Next”.

Now please select the “New Field Update” option in “Add Workflow Action” drop-down list.

Please add a name, select the “Account Name” field in the “Field to Update” drop-down list under “Custom Fields”. And please add “Account.Name” in the formula text area.

When done, please click on the “Save” button.

You can test the Workflow Rule, by adding the new field to the Contact Page Layout and creating a new Contact record.

The Workflow Rule will automatically pre-fill the Account Name from the Account record to the new field on the Contact record.

For any questions, please contact us -


  1. Use Repeat Groups to Create Salesforce Child and Related Records on Your Mobile Forms
  2. Lead Capture With Business Card
  3. Create Salesforce Event with Multiple Attendees
  4. Common Salesforce Record Errors
  5. Testing Formyoula In Your Salesforce Sandbox
  6. Create Records on Custom Objects With Formyoula
  7. Lookups for Salesforce Orders and Contracts
  8. Salesforce Record Select List
  9. Salesforce Child Record Auto-Fill Using Repeat Groups
  10. Adding Salesforce Lookup Fields to Your Mobile Forms
  11. Convert Existing Salesforce Lead Into an Account, Contact, Opportunity and Followup Task
  12. Salesforce Select Element for Record Assignments in the Field
  13. Salesforce Select Child Record Filter
  14. Offline Event Registration
  15. Add Users To Campaigns During Events
  16. Display Images and Signatures in Salesforce
  17. Set Record Types with Hidden fields
  18. Pre-fill Formyoula forms with Salesforce Information
  19. Autonumber new Salesforce records with a unique Formyoula entry ID
  20. New Contact Creation and Attachment to Campaign as a Campaign Member
  21. Override Select List Options With Salesforce IDs
  22. Updating existing records in Salesforce with Lookups
  23. Salesforce Record Type Switching With Workflow Rules
  24. Record Customer Site Visit on Salesforce
  25. Salesforce From With Multiple Line Items Using Repeat Groups
  26. Conditional Salesforce Record Creation
  27. Update or Create a Contact and Attach to a New Campaign as a Campaign Member
  28. Displaying Additional Salesforce Information for Lookup & Select Fields
  29. Send Email After Each Form Entry is Captured
  30. Record & Display Images in Salesforce
  31. Record & Display Signatures in Salesforce
  32. Record Voice Files in Salesforce
  33. Formyoula Integration With Salesforce Chatter
  34. Add Salesforce Users to Your Formyoula Account
  35. Formyoula Salesforce Features
  36. Create a Workflow Rule that will pre-fill information from a related object
  37. Prefill form fields from Salesforce using URL merge parameters
  38. Capture Photos, Signatures And Sketches Offline
  39. Create Multiple Related Salesforce Records Using a Single Form
  40. Create Time Based Workflow Rule To Retry Failed Formyoula Files
  41. Create, Update and Find Records on Salesforce
  42. Online and Offline Salesforce Lookup Search
  43. Filter Salesforce Records Based on Formyoula User Email
  44. Store Formyoula form entries directly in your Salesforce organization
  45. Create Salesforce Chatter Files, Attachments and Documents using Formyoula Form Files
  46. Create a Salesforce Event Record Linked To Multiple Contacts
  47. Create Custom Lookup Search Result Fields
  48. Sign In As Another Formyoula User
  49. Setup Single Sign-On (SSO) with Formyoula and Salesforce
  50. Formyoula and Salesforce User Refresh Token Management
  51. Passing secure and sensitive data in a Formyoula URL using AES encryption
  52. Add PDF Attachments to Files or Notes & Attachments on Salesforce

Feedback and Knowledge Base