# API & Programming

**URL:** https://community.fibery.io/c/api-programming/10.md?page=4

[Latest](https://community.fibery.io/latest.md) · [Categories](https://community.fibery.io/categories.md) · [Tags](https://community.fibery.io/tags.md)

**Page:** 5

---

## [What development environment do you use for building scripts?](https://community.fibery.io/t/what-development-environment-do-you-use-for-building-scripts/3234)

<div class="topic-metadata">

**Author:** [@Nicolas](https://community.fibery.io/u/Nicolas)\
**Replies:** 8\
**Last updated:** [September 2, 2022, 9:34pm UTC](https://community.fibery.io/t/what-development-environment-do-you-use-for-building-scripts/3234 "2022-09-02T21:34:09Z")

</div>

I’m curious what everybody is using to develop their scripts within Fibery? I’m starting to get much deeper into it and think the possibilities are amazing. However, the current limits debugging are brutal. Only see …

---

## [Script for offsetting dates by business/working days](https://community.fibery.io/t/script-for-offsetting-dates-by-business-working-days/3231)

<div class="topic-metadata">

**Author:** [@Dimitri\_S](https://community.fibery.io/u/Dimitri_S)\
**Replies:** 1\
**Last updated:** [September 1, 2022, 4:43pm UTC](https://community.fibery.io/t/script-for-offsetting-dates-by-business-working-days/3231 "2022-09-01T16:43:33Z")

</div>

Getting notifications or having tasks become due on weekends isn’t very useful. And as far as I can tell there’s no way to do this via a formula so here is a pretty simple script to add working/business days to a date. M…

---

## [\[Done\] Get notification about the comment](https://community.fibery.io/t/done-get-notification-about-the-comment/2684)

<div class="topic-metadata">

**Author:** [@Polina\_Zenevich](https://community.fibery.io/u/Polina_Zenevich)\
**Replies:** 2\
**Last updated:** [August 30, 2022, 5:57pm UTC](https://community.fibery.io/t/done-get-notification-about-the-comment/2684 "2022-08-30T17:57:50Z")

</div>

We have a couple of requests from users, so we decided to share this workaround with you. If anyone has comments, questions, or better ways - please, feel free to share them here on this topic :slight\_smile: The content…

---

## [How to update a multi-select field via API](https://community.fibery.io/t/how-to-update-a-multi-select-field-via-api/3178)

<div class="topic-metadata">

**Author:** [@Lug-gl](https://community.fibery.io/u/Lug-gl)\
**Replies:** 2\
**Last updated:** [August 24, 2022, 12:47pm UTC](https://community.fibery.io/t/how-to-update-a-multi-select-field-via-api/3178 "2022-08-24T12:47:45Z")

</div>

Hi, I’m trying to update a multi-select field via API. I do not find anything about it in API doc. I tried it in different ways as exmaple like: Body: \[ { "command": "fibery.entity/update", …

---

## [GraphQL API Prototype](https://community.fibery.io/t/graphql-api-prototype/2769)

<div class="topic-metadata">

**Author:** [@Oleg](https://community.fibery.io/u/Oleg)\
**Replies:** 19\
**Last updated:** [July 25, 2022, 11:47am UTC](https://community.fibery.io/t/graphql-api-prototype/2769 "2022-07-25T11:47:50Z")

</div>

GraphQL API Prototype We are very excited to announce the availability of our experimental GraphQL API prototype. NOTE: It is a beta version and we recommend to create test space and try prototype in it. How to try it? …

---

## [Clear value with GraphQL](https://community.fibery.io/t/clear-value-with-graphql/3050)

<div class="topic-metadata">

**Author:** [@NWE](https://community.fibery.io/u/NWE)\
**Replies:** 2\
**Last updated:** [July 8, 2022, 7:22am UTC](https://community.fibery.io/t/clear-value-with-graphql/3050 "2022-07-08T07:22:46Z")

</div>

Hello, I haven’t used graphQL very much but I’m running a few requests similar to: mutation { phones(serialNumber: { is: "R58RB492TBJ" }) { update( groupId: 177 deploymentDate: "2022-07-07" deplo…

---

## [GraphQL API - OR statements?](https://community.fibery.io/t/graphql-api-or-statements/3048)

<div class="topic-metadata">

**Author:** [@4erkas](https://community.fibery.io/u/4erkas)\
**Replies:** 2\
**Last updated:** [July 8, 2022, 7:11am UTC](https://community.fibery.io/t/graphql-api-or-statements/3048 "2022-07-08T07:11:14Z")

</div>

Is there any way to do “or” like statements on different fields? Example: I would like to have requests completed e.g. this week/month etc and started during the same timeframe (but not yet completed): autoCompleted…

---

## [GraphQL: Allow querying Workflow state entities/](https://community.fibery.io/t/graphql-allow-querying-workflow-state-entities/3012)

<div class="topic-metadata">

**Author:** [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Replies:** 1\
**Last updated:** [June 30, 2022, 1:14pm UTC](https://community.fibery.io/t/graphql-allow-querying-workflow-state-entities/3012 "2022-06-30T13:14:35Z")

</div>

I would like to use GraphQL to enumerate the states of a particular Workflow field in a particular DB, but I do not find that this is currently possible, as I found no GraphQL endpoint corresponding to Fibery Workflow ty…

---

## [GraphQL API: Filtering on data or datarange](https://community.fibery.io/t/graphql-api-filtering-on-data-or-datarange/3013)

<div class="topic-metadata">

**Author:** [@4erkas](https://community.fibery.io/u/4erkas)\
**Replies:** 1\
**Last updated:** [June 30, 2022, 10:19am UTC](https://community.fibery.io/t/graphql-api-filtering-on-data-or-datarange/3013 "2022-06-30T10:19:00Z")

</div>

For the date fields in the graphql schema I see the filter as: modificationDate: \[StringFilter\] fibery/modification-date But how to exactly filter on data, things like after, between?

---

## [GraphQL API issue: cannot retrieve entity's Rank field](https://community.fibery.io/t/graphql-api-issue-cannot-retrieve-entitys-rank-field/3010)

<div class="topic-metadata">

**Author:** [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Replies:** 1\
**Last updated:** [June 30, 2022, 9:53am UTC](https://community.fibery.io/t/graphql-api-issue-cannot-retrieve-entitys-rank-field/3010 "2022-06-30T09:53:10Z")

</div>

When I try to retrieve the built-in “Rank” field, I receive this error: "Int cannot represent non 32-bit signed integer value: 3335312209451479"

---

## [Update parent status when child entities are done](https://community.fibery.io/t/update-parent-status-when-child-entities-are-done/2998)

<div class="topic-metadata">

**Author:** [@Mike\_Metelerkamp](https://community.fibery.io/u/Mike_Metelerkamp)\
**Replies:** 1\
**Last updated:** [June 24, 2022, 11:54am UTC](https://community.fibery.io/t/update-parent-status-when-child-entities-are-done/2998 "2022-06-24T11:54:44Z")

</div>

Hi, Is there a way to automate the status of an entity to change based on linked entities? eg. Epic status changes to done when all tasks linked to epic are marked as done.

---

## [Finding/compare entities from two databases](https://community.fibery.io/t/finding-compare-entities-from-two-databases/2894)

<div class="topic-metadata">

**Author:** [@geladariia](https://community.fibery.io/u/geladariia)\
**Replies:** 0\
**Last updated:** [May 31, 2022, 11:35am UTC](https://community.fibery.io/t/finding-compare-entities-from-two-databases/2894 "2022-05-31T11:35:26Z")

</div>

Hello! I’m setting up a scenario through Integromat that’s supposed to get entities from database-1 (RnD) which contains a field with text type and check if they exist in database-2 (CRM) where entities are inside an en…

---

## [Update a linked Document by prepending the contents of Rich Text fields](https://community.fibery.io/t/update-a-linked-document-by-prepending-the-contents-of-rich-text-fields/2809)

<div class="topic-metadata">

**Author:** [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Replies:** 0\
**Last updated:** [May 17, 2022, 9:09pm UTC](https://community.fibery.io/t/update-a-linked-document-by-prepending-the-contents-of-rich-text-fields/2809 "2022-05-17T21:09:40Z")

</div>

This is a Button script for a “Meeting Notes” entity to be run when the meeting ends. It takes the meeting entity’s Rich Text content (agenda, notes, etc) and prepends it to a “collected meeting notes” Document that is l…

---

## [❗ Need a developer! Integration of Fiber with the accounting program / Интеграция Fibery с учетной программой](https://community.fibery.io/t/need-a-developer-integration-of-fiber-with-the-accounting-program-fibery/2793)

<div class="topic-metadata">

**Author:** [@Evgen](https://community.fibery.io/u/Evgen)\
**Replies:** 0\
**Last updated:** [May 13, 2022, 9:42am UTC](https://community.fibery.io/t/need-a-developer-integration-of-fiber-with-the-accounting-program-fibery/2793 "2022-05-13T09:42:06Z")

</div>

It is required to develop an integration for synchronizing the accounting program with Fiber. Unloading directories of Companies, Nomenclature, Contracts Uploading documents for Sales, Purchases, Payments On the Fiber …

---

## [Automate linking between referenced entities](https://community.fibery.io/t/automate-linking-between-referenced-entities/2753)

<div class="topic-metadata">

**Author:** [@Mike\_Metelerkamp](https://community.fibery.io/u/Mike_Metelerkamp)\
**Replies:** 7\
**Last updated:** [May 5, 2022, 9:38am UTC](https://community.fibery.io/t/automate-linking-between-referenced-entities/2753 "2022-05-05T09:38:17Z")

</div>

Hi, I’d like to find out if anyone might know how to automate entity linking when using references? e.g. I have a page where we gave conversations and create insights from these conversations on another page called insi…

---

## [Call API from iOS Shortcuts](https://community.fibery.io/t/call-api-from-ios-shortcuts/2718)

<div class="topic-metadata">

**Author:** [@cannibalflea](https://community.fibery.io/u/cannibalflea)\
**Replies:** 3\
**Last updated:** [May 1, 2022, 3:53pm UTC](https://community.fibery.io/t/call-api-from-ios-shortcuts/2718 "2022-05-01T15:53:24Z")

</div>

I was wondering if anyone has tried to use iOS/mac Shortcuts to interact/create new fibery entities? I think that it is possible to call the api using “Get contents of” action, but I seem to get a server error (500 error…

---

## [Reading from rich text field of child entities in action button](https://community.fibery.io/t/reading-from-rich-text-field-of-child-entities-in-action-button/2190)

<div class="topic-metadata">

**Author:** [@seaotternerd](https://community.fibery.io/u/seaotternerd)\
**Replies:** 3\
**Last updated:** [April 14, 2022, 4:07pm UTC](https://community.fibery.io/t/reading-from-rich-text-field-of-child-entities-in-action-button/2190 "2022-04-14T16:07:57Z")

</div>

I have a type that contains a collection of child entities (“Revisions”). Each revision has a rich text field called “Response”. I’m trying to make an action button that creates a document containing the contents of the …

---

## [API Token changed](https://community.fibery.io/t/api-token-changed/2700)

<div class="topic-metadata">

**Author:** [@NWE](https://community.fibery.io/u/NWE)\
**Replies:** 3\
**Last updated:** [April 11, 2022, 2:28pm UTC](https://community.fibery.io/t/api-token-changed/2700 "2022-04-11T14:28:26Z")

</div>

Hi guys, I have a few automations going through into Fibery and had them fail because of due to the switching of clusters and getting a new token. To get your token you have to console fetch(\`https://${window.location.…

---

## [fibery.getEntityById - If fields are not passed, all 1st level fields will be returned?](https://community.fibery.io/t/fibery-getentitybyid-if-fields-are-not-passed-all-1st-level-fields-will-be-returned/2666)

<div class="topic-metadata">

**Author:** [@Dimitri\_S](https://community.fibery.io/u/Dimitri_S)\
**Replies:** 1\
**Last updated:** [March 29, 2022, 3:12pm UTC](https://community.fibery.io/t/fibery-getentitybyid-if-fields-are-not-passed-all-1st-level-fields-will-be-returned/2666 "2022-03-29T15:12:25Z")

</div>

I might be missing something but how does one get all 1st level fields via fibery.getEntityById? When I try something like this: await fibery.getEntityById(entity.type, entity.id, \[\]) I only get something like this: {…

---

## [Click Action Buttons with an Action Button?](https://community.fibery.io/t/click-action-buttons-with-an-action-button/1170)

<div class="topic-metadata">

**Author:** [@aprotasenya](https://community.fibery.io/u/aprotasenya)\
**Replies:** 7\
**Last updated:** [February 21, 2022, 3:43pm UTC](https://community.fibery.io/t/click-action-buttons-with-an-action-button/1170 "2022-02-21T15:43:58Z")

</div>

Just for the sake of logic organisation (and not having the same code in several places) – is it possible to “click” an Action Button from the script of another Action Button? Call it like a method? Since it is created l…

---

## [Query where field is Enum value](https://community.fibery.io/t/query-where-field-is-enum-value/2491)

<div class="topic-metadata">

**Author:** [@NWE](https://community.fibery.io/u/NWE)\
**Replies:** 12\
**Last updated:** [February 4, 2022, 5:38pm UTC](https://community.fibery.io/t/query-where-field-is-enum-value/2491 "2022-02-04T17:38:23Z")

</div>

Hello, I’m new to Fibery and lack programming skills but I’m setting up a scenario through Integromat that’s supposed to update a enum field based on various things outside of Fibery. When doing it through Integromat yo…

---

## [Button Howto: Link task to other object (relation)](https://community.fibery.io/t/button-howto-link-task-to-other-object-relation/1411)

<div class="topic-metadata">

**Author:** [@AndreasHe\_daic](https://community.fibery.io/u/AndreasHe_daic)\
**Replies:** 4\
**Last updated:** [December 15, 2021, 9:08am UTC](https://community.fibery.io/t/button-howto-link-task-to-other-object-relation/1411 "2021-12-15T09:08:20Z")

</div>

Wanted a button to assign a team to a task when clicking the button. Got the following solution: for (const entity of args.currentEntities) { const team = await fibery.getEntityById("Team", "4524be10-7a6a-11eb-8005…

---

## [Creating a sharing URL through API](https://community.fibery.io/t/creating-a-sharing-url-through-api/2270)

<div class="topic-metadata">

**Author:** [@brad\_west](https://community.fibery.io/u/brad_west)\
**Replies:** 1\
**Last updated:** [November 30, 2021, 5:00pm UTC](https://community.fibery.io/t/creating-a-sharing-url-through-api/2270 "2021-11-30T17:00:57Z")

</div>

I need to be able to create a Shared URL link for people outside the Fibery system for viewing only. I know it can be done through the web interface but using that same code via a PUT call doesn’t enable the sharing. it …

---

## [Tip for generating a direct URL to an entity](https://community.fibery.io/t/tip-for-generating-a-direct-url-to-an-entity/2227)

<div class="topic-metadata">

**Author:** [@Dimitri\_S](https://community.fibery.io/u/Dimitri_S)\
**Replies:** 10\
**Last updated:** [November 24, 2021, 10:39pm UTC](https://community.fibery.io/t/tip-for-generating-a-direct-url-to-an-entity/2227 "2021-11-24T22:39:35Z")

</div>

So I was doing something like the JavaScript below for generating a URL to an entity, which when clicked opens the entity in a new tab… function makeEntityUrl(spaceDb, entityName, entityPubId) { const entity = entityN…

---

## [\[Quick guide\] Assign all children to me](https://community.fibery.io/t/quick-guide-assign-all-children-to-me/2160)

<div class="topic-metadata">

**Author:** [@Haslien](https://community.fibery.io/u/Haslien)\
**Replies:** 0\
**Last updated:** [October 28, 2021, 2:28pm UTC](https://community.fibery.io/t/quick-guide-assign-all-children-to-me/2160 "2021-10-28T14:28:52Z")

</div>

I didn’t see an easy way to do this with the current buttons, so I made it with code. Demo Video of setup process The App name is copied from the one that has the Child, since the child doesn’t n…

---

## [\[Quick guide\] Using automation to populate template in child from parent](https://community.fibery.io/t/quick-guide-using-automation-to-populate-template-in-child-from-parent/2146)

<div class="topic-metadata">

**Author:** [@Haslien](https://community.fibery.io/u/Haslien)\
**Replies:** 0\
**Last updated:** [October 25, 2021, 10:59pm UTC](https://community.fibery.io/t/quick-guide-using-automation-to-populate-template-in-child-from-parent/2146 "2021-10-25T22:59:59Z")

</div>

I am sharing code for using Automations to populate a rich text field from a linked parent. Scroll to the very bottom for another video that shows the entire process. Parent Type has a Rich Text field named My Template.…

---

## [API error handling in scripts](https://community.fibery.io/t/api-error-handling-in-scripts/2062)

<div class="topic-metadata">

**Author:** [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Replies:** 1\
**Last updated:** [September 28, 2021, 7:36am UTC](https://community.fibery.io/t/api-error-handling-in-scripts/2062 "2021-09-28T07:36:18Z")

</div>

If I make a call to getEntityById (or some other API function) in a script, and it errors, will that be handled as a normal Promise rejection for the caller? Also - in such a case, where should we look in the returned A…

---

## [Upload file though api](https://community.fibery.io/t/upload-file-though-api/2048)

<div class="topic-metadata">

**Author:** [@Niraj\_Chourasia](https://community.fibery.io/u/Niraj_Chourasia)\
**Replies:** 1\
**Last updated:** [September 24, 2021, 2:28pm UTC](https://community.fibery.io/t/upload-file-though-api/2048 "2021-09-24T14:28:09Z")

</div>

Hi there, I am trying to upload file through fibery api with postman but it always retruning message not files were uploaded. curl -X POST https://YOUR\_ACCOUNT.fibery.io/api/files \\ -H 'Authorization: Token YOUR\_T…

---

## [Entity Field and entity collection Field](https://community.fibery.io/t/entity-field-and-entity-collection-field/1993)

<div class="topic-metadata">

**Author:** [@sujoe](https://community.fibery.io/u/sujoe)\
**Replies:** 2\
**Last updated:** [September 10, 2021, 6:10pm UTC](https://community.fibery.io/t/entity-field-and-entity-collection-field/1993 "2021-09-10T18:10:29Z")

</div>

Hi, I Have been reading the API document. I was able to create entities with text and single-select. My question is what are entity Field and entity collection Field? I still can’t seem to wrap my head around this. Do …

---

## [How to get the most recent date as a sub-query](https://community.fibery.io/t/how-to-get-the-most-recent-date-as-a-sub-query/1916)

<div class="topic-metadata">

**Author:** [@Dimitri\_S](https://community.fibery.io/u/Dimitri_S)\
**Replies:** 6\
**Last updated:** [August 19, 2021, 10:41am UTC](https://community.fibery.io/t/how-to-get-the-most-recent-date-as-a-sub-query/1916 "2021-08-19T10:41:43Z")

</div>

I have an “Accounting” app that has two types: Client and Invoice. There is a relation where a client can have many invoices. Lets pretend the Client type only has one field: Name The Invoice type has two important fie…

[Previous page](https://community.fibery.io/c/api-programming/10.md?page=3)

[Next page](https://community.fibery.io/c/api-programming/10.md?page=5)
