Hi all,
I have created a flow that converts an HTML layout to a PDF file and sends that output for approval. The issue is that one of the HTML tags requires an answer based on a condition.
ex. If X = 1, replace A with B, else replace A with C
The sample expression I composed goes like this:
replace(outputs(‘Client_Name’), ‘{Type of Relationship}’, outputs(‘Get_response_details’)?[‘body/abcdef1234567’])


Below is the part where I need the conditional expression but I’m stuck with an ugly branch of actions. Is there a way to compose the condition and replace function in one string? I don't want to continue adding more actions to this branch because my Power Automate keeps lagging.

Can anyone help me please? Thanks!