- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Jul 23, 2024 11:34 AM
Here the working script extension:
Here is the revised Button click script:
The revised script fails with:
at main on line 83
Line 83: const res2 = fetch( 'https://api.docsautomator.co/createDocument'
FYI: Community said it removed HTML ... Thanks for that!!!!!!!!!!!!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Jul 23, 2024 06:35 PM
What specific issues are you facing with the conversion?
Or if you're looking to hire someone to do this I'd be happy to help too! Might want to open a thread in the Job Board as well: https://community.airtable.com/t5/job-board/bd-p/jobs
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Jul 24, 2024 06:34 AM
Hello @ericatihs ,
As per my first glance if this is an error on line 83 then it's just an issue with the fetch function you're using.
while you use it on automation script that time fetch works because it's run on the Airtables server.
while we use it on extension script you need to use remoteFetchAsync. Because it's run on our browser.
If this is not your solution then write a message or come up with original screenshots.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎Jul 25, 2024 01:42 PM
Hi,
use this script to see field name by ID or part ('4kjP' is enough)
let f_id=await input.textAsync('field ID or part');
let fid=arr=>arr.filter(el=>el.id.includes(f_id));
output.table(base.tables.filter(n=>fid(n.fields).length).
map(t=>[t.name,fid(t.fields).map(f=>f.name).join()]))
I suppose your "Report Nbr" field is text and you are trying to put a number there.
change field type or quote the number to use it as text
const reportNbr2 = '60'
But I'm just guessing.
Also, please use code tag for code,
otherwise it's too hard to read.
p.s. sometimes, when you want to submit and it complains about HTML, you just need to press submit again.
