Hi my below logic works fine in the power automate expression
replace(
replace(
variables('BodyOfEmail')
,'{{fsdyn_coscontact}}'
,items('Apply_to_each_List_Filtered_Get_Grant_Conditions')['IGUseofFund.fsdyn_coscontact@OData.Community.Display.V1.FormattedValue']
)
,'hyperlinked'
,concat(
'<a href = "www.google.co.uk">'
,items('Apply_to_each_List_Filtered_Get_Grant_Conditions')['_fsdyn_grantapplication_value@OData.Community.Display.V1.FormattedValue']
,'</a>'
)
)
However when I try adding another replace i.e. below then it throws a error, Unable to process template language expressions in action ‘Set_variable_Replace_Body_of_Email’ inputs at line ‘0’ and column ‘0’: ‘The template language function ‘replace’ expects three string parameters: the string to replace characters inside of as the first parameter, the string that will be replaced by the new string as the second parameter, and the new string as the third parameter. The function was invoked with ‘5’ parameter(s). Please see https://aka.ms/logicexpressions#replace for usage details.’.
> ,'Partner Postholder Name'
> ,items('Apply_to_each_List_Filtered_Get_Grant_Conditions')['PostHolder.fsdyn_postholderid']
I think i’m not doing the correct Syntax can someone help with this please really stuck.
My code:
Is this Syntax incorrect what im I missing?
replace(
replace(
variables('BodyOfEmail')
,'{{fsdyn_coscontact}}'
,items('Apply_to_each_List_Filtered_Get_Grant_Conditions')['IGUseofFund.fsdyn_coscontact@OData.Community.Display.V1.FormattedValue']
)
,'hyperlinked'
,concat(
'<a href = "www.google.co.uk">'
,items('Apply_to_each_List_Filtered_Get_Grant_Conditions')['_fsdyn_grantapplication_value@OData.Community.Display.V1.FormattedValue']
,'</a>'
)
,'Partner Postholder Name'
,items('Apply_to_each_List_Filtered_Get_Grant_Conditions')['PostHolder.fsdyn_postholderid']
)
Regards.