Try adding &""
to the end of each reference to {Order Line Items}
:
IF(
FIND(
"8009586",
{Order Line Items}&""
),
"2.5 FT Core Display",
IF(
FIND(
"8009567",
{Order Line Items}&""
),
"5 FT Core Display",
"None"
)
)
Try adding &""
to the end of each reference to {Order Line Items}
:
IF(
FIND(
"8009586",
{Order Line Items}&""
),
"2.5 FT Core Display",
IF(
FIND(
"8009567",
{Order Line Items}&""
),
"5 FT Core Display",
"None"
)
)
That did it! Thanks!!
That did it! Thanks!!
I think the issue was just that your {Order Line Items}
field contains linked records (I’m assuming), and so it’s outputting an array, rather than a string. The FIND()
function doesn’t know how to find a string in an array, so it was failing to return anything. By adding &""
to the end of your references, you are coercing the array that is output by {Order Line Items}
into behaving as a string instead of an array, because you are concatenating an empty string onto the end of it.
I think the issue was just that your {Order Line Items}
field contains linked records (I’m assuming), and so it’s outputting an array, rather than a string. The FIND()
function doesn’t know how to find a string in an array, so it was failing to return anything. By adding &""
to the end of your references, you are coercing the array that is output by {Order Line Items}
into behaving as a string instead of an array, because you are concatenating an empty string onto the end of it.
Thanks for the explanation Jeremy, the field does contain linked records in order to create a multi-line, multi-product packing list.
Try adding &""
to the end of each reference to {Order Line Items}
:
IF(
FIND(
"8009586",
{Order Line Items}&""
),
"2.5 FT Core Display",
IF(
FIND(
"8009567",
{Order Line Items}&""
),
"5 FT Core Display",
"None"
)
)
Jeremy, you have know idea how much this post of yours helped me! It’s the gift that keeps giving. I am trying to combine multiple true IF statement results in a formula output - basically auto-creating an email to staff with Powershell formulas included, based on User names and Group adds/deletions. I have literally spent many hours trying to get a solution and then came upon yours. My code is rough and ready and has not been formatted yet but it is only working thanks to you! Many, many thanks.
IF(FIND("ADD 1 user to 1 or more AD groups",{What do you want to do?}&""),"Add-ADPrincipalGroupMembership -Identity"&" "&{Initials}&" "&"-MemberOf"&" "&{AD Groups ADD - Quotes},'')
& "\n"
&IF(FIND("ADD 1 or more users to 1 AD group",{What do you want to do?}&""),
"Add-ADGroupMember -Identity"&" "&{AD Groups ADD - Quotes}&" "&"-MemberOf"&" "&{Initials},'')
& "\n"
&IF(FIND("REMOVE 1 user from 1 or more AD groups",{What do you want to do?}&""),"Remove-ADPrincipalGroupMembership -Identity"&" "&{Initials}&" "&"-MemberOf"&" "&{AD Groups REMOVE - Quotes},'')
& "\n"
&IF(FIND("REMOVE user(s) from 1 AD group",{What do you want to do?}&""),
"Remove-ADGroupMember -Identity"&" "&{AD Groups REMOVE - Quotes}&" "&"-Member"&" "&{Initials},'')
Cheers
Shaun
Jeremy, you have know idea how much this post of yours helped me! It’s the gift that keeps giving. I am trying to combine multiple true IF statement results in a formula output - basically auto-creating an email to staff with Powershell formulas included, based on User names and Group adds/deletions. I have literally spent many hours trying to get a solution and then came upon yours. My code is rough and ready and has not been formatted yet but it is only working thanks to you! Many, many thanks.
IF(FIND("ADD 1 user to 1 or more AD groups",{What do you want to do?}&""),"Add-ADPrincipalGroupMembership -Identity"&" "&{Initials}&" "&"-MemberOf"&" "&{AD Groups ADD - Quotes},'')
& "\n"
&IF(FIND("ADD 1 or more users to 1 AD group",{What do you want to do?}&""),
"Add-ADGroupMember -Identity"&" "&{AD Groups ADD - Quotes}&" "&"-MemberOf"&" "&{Initials},'')
& "\n"
&IF(FIND("REMOVE 1 user from 1 or more AD groups",{What do you want to do?}&""),"Remove-ADPrincipalGroupMembership -Identity"&" "&{Initials}&" "&"-MemberOf"&" "&{AD Groups REMOVE - Quotes},'')
& "\n"
&IF(FIND("REMOVE user(s) from 1 AD group",{What do you want to do?}&""),
"Remove-ADGroupMember -Identity"&" "&{AD Groups REMOVE - Quotes}&" "&"-Member"&" "&{Initials},'')
Cheers
Shaun
Shaun -- Thank you for sharing your solution -- You saved the day for me with this! I was able to turn multiple select choices into tags to include within another field, depending on whether they were selected or not. I worked on this for hours and read about every help page on here twice. Granted I really don't know what I'm doing but am always determined to figure it out.
Try adding &""
to the end of each reference to {Order Line Items}
:
IF(
FIND(
"8009586",
{Order Line Items}&""
),
"2.5 FT Core Display",
IF(
FIND(
"8009567",
{Order Line Items}&""
),
"5 FT Core Display",
"None"
)
)
The gift that keeps giving! Many thanks Jeremy. I needed this for a Linked Records formula.