Hello,
I am trying to figure out how to rewrite an expression that is causing a failure in a data action. The data action is used to create a case in Salesforce.
The initial expression was:
If(IsNotSetOrEmpty(Flow.PageUrl), "", Flow.PageUrl)
However, it can happen that the URL exceeds 255 characters which causes a failure because the Salesforce field cannot hold a value exceeding 255 characters. As a result, I updated the expression to:
If(IsNotSetOrEmpty(Flow.PageUrl), Left(Flow.PageUrl, 255), ToString(""))
This expression is now causing a failure when the Flow.PageUrl value is null. Is there a way to write and solve the 2 issues mentioned above?