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

Select operation is converting all data types to string #4110

Closed
Aleks-gdb opened this issue Feb 2, 2024 · 4 comments
Closed

Select operation is converting all data types to string #4110

Aleks-gdb opened this issue Feb 2, 2024 · 4 comments
Assignees
Labels
Bug Something isn't working

Comments

@Aleks-gdb
Copy link
Contributor

Aleks-gdb commented Feb 2, 2024

Describe the Bug with repro steps

  1. Got to new designer.
  2. Add any trigger.
  3. Add Sharepoint get items action
  4. Add select action and map Title and ID field from the Get Items action output
  5. Save the flow then run the flow and observe the outputs of the Select action are all strings even though the ID input is an integer

What type of Logic App Is this happening in?

Power Automate

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

No response

Screenshots or Videos

With the new designer:

image

With the old designer:

image

Browser

Edge

Additional context

Note that type casting is not honored either:

image

image

From my initial investigation the issue is that the tokens are wrapped around in {} - this does not happen in the old designer

image

@Aleks-gdb
Copy link
Contributor Author

function parameterValueToStringWithoutCasting(value: ValueSegment[], forValidation = false): string {

During flow serialization, the input to the editor is treated as one array of value segments, so shouldInterpolateTokens returns true as value.length > 1 and the token gets wrapped in @{ }

image

@hartra344 hartra344 added Bug Something isn't working and removed triage labels Feb 5, 2024
@hartra344
Copy link
Contributor

This looks like a duplicate of #4084

@Aleks-gdb
Copy link
Contributor Author

Should be fixed with #4124

@hartra344 hartra344 added update and removed Bug Something isn't working labels Feb 6, 2024
@hartra344 hartra344 added Bug Something isn't working and removed update labels Feb 6, 2024
@hartra344 hartra344 added update and removed update labels Feb 6, 2024
@hartra344
Copy link
Contributor

verified that this is fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants