# Scripting - Get default provider from a specific project

**URL:** <https://forum.inductiveautomation.com/t/scripting-get-default-provider-from-a-specific-project/73197>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [May 3, 2023, 1:08pm UTC](https://forum.inductiveautomation.com/t/scripting-get-default-provider-from-a-specific-project/73197 "2023-05-03T13:08:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 3, 2023, 3:34pm UTC](https://forum.inductiveautomation.com/t/scripting-get-default-provider-from-a-specific-project/73197/2 "2023-05-03T15:34:33Z")

</div>

There might be a better way to do this I'm not thinking of, but one option would be to rely on the script context threadlocal:

> [@\[BUG-5802\]Async Tag Event Script loses reference paths](https://forum.inductiveautomation.com/t/bug-5802-async-tag-event-script-loses-reference-paths/57768/3):
>
> I think you might be able to extract what you want from the current thread, then set it in the new thread via ScriptContext: [ScriptContext](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.15/com/inductiveautomation/ignition/common/script/ScriptContext.html)

This will obviously only work in scenarios where we actually know the project and therefore default provider to provide it before your script runs.

---

_[View the full topic](https://forum.inductiveautomation.com/t/scripting-get-default-provider-from-a-specific-project/73197)._
