How can we improve Microsoft Azure Logic Apps?

substring

It would be very useful if substring could accept a length parameter greater then the length of the string without erroring.

Ideally it would be great to have left() and right() functions, as well as substring() for simply obtaining the first and last 'n' characters of a string.

9 votes
Vote
Sign in
(thinking…)
Sign in with: Microsoft
Signed in as (Sign out)
You have left! (?) (thinking…)
Gavin shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

2 comments

Sign in
(thinking…)
Sign in with: Microsoft
Signed in as (Sign out)
Submitting...
  • Anonymous commented  ·   ·  Flag as inappropriate

    In the substring, we are unable to execute on if condition based. if my answer value is 'na'. Then it should not execute the true condition.

    eg:
    if(greaterOrEquals(length(triggerBody()['answer6']), 4), substring(triggerBody()['answer6'],sub(length(triggerBody()['answer6']), 4),4), '')

Feedback and Knowledge Base