# How to use executeAction and executeSingleCommand Fibery service workspace functions

**URL:** <https://community.fibery.io/t/how-to-use-executeaction-and-executesinglecommand-fibery-service-workspace-functions/5750>\
**Category:** API & Programming\
**Created:** [January 24, 2024, 11:12pm UTC](https://community.fibery.io/t/how-to-use-executeaction-and-executesinglecommand-fibery-service-workspace-functions/5750 "2024-01-24T23:12:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bsweileh](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/bsweileh/32/8641_2.png) [@bsweileh](https://community.fibery.io/u/bsweileh)\
**Post date:** [January 24, 2024, 11:12pm UTC](https://community.fibery.io/t/how-to-use-executeaction-and-executesinglecommand-fibery-service-workspace-functions/5750/1 "2024-01-24T23:12:03Z")

</div>

Hi. Are there any code examples for using the following Fibery service workspace functions?

> executeAction(action: string, type: string, args: [object])
> 
> executeSingleCommand(command: FiberyCommand)

Found here: [https://the.fibery.io/@public/User\_Guide/Guide/Scripts-in-Automations-54/anchor=Fibery-service-workspace-functions–86ec1778-15d4-42dc-a533-a57ec38bc855](https://the.fibery.io/@public/User_Guide/Guide/Scripts-in-Automations-54/anchor=Fibery-service-workspace-functions--86ec1778-15d4-42dc-a533-a57ec38bc855)

Thanks!

---

<div class="post-metadata">

**Author:** ![Matt\_Blais](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matt_blais/32/1464_2.png) [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Post date:** [January 25, 2024, 1:56am UTC](https://community.fibery.io/t/how-to-use-executeaction-and-executesinglecommand-fibery-service-workspace-functions/5750/2 "2024-01-25T01:56:44Z")

</div>

These are not very well documented, but if you search this forum for “executeSingleCommand” you will find some examples.

Additionally you can ask specific questions here and we will try to help.

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [January 25, 2024, 7:01am UTC](https://community.fibery.io/t/how-to-use-executeaction-and-executesinglecommand-fibery-service-workspace-functions/5750/3 "2024-01-25T07:01:52Z")

</div>

There aren’t many occasions when you should need to use these. It’s probably easier to ask about how to achieve a specific goal, and then the answers might indicate if/how you should/can achieve it with scripting.
