I am trying to to pass a node from Flexcard to Integration Procedure via a button action by putting
Key : newrecords and Value : {Session.updatedRecords}
The Node I am trying to pass :
[
{
"fieldName": "Session.updatedRecords",
"fieldValue": [
{
"originalIndex": "0",
"Id": "REC0",
"CCPDId": "0l2O800000007xZIAQ",
"AdjustedAmount": 1,
"TotalAmount": 173402,
"ClaimedAmount": 554,
"Quentity": 313,
"ChargeType": "Labor",
"Name": "Supply Pump-Repair",
"uniqueKey": "REC0",
"_flex": {
"uniqueKey": "REC0",
"state0element3": true,
"state0element3_child": true
}
},
{
"originalIndex": "1",
"Id": "REC1",
"CCPDId": "0l2O800000008K9IAI",
"AdjustedAmount": 2,
"TotalAmount": 45136,
"ClaimedAmount": 56,
"Quentity": 806,
"ChargeType": "Labor",
"Name": "Machine-Maintenance",
"uniqueKey": "REC1",
"_flex": {
"uniqueKey": "REC1",
"state0element3": false,
"state0element3_child": false
}
},
{
"originalIndex": "2",
"Id": "REC2",
"CCPDId": "0l2O800000008NNIAY",
"AdjustedAmount": 3,
"TotalAmount": 10000,
"ClaimedAmount": 1000,
"Quentity": 10,
"ChargeType": "Labor",
"Name": "Machine-Maintenance",
"uniqueKey": "REC2",
"_flex": {
"uniqueKey": "REC2",
"state0element3": false,
"state0element3_child": false
}
},
{
"originalIndex": "3",
"Id": "REC3",
"CCPDId": "0l2O800000008OzIAI",
"AdjustedAmount": 4,
"TotalAmount": 440,
"ClaimedAmount": 22,
"Quentity": 20,
"ChargeType": "Other",
"Name": "Machine-Maintenance",
"uniqueKey": "REC3",
"_flex": {
"uniqueKey": "REC3",
"state0element3": false,
"state0element3_child": false
}
},
{
"originalIndex": "4",
"Id": "REC4",
"CCPDId": "0l2O800000008QbIAI",
"AdjustedAmount": 400,
"TotalAmount": 10000,
"ClaimedAmount": 1000,
"Quentity": 10,
"ReplacementPart": "ABC",
"ChargeType": "Replaced Part",
"uniqueKey": "REC4",
"_flex": {
"uniqueKey": "REC4",
"state0element3": false,
"state0element3_child": false
}
},
{
"originalIndex": "5",
"Id": "REC5",
"CCPDId": "0l2O800000008YfIAI",
"AdjustedAmount": 5,
"TotalAmount": 2000,
"ClaimedAmount": 200,
"Quentity": 10,
"ChargeType": "Labor",
"Name": "TC Cooler & Oil Coolger Group-Cleaning",
"uniqueKey": "REC5",
"_flex": {
"uniqueKey": "REC5",
"state0element3": false,
"state0element3_child": false
}
},
{
"originalIndex": "6",
"Id": "REC6",
"CCPDId": "0l2O800000008YgIAI",
"AdjustedAmount": 6,
"TotalAmount": 1000,
"ClaimedAmount": 100,
"Quentity": 10,
"ReplacementPart": "Break",
"ChargeType": "Replaced Part",
"uniqueKey": "REC6",
"_flex": {
"uniqueKey": "REC6",
"state0element3": false,
"state0element3_child": false
}
},
{
"originalIndex": "7",
"Id": "REC7",
"CCPDId": "0l2O800000008YhIAI",
"AdjustedAmount": 7,
"TotalAmount": 4000,
"ClaimedAmount": 200,
"Quentity": 20,
"ChargeType": "Other",
"Name": "TC Cooler & Oil Coolger Group-Replace",
"uniqueKey": "REC7",
"_flex": {
"uniqueKey": "REC7",
"state0element3": false,
"state0element3_child": false
}
}
]
}
]
The response I am getting from Ip response :
[
{
"response": {
"newRecord": [
""
]
},
"ResponseAction2Status": true,
"SetValues1": {
"newRecord": [
""
]
},
"SetValues1Status": true,
"options": {},
"newrecords": ""
}
]
Hi @INDRANIL GHOSH,
Verify the following steps:
- Make sure that when sending data, the key-value pair is structured correctly. For example, if newrecords is used as the key, the value should be the serialized JSON array of Session.updatedRecords.
- Make sure that Session.updatedRecords is correctly serialized into JSON format, which can be achieved using JSON.stringify(Session.updatedRecords).
Refer:
Configure an Integration Procedure Data Source on a FlexCard
Thanks!