Skip to content

Commit

Permalink
#744: adding versionNumber to avoid "Interaction matching criteria no…
Browse files Browse the repository at this point in the history
…t found. 30003"

Without the versionNumber parameter specified, the API returns the most recent version of the journey. If that version is in Deleted it cannot be found and hence the error 30003
  • Loading branch information
JoernBerkefeld committed Feb 24, 2023
1 parent 4a8f304 commit 4a58ff6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/metadataTypes/Interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ class Interaction extends MetadataType {
results.items.map(async (a) => {
try {
return await this.client.rest.get(
`${uri}key:${a[this.definition.keyField]}?extras=${extras}`
`${uri}key:${a[this.definition.keyField]}?extras=${extras}` +
`&versionNumber=${a.version}`
);
} catch (ex) {
// if we do get here, we should log the error and continue instead of failing to download all automations
Expand Down

0 comments on commit 4a58ff6

Please sign in to comment.