---
title: "Creating Object Mappings for the Outbound Data Sync AFAS"
canonical: "https://help.fieldbuddy.com/space/FBDOCS/2078310749/Creating%20Object%20Mappings%20for%20the%20Outbound%20Data%20Sync%20AFAS"
format: markdown
---
> Macro (excerpt)
> 
> The Outbound Data Sync pushes the triggered record to the external system according to the Object Mapping configuration. In the following chapters a few example configurations will be created in a step-by-step process.
> 
> It is important to remember that `Execution Order` field is required for outbound sync as well if parent and child mappings are used!  
> 
> 
> ### Exporting Accounts
> 
> In this example FieldBuddy Connect will be exporting Accounts from Salesforce to Organizations in AFAS. Make sure to have a trigger on Account.
> 
> #### Steps - Creating the Object Mapping
> 
> 1. Go to the Page 'Service Provicer' and select your Service Provider.
> 2. Click the button 'New Object Mapping' and fill in the following data:  
> > Macro (inline-media-image)
>   <span style="color: #707070">**Steps - Creating the Field Mapping**</span>
>   1. Go to the Page 'Object Mapping' and select your Object Mapping.
>   2. Click the 'New Field Mapping' button.
>   3. Input the following data and created for each row in this table a field. Use the 'Save & New' option to quickly created multiple fields:
>     *Some objects need an additional field that needs to be synced. This is a matching field. For an update in AFAS you can link an object to different fields. With the matching field you can tell which field needs to be matched. For the AFAS object Persons this field is called MatchPer and its value should be "0" if you want to match on the field "BcCo". Use the API tool to retrieve the matchfields of specific AFAS objects.
>     
> 3. **Validate your salesforce fields.**
>   1. Validate your fields by pressing the "Validate Salesforce fields"