# Correct way to use getSequence with GUID?

**URL:** <https://forums.creativeclouddeveloper.com/t/correct-way-to-use-getsequence-with-guid/11736>\
**Category:** Premiere Pro\
**Tags:** uxp, javascript, api-feedback, premierepro\
**Created:** [February 22, 2026, 7:15pm UTC](https://forums.creativeclouddeveloper.com/t/correct-way-to-use-getsequence-with-guid/11736 "2026-02-22T19:15:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rgl](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@rgl](https://forums.creativeclouddeveloper.com/u/rgl)\
**Post date:** [February 22, 2026, 7:15pm UTC](https://forums.creativeclouddeveloper.com/t/correct-way-to-use-getsequence-with-guid/11736/1 "2026-02-22T19:15:54Z")

</div>

I’m trying to open a sequence by GUID — specifically to support a roundtrip where I pass the GUID string to a webview, then bring it back on the UXP side and reconstruct it with `fromString(guidString)`.

This works fine:

```js
export const openSequences = async () => {
  const project = await premierepro.Project.getActiveProject();
  const sequences = await project.getSequences();
  for (const seq of sequences) {
    await project.openSequence(seq);
  }
};

```

But this doesn’t work:

```js
export const openSequences = async () => {
  const project = await premierepro.Project.getActiveProject();
  const sequences = await project.getSequences();
  for (const seq of sequences) {
    const fetched = project.getSequence(seq.guid);
    await project.openSequence(fetched);
  }
};

```

What’s the correct way to use `getSequence(guid)` so I can reconstruct and open a sequence from a GUID string passed back from the webview?

---

<div class="post-metadata">

**Author:** ![MarcClown](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/marcclown/32/4778_2.png) [@MarcClown](https://forums.creativeclouddeveloper.com/u/MarcClown)\
**Post date:** [February 24, 2026, 8:23am UTC](https://forums.creativeclouddeveloper.com/t/correct-way-to-use-getsequence-with-guid/11736/2 "2026-02-24T08:23:28Z")

</div>

Did you try to “`await`” on the `getSequence()` call ?

I have not tried it, but I’m guessing the variable `fetched` is not set to what you think it is ( probably set to a Promise instead of an actual Sequence)

Try to replace  
`const fetched = project.getSequence(seq.guid);`  
with  
`const fetched = ` **`await`** ` project.getSequence(seq.guid);`

---

<div class="post-metadata">

**Author:** ![rgl](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@rgl](https://forums.creativeclouddeveloper.com/u/rgl)\
**Post date:** [February 24, 2026, 12:13pm UTC](https://forums.creativeclouddeveloper.com/t/correct-way-to-use-getsequence-with-guid/11736/3 "2026-02-24T12:13:52Z")

</div>

That works! turns out my types are just incorrect lol.  
Thank you!
