GET /accounts/{id}/elements/{keyOrId}/transformations

GET /accounts/{id}/elements/{keyOrId}/transformations

Retrieve a list of the default account-level transformations by adapter. 

Path Parameters

idThe unique identifier for an account within an organization.
keyOrIdThe adapter key, usually a lowercase version of the adapter name, or the adapter id, which is a numeric identifier of the adapter.

Response Fields

levelThe level of the specified account, either organization, account, or instance.
objectNameThe name of the new common resource.
vendorNameThe APIN provider's name of the resource that is mapped to the common resource.
startDateThe date that the transformation was updated.
fieldsAn object containing the field names and data types of the common resource.
fields.pathThe name of the field.
fields.typeThe data type of the field.
fields.vendorPathThe API provider's field name that the path is mapped to.
fields.levelThe level at which the mapping exists, either organization, account, or instance.
configurationAn object containing the configuration of the common resource.
configuration.typeThe type of configuration. passThrough is the configuration for removing unmapped fields while inherit is a legacy configuration.
isLegacyIndicates if the common resource was created in Sugar Integrate (true) or earlier (false).

Example Request

curl -X GET \
  https://api-us.integrate.sugarapps.com/elements/api-v2/accounts/156162/elements/sfdc/transformations/myContacts \ 
  -H 'authorization: User sAfK7LJGNz5ZHcNrvdJvLI=f03WbTbH6aRKc0HJ3oOIi, Organization 58168435e3b9959a929eb04b6218b9a2' \
  -H 'Content-Type: application/json' \

Example Response

{  
  "myContacts":{  
    "level":"organization",
    "objectName":"myContacts",
    "vendorName":"Contact",
    "startDate":"2018-03-07 16:50:32.223761",
    "fields":[  
      {  
        "type":"string",
        "path":"address.city",
        "vendorPath":"MailingCity",
        "level":"organization"
      },
      {  
        "type":"string",
        "path":"address.state",
        "vendorPath":"MailingState",
        "level":"organization"
      },
      {  
        "type":"string",
        "path":"address.street",
        "vendorPath":"MailingStreet",
        "level":"organization"
      },
      {  
        "type":"string",
        "path":"address.zip",
        "vendorPath":"MailingPostalCode",
        "level":"organization"
      },
      {  
        "type":"string",
        "path":"firstName",
        "vendorPath":"FirstName",
        "level":"organization"
      },
      {  
        "type":"string",
        "path":"id",
        "vendorPath":"Id",
        "level":"organization"
      },
      {  
        "type":"string",
        "path":"lastName",
        "vendorPath":"LastName",
        "level":"organization"
      },
      {  
        "type":"boolean",
        "path":"Deleted",
        "vendorPath":"IsDeleted",
        "level":"organization"
      }
    ],
    "configuration":[  
      {  
        "type":"passThrough",
        "properties":{  
          "fromVendor":false,
          "toVendor":false
        }
      },
      {  
        "type":"inherit"
      }
    ],
    "isLegacy":false
  }
}