aoe
March 4, 2024, 2:20pm
1
I’m trying to create and add a Document to an entity on creation.
I don’t see any action connected to Documents so my thought was to use scripts. But I can’t find a way to create a Document via script.
Any tips?
Any other methods to achieve what I’m after?
Similar question to this:
How do I create a Document via script? (and add it to entity)
I don’t see a “createDocument” call in the API.
Chr1sG
March 4, 2024, 2:43pm
2
Documents are considered views in the Fibery API world, so they use the views API .
AFAIK there are no script functions that simplify the process.
aoe
March 4, 2024, 2:51pm
3
I understand.
Would it then be possible to create a view (Document) via an API call in the script, get the ID and link it to the newly created entity?
If so, I will give it a try.
Chr1sG
March 4, 2024, 3:01pm
4
Technically yes, but you would be writing a script to make an http call to the Fibery API, so it’s like the internal script pretending to be an external service
As a result, you would need to store an API token in the script, which isn’t great practice.
At that point it would be better to use the script to trigger a Make.com or Zapier automation.
aoe
March 5, 2024, 12:39pm
6
Thanks for explaining, I’ll have to figure out some other way to achieve what I want.