Is there any way to save data collected in the thank-you extension

On the checkout page, it is possible to use useApplyAttributeChange() or useApplyMetafieldChanges() to save data in metafields. If I try to access either of these in the thank-you page I get a error 'Cannot call ‘applyAttributeChange()’ on target purchase-thank-you.block.render or Cannot call 'applyMetafieldChange()' on target purchase-thank-you.block.render The corresponding property was not found on the API

I also can also use fetch to make external api call in the checkout page, if I try that in the thank-you page, I seem to always get a error ‘you need to add network_access=true’ in the .toml file even if this has been changed, re-deployed etc. Has anyone succsesfully managed to save data collected in the thank you page? Any help would be appreciated, thanks.

I also can also use fetch to make external api call in the checkout page, if I try that in the thank-you page, I seem to always get a error ‘you need to add network_access=true’ in the .toml file even if this has been changed, re-deployed etc.

Did you request to allow network access in checkout and account UI extensions?

Thanks for your answer, yes I have done that

For anyone who has a similar issue, the problem was the [capabilities] part in the .toml file, when I changed it to [extensions.capabilities] it is now possible to make a fetch call

Hey @Joe_Everett,

I can confirm that applyAttributeChange and applyMetafieldChange are not available on the target purchase.thank-you.block.render. Please use external network calls if that helps you achieve the desired behaviour. Cheers!