cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TiredOldCoder
Level: Powered On

Flow Anomaly

This is a little bizarre I hope someone has seen & solved this before.

Flow logic:

1. Trigger on create/update

2. Get all items that have same Project ID which yields:

{
  "value": [
    {
      "@odata.etag": "\"6\"",
      "ItemInternalId": "163",
      "ID": 163,
      "Title": "?",
      "Project": {
        "@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
        "Id": 16,
        "Value": "AFRL 711 HPW Sensors"
      },
      "Project#Id": 16,
      "m8sj": "CDO",
      "acuj": 7,
      "mmwk": 2,
      "Modified": DELETED,
      "Created":
DELETED,
      "Author":
DELETED,
      "Author#Claims": "i:0#.f|membership|wwheeler@cdotech.com",
      "Editor":
DELETED ,
     "{Link}":
DELETED,
      "{Name}": "?",
      "{FilenameWithExtension}": "?",
      "{Path}": "Lists/Positions/"
    }
  ]
}

- Initialize some variables to hold counts

- Apply to each

 -- Increment billable (Works)

 -- Increment vacancies (Works)

 -- Test to see if vacancies have posts using 


if(and(greater(items('Apply_to_each')?['Vacant'],
0),
startsWith(coalesce(items('Apply_to_each')?['Job
Posting'
], ''),
'N')),
items('Apply_to_each')?['Vacant'],
0)

 

InvalidTemplate. Unable to process template language expressions in action 'Increment_postings' inputs at line '1' and column '2562': 'The template language function 'greater' expects all of its parameters to be either integer or decimal numbers. Found invalid parameter types: 'Null'.'.

This where my noodle gets fried.   Using the very same field  to increment vacancies, it claims to be Null in the greater() function.

Peripheral question why are the field names different than the list definition:

      "m8sj": "CDO",   --> Company
      "acuj": 7,           --> Billable
      "mmwk": 2,       --> Vacant

All suggestions and sympathy welcome!

v/r,

Bill

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Flow Anomaly

Please post Flow questions to the Flow Community.  You will get a much quicker and more robust answer over there. 🙂

View solution in original post

3 REPLIES 3
Super User
Super User

Re: Flow Anomaly

Please post Flow questions to the Flow Community.  You will get a much quicker and more robust answer over there. 🙂

View solution in original post

Highlighted
TiredOldCoder
Level: Powered On

Re: Flow Anomaly

@LRVinNC  thanks for the link - I knew there was one, but for the life of me, I couldn't find it!  Is there a way to delete this post?

Super User
Super User

Re: Flow Anomaly

No, but if you mark my post as a solution, it will more or less close it out on this forum. 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,072)