Bulk API using Apex SDK
Tuesday, February 22, 2022 at 07:27pmI want to understand the bulk API return value.
{{baseUrl}}/api/packages/:templateId/bulk_send
How can we use the returned value to retrieve all the transactions created by above API call?
Reply to: Bulk API using Apex SDK
Wednesday, February 23, 2022 at 05:16pmHi ishant.kesar,
A batch UID (typically in UUID format) will be returned by this API, which can be used to identify transactions created by this batch. This value will be stored at package JSON > "data" > "bulkSendBatchUid"
Therefore, you should be able to retrieve the transactions if you follow below steps:
(1)Modify the APEX SDK class OneSpanAPIObjects.cls > line 238, internal class Data > add an additional attribute "String bulkSendBatchUid;"
(2)Retrieving a list of transactions by following this guide
(3)Loop through the returned transactions and filter by the "pkg.data.bulkSendBatchUid"
Duo