---
title: "Adding required fields to the Salesforce Objects"
canonical: "https://help.fieldbuddy.com/space/FBDOCS/2078310701/Adding%20required%20fields%20to%20the%20Salesforce%20Objects"
format: markdown
---
> Macro (excerpt)
> 
> If an object is used in an Object Mapping, it requires a few fields. The object you create the fields on depends on the object mapping. For example, if your sync sends data from Account in Connect the field should be created on Account. There's a difference in how to add fields in Salesforce to add Standard or a custom object. Standard objects are: Account, Contact, Opportunity etc. and do not contain the postfix: '__c'. Custom Objects, created by users or other applications have a postfix '__c'. For example: FIELDBUDDY__Work_Order__c.
> 
> 
> ### Opening up the object
> 
> 1. In case of a standard object, for example Account. Go to SETUP > Accounts > Fields. This page will show all standard and custom fields on the Account object. Scroll down and click 'New'.
> 2. In case of a custom object, for example Work Order. Go to SETUP -> Create > Objects. This page will show all the custom objects. Click on the object. This page will show all standard and custom fields on the object. Scroll down and click 'New'.
> 
> ### Creating the custom fields
> 
> 1. Clicking the 'New' button should open up the 'New Custom Field' wizard. Select the option 'Text' and click 'Next'. The field should be created on the object of which you want to send data from. This depends on your Object Mapping.  
> > Macro (inline-media-image)
> 2. The second step of the wizard will be shown. Use the following input and click 'Next'.
>   1. Field Label: U4 External Id
>   2. Length: 255
>   3. Field Name: U4_External_Id
>   4. Description: In this field the external id from Unit 4 is stored. This field is being used by FieldBuddy Connect.
>   5. External ID: True
> 3. In the third step all profiles are shown. Make sure you set Visible to 'True' and Read-Only to 'False' to any profile that will importing or exporting data.
>   Its recommended to set all fields to Read-only on the page-layout for end-users. Not System Administrators. This avoids changes that impact the integration with Unit4.
> 4. In the fourth step of the wizard all page-layouts are shown. Adding the field to an layout is optional and not required.
>   Its recommended to add Fields to the page-layout only visible for System Administrators. This helps configuring the integration.
> 5. Click Save & New. This will restart the wizard.
> 6. Select 'Checkbox' and click 'Next'. Use the following input and click 'Next'.
>   1. Field Label: U4 Is Synced
>   2. Default value: unchecked
>   3. Field Name: U4_Is_Synced
>   4. Description: If this field is set to true, the record is synchronized with Unit 4. This field is being used by FieldBuddy Connect.
>     
> 7. In the third step all profiles are shown. Make sure you set Visible to 'True' and Read-Only to 'False' to any profile that will importing or exporting data.
> 8. In the fourth step of the wizard all page-layouts are shown. Adding the field to an layout is optional and not required.
> 9. Click Save & New. This will restart the wizard.
> 10. Select 'Date/Time' and click 'Next'. Use the following input and click 'Next'.
>   1. Field Label: U4 Last Sync
>   2. Field Name: U4_Last_Sync
>   3. Description: In this field the date and time is stored when the record last successfully synchronized with Unit 4. This field is being used by FieldBuddy Connect.
>     
> 11. In the third step all profiles are shown. Make sure you set Visible to 'True' and Read-Only to 'False' to any profile that will importing or exporting data.
> 12. In the fourth step of the wizard all page-layouts are shown. Adding the field to an layout is optional and not required.
> 13. Click Save
> 
> You are done creating fields for this object. Creating these fields are required for each object. This object can now be used in an Object Mapping.