Skip to content

Commit

Permalink
Fix incorrect RecordSourceKeys in large Matrix version export.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Rutland committed Oct 23, 2020
1 parent fe95784 commit 67086af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/datapacktypes/calculationmatrixversion.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ CalculationMatrixVersion.prototype.exportWithJavaScript = async function(input)

matrixVersionRecord.VlocityDataPackType = "SObject";
matrixVersionRecord.VlocityRecordSObjectType = sObjectType;
matrixVersionRecord.VlocityRecordSourceKey = `VlocityRecordSourceKey:${matrixVersionRecord.Id}`;

var matrixRows = await this.vlocity.queryservice.queryAllFields( '%vlocity_namespace%__CalculationMatrixRow__c', `%vlocity_namespace%__CalculationMatrixVersionId__c = '${matrixVersion.Id}'`);

Expand All @@ -153,7 +154,7 @@ CalculationMatrixVersion.prototype.exportWithJavaScript = async function(input)
'%vlocity_namespace%__CalculationMatrixId__r': { Name: matrixName },
'%vlocity_namespace%__VersionNumber__c': matrixVersionRecord['%vlocity_namespace%__VersionNumber__c'],
VlocityDataPackType: "VlocityMatchingKeyObject",
VlocityLookupRecordSourceKey: `VlocityRecordSourceKey:${matrixVersionRecord.Id}`,
VlocityMatchingRecordSourceKey: `VlocityRecordSourceKey:${matrixVersionRecord.Id}`,
VlocityRecordSObjectType: '%vlocity_namespace%__CalculationMatrixVersion__c'
};

Expand Down

0 comments on commit 67086af

Please sign in to comment.