Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watchlists - Get all Watchlist Items for a given Watchlist (V2) / SkipToken encoded by default as URI #6194

Open
Tnecsea opened this issue Nov 27, 2024 · 1 comment
Assignees

Comments

@Tnecsea
Copy link

Tnecsea commented Nov 27, 2024

Describe the Bug with repro steps

  1. Create a logic app
  2. Create a watchlist containing more than 100 items
  3. Search Microsoft Sentinel's connectors
  4. Add "Watchlists - Get all Watchlist Items for a given Watchlist (V2)" operation to your logic app 2 times
  5. Configure operation settings (workspaceid, subscriptionid, watchlistname…)
  6. Add skipToken parameter from first operation to the second (logic app expre for ex: body('Watchlists_-Get_all_Watchlist_Items_for_a_given_Watchlist(V2)_1')['properties']['skipToken']) so it should retrieve the next 100 items

What type of Logic App Is this happening in?

Consumption (Portal)

Which operating system are you using?

Windows

Are you using new designer or old designer

New Designer

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

Screenshots or Videos

Image

Image

Image

Image

Image

Browser

  • Browser: Edge (last published version)

Additional context

First operation "Watchlists - Get all Watchlist Items for a given Watchlist (V2)1" (screenshot 2) retrieving me the first 100 items of my watchlist (that has a total of 373 items) , and a base64 skipToken.

I added a Compose operation with logic app expression replace because the token was malformed (as you can see in screenshot 3, it contains _ and - characters that has to be / and + characters to validate base64 format).

Then i added compose's output to the second Get all Watchlist Items operation as skipToken parameter.

It seems, following code view (screenshot 4) that something added an "encodeURIComponent" logic app expression function to every parameter which does not appear in regular designer view.

It results in encoding my base64token as URI and operation to fail (screenshot 5), the only workaround i found is to remove encodeURIComponent expression directly in code view.

Is this a bug ? Is there any way i can disable this ? or any other way to make a clean pagination (pagination settings is not available for this operation) ?

@hartra344
Copy link
Contributor

This is likely due to a Swagger property that was being ignored in previous designer. @preetriti1 can you verify this and determine if this is a bug on our behavior or the swagger definition?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants