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

Cannot post description of a site page to a adaptive card/shorten JSON value

I have a flow that takes file properties (SharePoint site page) and use its values (description, title, author etc). to populate an "adaptive card" JSON template. Everything works - title, author and so on except description. I assume its because the description is to large. I get the following error:

 

"The specified Teams flowbot adaptive card request is missing or invalid. The tracking Id is '87280857-bb63-4d55-99d3-fe216b0a0411'."

 

I put the description in a TextBlock:

 

{
"type": "TextBlock",
"text": "@{body('Get_file_properties')?['Description']}",
"wrap": true
},

 

Does not work.

 

 

I have tried to shorten via substring it but I get an error "the expression is invalid". My expression:

@{body('Get_file_properties')?['Description']}.substring(1,50)

 

Above does not work. How can I shorten the JSON value? And could it be another/different issue why the flow isnt working when I try to load the adaptive card JSON with the description of my file?

AdaptiveCard.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Krishna92
Microsoft
Microsoft

@Akourt 

 

Seems like the formula that you are using for the substring is incorrect.

 

The format for substring in flow is substring(text,start index,end index)

 

Could you please try using the above formula for substring and  check if that helps.

I think there is limit for the description on the amount of text that you can enter I'm not exactly sure on the number of characters that you use of.

 

If this information helps you, please hit the like button and mark the solution as resolved, so that it will help other users in future.

 

 

View solution in original post

1 REPLY 1
Krishna92
Microsoft
Microsoft

@Akourt 

 

Seems like the formula that you are using for the substring is incorrect.

 

The format for substring in flow is substring(text,start index,end index)

 

Could you please try using the above formula for substring and  check if that helps.

I think there is limit for the description on the amount of text that you can enter I'm not exactly sure on the number of characters that you use of.

 

If this information helps you, please hit the like button and mark the solution as resolved, so that it will help other users in future.

 

 

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (26,816)