Transformations (POST)

Perform the business transformation of program component forecast data (source object) to opportunities (target object). The following are some of the transformation scenarios: MfgProgramCpntFrcstFact to Opportunity, ManufacturingProgram to Opportunity, MfgProgramCpntFrcstFact to OpportunityLineItem, and Period to OpportunityLineItemSchedule.

Resource 

1/connect/manufacturing/transformations

Resource Example 

1https://{yourInstance}.salesforce.com/services/data/vXX.X/connect​/manufacturing/transformations

Available Version 

55.0

Requires Chatter 

No

HTTP Methods 

POST

Request Body for POST 

JSON Example 

1{
2  "inputObjectIds": [
3    "0sTxx000000003FEAQ",
4    "0sTxx000000004rEAA",
5    "0sTxx0000000001EAA",
6    "0sTxx000000001dEAA"
7  ],
8  "inputObjectName": "MfgProgramCpntFrcstFact",
9  "usageType": "TransformationMapping",
10  "outputObjectName": "Opportunity",
11  "outputObjectDefaultValues": {
12    "Opportunity": {
13      "Pricebook2Id": "PriceBookID",
14      "StageName": "Prospecting",
15      "Probability": "20",
16      "Name": "SampleFactToOpp",
17      "CloseDate" : "2022-12-31"
18    },
19    "OpportunityLineItem" : {
20      "TotalPrice": 1234,
21      "CurrencyIsoCode":"USD" // This is required in mutli currenct enabled org.
22    },
23    "OpportunityLineItemSchedule": {
24      "Type": "Both" // It's based on the product schedule enabled on setup.
25    }
26  }
27}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
inputObjectIdsString[]The list of record IDs for the input object type containing the mapping definition used to create the business transformation. The list of IDs must all be for the same object type.Required55.0
inputObjectNameStringThe name of the input object containing the mapping definition used to create the business transformation. Possible values are:
  • MfgProgramCpntFrcstFact
  • ManufacturingProgram
  • MfgProgramCpntFrcstFact
  • Period
  • Quote
  • QuoteLineItem
Required55.0
outputObjectDefaultValuesMap<String, String>>The default values for the output object that are created from the input object IDs.Optional55.0
outputObjectNameStringThe name of the output object that is created from the input object IDs.Required55.0
usageTypeStringUsage type of the transformation. Possible values are:
  • ConvertToSalesAgreement
  • CLMFieldMapping
  • EligibleProgramRebateType
  • MapJournalToMemberAggregate
  • TransformationMapping
Required55.0

Response Body for POST 

Transformation Output