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

Power Automate triggers with whole numbers #7

Open
akaskela opened this issue Dec 11, 2020 · 2 comments
Open

Power Automate triggers with whole numbers #7

akaskela opened this issue Dec 11, 2020 · 2 comments

Comments

@akaskela
Copy link

akaskela commented Dec 11, 2020

Not sure if this is a bug from the provider or Power Automate.

When I set up a "When a record is selected" on my virtual entity, and reference the properties lower in my flow, all field types seem to work except for int fields. When I use an integer field (assigning it from the selected entity to a int variable even), I get an error that the trigger is broken (from flow) and an error trying to invoke it in CDS. I've successfully used text, yes/no, dates and PK fields.

This is the error message I get when invoking it in CDS:
Error: The input body for trigger 'manual' of type 'Request' did not match its schema definition. Error details: 'Invalid type. Expected Integer but got String.,Invalid type. Expected Integer but got String.'.

The field is configured as Whole Number in CDS, and int in the database.

@mikefactorial
Copy link
Owner

Probably a bug. I'm not handling type conversions very well in the current iteration. Adding it to my list when I revisit some of the bugs / features I've been meaning to address in the next couple weeks.

@akaskela
Copy link
Author

akaskela commented Dec 11, 2020

I found a workaround:

  • Do a get record to retrieve the record that is on the trigger
  • The int field works like a string, so when you need to use it somewhere you can just wrap the property in an int() expression to cast it appropriately.

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

2 participants