I’m not convinced batch processing is working:
In the code below I have a switch $batch that if set to True will batch all requests.
The code first searches for the text “{{title_end}}” and then uses the returned Node …...com/en-us/office/field-codes-tc-table-of-contents-entry-field-01e5dd8a-4730...