cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Updating specific sharepoint item based on subject line ID

 

Hello all, 

 

I've created a flow to update a sharepoint item based on an email's arrival. 
The variable steps extract the last bit of the subject content, which is the ID of a specific sharepoint item. 
Then I get the sharepoint items, so I can create a control that if my variable matches the ID from a sharepoint item it will update that specific item. 

 

The problems i'm running into: 

  • The condition result is false. Even though the output from the variable is matching the ID from the sharepoint item. 
  • image.png

     

    image.png

     

    image.png

     

 

 
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Updating specific sharepoint item based on subject line ID

Hi @001 ,

 

Please format the ID dynamic content to string and initial the variable with string type as my screenshot below:

1.png

Expression in the First field of the Condition as below:

string(items('Apply_to_each')?['ID'])

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Updating specific sharepoint item based on subject line ID

Hello @001

Can you try to use the expression:
int()
And add your set variable in there.

My suggestion is that you are comparing a string to a integer. So it will always return false.

If this is not your error. Please post your configuration of your IF statement.

—Josh
If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others




Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up ?


Proud to be a Flownaut!





Highlighted
Community Support
Community Support

Re: Updating specific sharepoint item based on subject line ID

Hi @001 ,

 

Please format the ID dynamic content to string and initial the variable with string type as my screenshot below:

1.png

Expression in the First field of the Condition as below:

string(items('Apply_to_each')?['ID'])

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Kudoed Authors
Users online (11,135)