Hi @ccg1706 ,
I tried with submitDelivery API method and able to send email using this method . problem i am facing when replacing targetData.attribute using PB .
I am using custom table and adding the PB in delivery Template to replace the firstName (firstname being passed as additional data in the wk).

Same thing working fine when using <%= recipient.firstName %> at PB level.
is there any limitation with submitDelivery Method which blocking to use targetData.attribute.
This is the delivery error i am getting:

Hi @psne,
The issue appears to be related to how targetData attributes are managed in the submitDelivery API.
I share with you some possible solutions:
*Check that the targetData includes the correct and required attributes.
*Check that the personalization block is configured to handle the targeData attribute.
** Whereas using <%= targetData.firstName %> replace it with <%targetData['firstName'] || ''%> This will evict error if the firstName attribute is null or undefined.
Other solutions that you can try are to include the targetData inside the payload or also take into consideration mapping the targetData attributes to the recipient fields.
An example of a payload modified is:
{
"messageType": "email",
"targetData": {
"firstName": "John"
},
"recipients": [
{
"email": "example@example.com"
}
] If here targetData doesn't work correctly, you can move its values inside the recipient object.
Hope it helps.
Regards,
Celia