Craig
07/17/2025, 5:46 PMconst fulfillment = record.load({
type: record.Type.ITEM_FULFILLMENT,
id: fulfillmentId,
isDynamic: true,
});
const shippingSubrecord = fulfillment.getSubrecord({
fieldId: 'shippingaddress',
});
const countryCode = 'DE';
shippingSubrecord.setValue({
fieldId: 'country',
value: countryCode,
});
fulfillment.save();
Is this not enough to save a new shipping address on a fulfillment?
I've added extra code to set other fields (country being the only mandatory one) - the IF saves but the new/custom address is not saved on the iF.
This is an afterSubmit and a shipping address is already present on the record.Craig
07/17/2025, 6:11 PMfulfillment.setValue({
fieldId: 'shipaddresslist',
value: null,
});