Export data from FSA to Third-Party Apps
1. Launch the third-party app from work order's Actions menu and export data to third-party app.
2. Data sent from FSA to third-party app has the following URI scheme definition:
3rdPartyAppSchemeName:
ParameterName1=ParameterValue1&&data={
"object": "ObjectAPIName",
"record": {

// Header Record Fields
},
"details": [
{
"object": "Detail_Line_Object_API_Name1",
"records": [
{

// Record 1
},
{


// Record 2
}
]
},
{
"object": "Detail_Line_Object_API_Name2",
"records": [
{


// Record 1
},

{


// Record 2
}
]
}
],
"token": "213571391616920512723931130208199152872271432558024412461281938676215247551352241112320152144751313629113019919314518025062228503813420817725315515319312216223068122146179",
"processId": "ProcessUniqueId of ViewSFMProcess from which CustomActionSFM is invoked",
"objectDescribes": {
"Header_Object_API_Name": {
"Header_Object_Field1": {
"length": 18,
"type": "reference",
"relationship": {
"name": "Reference_Object_Field_API_Name",
"object": "Reference_Object"
}
},
"Header_Object_Field2": {
"length": 80,
"type": "string"
},
"Header_Object_Field3": {
"scale": 3,
"precision": 18,
"type": "currency",
"currencyCode": "CNY"
},

"Header_Object_Field4": {
"type": "datetime",
"timezone": "GMT+5:30"

}
},
"Detail_Line_Object_API_Name1": {
"Detail_Line_Object_Field1": {
"length": 18,
"type": "reference",
"relationship": {
"name": "Reference_Object_Field_API_Name",
"object": "Reference_Object"
}
},
"Detail_Line_Object_Field2": {
"length": 80,
"type": "string"
},
"Detail_Line_Object_Field3": {
"scale": 3,
"precision": 18,
"type": "currency",
"currencyCode": [
{
"Id": "Detail_Line_Object_API_Name1 Record Id 1",
"CurrencyIsoCode": "EUR"
},
{
"Id": "Detail_Line_Object_API_Name1 Record Id 2",
"CurrencyIsoCode": "INR"
}
]
},
"Detail_Line_Object_Field4": {
"type": "datetime",
"timezone": "GMT+5:30"
}

},
"Detail_Line_Object_API_Name2": {
"Detail_Line_Object_Field1": {
},
"Detail_Line_Object_Field2": {
}
}
}

}
where,
SchemeName is the third-party app scheme name. Path is the path as configured on the server.
ParameterName1 is the account's SFDC Id.
Object (ObjectAPIName) is header record object’s API name.
Token is the token value generated by FSA.
ProcessId is the Unique Id of View SFM Process from which Custom Action SFM is invoked
Header Record Fields:
{

“field_api_name1”: “field_value1”,

“lookupfield_api_name2”: {

"key": “SFDC Id of the lookup field“,

"value": “Value of the field“,
}

}
Details: Object: "Detail_Line_Object_API_Name1". This is detail line object’s API name.
Record 1 and Record 2 are defined in the same way as Header Record fields with the detail line fields.
objectDescribes contains information about field types, constraints to enable Third Party Apps to format and display the record data correctly and easily. Below are the field types described:
If the field is of type 'string', then the length is included.
If the field is of type 'currency', then currency code is included.
If the field is of type 'datetime', then timezone is included.
If the field is of type 'reference', then the record and the fields of the referenced record are included.
The Work Order data is successfully exported to the third-party app.
Was this helpful?